|
From: <mu...@co...> - 2005-03-23 15:24:16
|
Hello,
When trying to compile valgrind I get errors complaining about
conflicting types and types not defined=2E It seems to happen because
of conflicts between kernel headers and system-glibc headers, but I
am not sure how to resolve it=2E Information about my setup is listed
below:
Version: Valgrind 2=2E2=2E0
compiler: gcc-3=2E3=2E3
kernel version: 2=2E6=2E9
hardware: AMD Athlon
linux distribution: based on slackware
glibc version: 2=2E3=2E4
I am using kernel headers from 2=2E6=2E9=2E The command I use to compile i=
s
lited below as well as the error messages encountered:
make distclean
CC=3D"/usr/gcc-3=2E3=2E3/bin/gcc" CXX=3D"/usr/gcc-3=2E3=2E3/bin/g++" =2E/c=
onfigure
make
f /usr/gcc-3=2E3=2E3/bin/gcc -DHAVE=5FCONFIG=5FH -I=2E -I=2E -I=2E=2E -I=2E=
/demangle
-I=2E=2E/include -I=2E=2E/include -I=2E/x86
-DVG=5FLIBDIR=3D"\"/usr/share/valgrind-2=2E2=2E0/lib/valgrind"\"
-DKICKSTART=5FBASE=3D0xb0000000 -Winline -Wall -Wshadow -O
-fno-omit-frame-pointer -mpreferred-stack-boundary=3D2 -g -DELFSZ=3D32=20
-MT vg=5Fsyscalls=2Eo -MD -MP -MF "=2Edeps/vg=5Fsyscalls=2ETpo" -c -o
vg=5Fsyscalls=2Eo vg=5Fsyscalls=2Ec; \
then mv -f "=2Edeps/vg=5Fsyscalls=2ETpo" "=2Edeps/vg=5Fsyscalls=2EPo"; els=
e rm -f
"=2Edeps/vg=5Fsyscalls=2ETpo"; exit 1; fi
In file included from /usr/include/linux/msg=2Eh:5,
from vg=5Funsafe=2Eh:56,
from vg=5Fsyscalls=2Ec:35:
/usr/include/linux/list=2Eh:715:2: warning: #warning "don't include
kernel headers in userspace"
In file included from /usr/include/asm/byteorder=2Eh:57,
from /usr/include/linux/cdrom=2Eh:14,
from vg=5Funsafe=2Eh:63,
from vg=5Fsyscalls=2Ec:35:
/usr/include/linux/byteorder/little=5Fendian=2Eh:43: error: parse error
before "=5F=5Fcpu=5Fto=5Fle64p"
/usr/include/linux/byteorder/little=5Fendian=2Eh: In function
`=5F=5Fcpu=5Fto=5Fle64p':
/usr/include/linux/byteorder/little=5Fendian=2Eh:45: error: `=5F=5Fle64'
undeclared (first use in this function)
/usr/include/linux/byteorder/little=5Fendian=2Eh:45: error: (Each
undeclared identifier is reported only once
/usr/include/linux/byteorder/little=5Fendian=2Eh:45: error: for each
function it appears in=2E)
/usr/include/linux/byteorder/little=5Fendian=2Eh: At top level:
/usr/include/linux/byteorder/little=5Fendian=2Eh:47: error: parse error
before '*' token
/usr/include/linux/byteorder/little=5Fendian=2Eh: In function
`=5F=5Fle64=5Fto=5Fcpup':
/usr/include/linux/byteorder/little=5Fendian=2Eh:49: error: `p'
undeclared (first use in this function)
/usr/include/linux/byteorder/little=5Fendian=2Eh: At top level:
/usr/include/linux/byteorder/little=5Fendian=2Eh:51: error: parse error
before "=5F=5Fcpu=5Fto=5Fle32p"
/usr/include/linux/byteorder/little=5Fendian=2Eh: In function
`=5F=5Fcpu=5Fto=5Fle32p':
/usr/include/linux/byteorder/little=5Fendian=2Eh:53: error: `=5F=5Fle32'
undeclared (first use in this function):
=2E=2E=2E=2EAnd many more similiar errors
In file included from /usr/include/linux/fs=2Eh:19,
from vg=5Funsafe=2Eh:68,
from vg=5Fsyscalls=2Ec:35:
/usr/include/linux/prio=5Ftree=2Eh: At top level:
/usr/include/linux/prio=5Ftree=2Eh:22: error: parse error before "pgoff=5F=
t"
/usr/include/linux/prio=5Ftree=2Eh:27: error: parse error before "pgoff=5F=
t"
/usr/include/linux/prio=5Ftree=2Eh: In function `prio=5Ftree=5Fiter=5Finit=
':
/usr/include/linux/prio=5Ftree=2Eh:29: error: `iter' undeclared (first
use in this function)
/usr/include/linux/prio=5Ftree=2Eh:29: error: `root' undeclared (first
use in this function)
/usr/include/linux/prio=5Ftree=2Eh:30: error: `r=5Findex' undeclared (firs=
t
use in this function)
In file included from /usr/include/linux/mii=2Eh:12,
from vg=5Funsafe=2Eh:76,
from vg=5Fsyscalls=2Ec:35:
/usr/include/linux/if=2Eh: At top level:
/usr/include/linux/if=2Eh:95: error: redefinition of `struct ifmap'
/usr/include/linux/if=2Eh:131: error: redefinition of `struct ifreq'
/usr/include/linux/if=2Eh:181: error: redefinition of `struct ifconf'
make[4]: *** [vg=5Fsyscalls=2Eo] Error 1
make[4]: Leaving directory `/valgrind-2=2E2=2E0/coregrind'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/valgrind-2=2E2=2E0/coregrind'
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/valgrind-2=2E2=2E0'
make: *** [all] Error 2
Any ideas on how to resolve this problem=3F
Thanks,
Kerry
=20
|