|
From: Enders, B. <Bor...@pd...> - 2004-09-15 08:42:36
|
Hello,
I'am compiling valgrind 2.2.0 on
Red Hat Enterprise Linux WS release 3 (Taroon Update 2)
with
gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-39)
With following modifications:
1) export CPPFLAGS=3D-I/usr/src/linux-2.4/include/
(for finding asm/msr.h)
2) including <linux/if.h>
(for avoiding redefinitions)
But I'am still getting the following error:
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./demangle -I../include
-I../include -I./
x86 -DVG_LIBDIR=3D"\"/home/benders/val22/lib/valgrind"\"
-DKICKSTART_BASE=3D0xb00000
00 -I/usr/src/linux-2.4/include/ -Winline -Wall -Wshadow -O
-fno-omit-frame-poi
nter -mpreferred-stack-boundary=3D2 -g -DELFSZ=3D32 -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 vg_unsafe.h:52,
from vg_syscalls.c:35:
/usr/src/linux-2.4/include/net/route.h:37:2: warning: #warning This file
is not=20
supposed to be used outside of kernel.
In file included from /usr/src/linux-2.4/include/net/route.h:28,
from vg_unsafe.h:52,
from vg_syscalls.c:35:
/usr/src/linux-2.4/include/net/dst.h:30: parse error before `atomic_t'
/usr/src/linux-2.4/include/net/dst.h:30: warning: no semicolon at end of
struct=20
or union
/usr/src/linux-2.4/include/net/dst.h:67: parse error before `}'
/usr/src/linux-2.4/include/net/dst.h:85: parse error before `atomic_t'
/usr/src/linux-2.4/include/net/dst.h:85: warning: no semicolon at end of
struct=20
or union
/usr/src/linux-2.4/include/net/dst.h:86: warning: type defaults to `int'
in decl
aration of `kmem_cachep'
/usr/src/linux-2.4/include/net/dst.h:86: warning: data definition has no
type or
storage class
And some following errors...
Starting with the warning: net/route.h:37:2: warning: #warning This file
is not=20
supposed to be used outside of kernel.
I changed <net/route.h> to <linux/route.h>, but then I'am getting the
following error:
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./demangle -I../include
-I../include -I./x86 =
-DVG_LIBDIR=3D"\"/home/benders/val22/lib/valgrind"\"
-DKICKSTART_BASE=3D0xb0000000 -I/usr/src/linux-2.4/include/ -Winline
-Wall -Wshadow -O -fno-omit-frame-pointer -mpreferred-stack-boundary=3D2
-g -DELFSZ=3D32 -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
vg_syscalls.c:493: warning: `struct sockaddr_in' declared inside
parameter list
vg_syscalls.c:493: warning: its scope is only this definition or
declaration, which is probably not what you want.
vg_syscalls.c: In function `inet2name':
vg_syscalls.c:498: dereferencing pointer to incomplete type
vg_syscalls.c:506: dereferencing pointer to incomplete type
vg_syscalls.c:506: dereferencing pointer to incomplete type
vg_syscalls.c:506: dereferencing pointer to incomplete type
/usr/src/linux-2.4/include/linux/byteorder/swab.h:132: warning: inlining
failed in call to `__fswab16'
vg_syscalls.c:506: warning: called from here
vg_syscalls.c: In function `getsockdetails':
vg_syscalls.c:523: field `in' has incomplete type
vg_syscalls.c:525: confused by earlier errors, bailing out
Sincerely Borg Enders
|