|
From: Sefer T. <se...@ho...> - 2004-09-02 09:53:15
|
Hi,
I have tried to compile an updated version of Valgrind from the CVS on my
i586 Mandrake 10.1 (kernel 2.6.8, glibc 2.3.3 & gcc 3.4.1)
But it seems to fail for the last few days with the same error, apparently
there is a double definition of "ifmap", "ifreq" and "ifconf".
Apparently this is due to the inclusion of both "/usr/include/net/if.h" and
"/usr/include/linux/if.h" in "coregrind/vg_syscalls.c"
I'd appreciate it if you could resolve this in the main branch, as this
problem may be affecting many others as well, and valgrind is such a fine
tool whose evolution is thrilling to the entire community.
Thanks,
Sefer.
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../coregrind -I../coregrind
-I../include -I../include -DVG_LIBDIR="\"/opt/valgrind/lib/valgrind"\"
-I./demangle -I./x86 -DKICKSTART_BASE=0xb0000000 -Winline -Wall -Wshadow
-O -fno-omit-frame-pointer -mpreferred-stack-boundary=2 -g -DELFSZ=32 -MT
vg_syscalls.o -MD -MP -MF ".deps/vg_syscalls.Tpo" \
-c -o vg_syscalls.o `test -f 'vg_syscalls.c' || echo './'`vg_syscalls.c; \
then mv -f ".deps/vg_syscalls.Tpo" ".deps/vg_syscalls.Po"; \
else rm -f ".deps/vg_syscalls.Tpo"; exit 1; \
fi
In file included from /usr/include/linux/msg.h:5,
from vg_unsafe.h:57,
from vg_syscalls.c:35:
/usr/include/linux/list.h:685:2: warning: #warning "don't include kernel
headers in userspace"
In file included from /usr/include/linux/mii.h:12,
from vg_unsafe.h:76,
from vg_syscalls.c:35:
/usr/include/linux/if.h:95: error: redefinition of `struct ifmap'
/usr/include/linux/if.h:131: error: redefinition of `struct ifreq'
/usr/include/linux/if.h:181: error: redefinition of `struct ifconf'
make[4]: *** [vg_syscalls.o] Error 1
make[4]: Leaving directory `/home/sefer/t/valgrind/coregrind'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/sefer/t/valgrind/coregrind'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/sefer/t/valgrind/coregrind'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/sefer/t/valgrind'
make: *** [all] Error 2
bash$
_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
|