[Ltrace-devel] Compilation error with dwarf code
Thierry Fauck ( thierry @ linux.vnet.ibm.com )
thierry at linux.vnet.ibm.com
Mon May 12 10:37:27 UTC 2014
Hello,
On ppc64 I don't have the properl DWARF library, so library.h properly
avoid the problem
with
#if defined(HAVE_LIBDW)
Dwfl *dwfl;
#endif
but in dwarf_prototypes.c this is not the case:
make[2]: Entering directory `/home/fauck/public_html/work/ltrace'
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-DSYSCONFDIR=\"/usr/local/etc\"
-DPKGDATADIR=\"/usr/local/share/ltrace\" -I./sysdeps/linux-gnu/ppc
-I./sysdeps/linux-gnu -I./sysdeps -I. -Wall -Wsign-compare
-Wfloat-equal -Wformat-security -Werror -g -O2 -MT dwarf_prototypes.lo
-MD -MP -MF .deps/dwarf_prototypes.Tpo -c -o dwarf_prototypes.lo
dwarf_prototypes.c
libtool: compile: gcc -DHAVE_CONFIG_H -I.
-DSYSCONFDIR=\"/usr/local/etc\" -DPKGDATADIR=\"/usr/local/share/ltrace\"
-I./sysdeps/linux-gnu/ppc -I./sysdeps/linux-gnu -I./sysdeps -I. -Wall
-Wsign-compare -Wfloat-equal -Wformat-security -Werror -g -O2 -MT
dwarf_prototypes.lo -MD -MP -MF .deps/dwarf_prototypes.Tpo -c
dwarf_prototypes.c -fPIC -DPIC -o .libs/dwarf_prototypes.o
dwarf_prototypes.c: In function 'import_DWARF_prototypes':
dwarf_prototypes.c:1010:18: error: 'struct library' has no member named
'dwfl'
Dwfl *dwfl = lib->dwfl;
^
I also have some compilation errors like:
dwarf_prototypes.c: At top level:
dwarf_prototypes.c:982:13: error: 'import' defined but not used
[-Werror=unused-function]
static void import(struct protolib *plib, struct library *lib, Dwfl *dwfl)
Shouln't we have an option in configure to disable dwarf if library not
available ?
Thierry
--
Thierry Fauck (thierry at linux.vnet.ibm.com)
More information about the Ltrace-devel
mailing list