|
From: Lars E. T. <tho...@gm...> - 2004-07-26 21:41:24
|
Hi there, I have some problems compiling valgrind 2.1.2 on a Slackware
10 system.
gcc 3.3.4 (posix thread model)
kernel 2.6.7
glibc 2.3
I get some warnings from ./configure:
checking linux/mii.h usability... no
checking linux/mii.h presence... yes
configure: WARNING: linux/mii.h: present but cannot be compiled
configure: WARNING: linux/mii.h: check for missing prerequisite headers?
configure: WARNING: linux/mii.h: see the Autoconf documentation
configure: WARNING: linux/mii.h: section "Present But Cannot Be Compiled"
configure: WARNING: linux/mii.h: proceeding with the preprocessor's result
configure: WARNING: linux/mii.h: in the future, the compiler will take
precedence
configure: WARNING: ## ------------------------------------------ ##
configure: WARNING: ## Report this to the AC_PACKAGE_NAME lists. ##
configure: WARNING: ## ------------------------------------------ ##
checking for linux/mii.h... yes
checking for uid_t in sys/types.h... yes
If I try to compile anyway, i'll get the following error:
make[4]: Entering directory `/usr/src/valgrind/coregrind'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./demangle -I../include
-I../include -I./x86 -DVG_LIBDIR="\"/usr/lib/valgrind"\" -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 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:682: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 `/usr/src/valgrind/coregrind'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/src/valgrind/coregrind'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/src/valgrind/coregrind'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/valgrind'
make: *** [all] Error 2
I'd appreciate any tips to help me resolve the problem. Thanks.
--
L.E.Thorsplass
|