|
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
|
|
From: David H. <hu...@bt...> - 2004-07-26 22:26:46
|
On Mon, 26 Jul 2004 23:41:22 +0200 Lars Erik Thorsplass <tho...@gm...> wrote: Heya, Its a 2.6.7 kernel problem i believe. Comment out #include <linux/if.h> from /usr/include/linux/mii.h, should be on line 12 approx and recompile. Should work. Hope this helps. > 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 > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > _______________________________________________ > Valgrind-users mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-users -- David Hubner hu...@bt... "If you are going through hell, keep going." - Sir Winston Churchill (1874-1965) |