[Ltrace-devel] Compilation error with dwarf code

Kai Noda nodakai at gmail.com
Thu Jul 31 03:45:00 UTC 2014


Hi Dima,

I needed this change in order to build ltrace Git head.

07/31 11:41 [nodakai at kaidev01] ~/src/ltrace-HEAD$ git di
diff --git a/proc.c b/proc.c
index 91af49f..b2493e0 100644
--- a/proc.c
+++ b/proc.c
@@ -36,7 +36,9 @@
 #include "options.h"
 #include "proc.h"
 #include "value_dict.h"
+#if defined(HAVE_LIBDW)
 #include "dwarf_prototypes.h"
+#endif /* defined(HAVE_LIBDW) */

 #ifndef OS_HAVE_PROCESS_DATA
 int

07/31 11:42 [nodakai at kaidev01] ~/src/ltrace-HEAD$ lsb_release -a
LSB Version: (snip)
Distributor ID: Ubuntu
Description:    Ubuntu 12.04.4 LTS
Release:        12.04
Codename:       precise

Regards,
Kai

野田  開 <nodakai at gmail.com>


2014-05-13 4:17 GMT+08:00 Dima Kogan <lists at dima.secretsauce.net>:

> Thierry Fauck ( thierry @ linux.vnet.ibm.com ) <thierry at linux.vnet.ibm.com>
> writes:
>
> > I also got this message if I don't have the proper libraries
> >
> > In file included from proc.c:39:0:
> > dwarf_prototypes.h:4:30: fatal error: elfutils/libdwfl.h: No such file
> > or directory
> >  #include <elfutils/libdwfl.h>
>
> Hi. I fixed this, and it's committed to my local tree:
>
> https://github.com/dkogan/ltrace/tree/build
>
> I'm not an automake expert, and there may be a better way to do this,
> but it works.
>
> _______________________________________________
> Ltrace-devel mailing list
> Ltrace-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/ltrace-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/ltrace-devel/attachments/20140731/7dab4eda/attachment.html>


More information about the Ltrace-devel mailing list