|
From: david.j a. <dav...@gm...> - 2006-04-04 21:13:11
|
Hello,
I am having problems building Lizard on my machine here at work,
my system :
CentOS release 4.2 (Final)
2.6.9-22.0.1.EL i686 athlon i386 GNU/Linux
the error :
gcc -c -g -O2 -I. -I. -I./config
-DLOCALEDIR=3D"\"/home/davidj/replaydebugger/insight/share/locale\""
-DHAVE_CONFIG_H -I./../include/opcode -I./../readline/.. -I../bfd
-I./../bfd -I./../include -I../intl -I./../intl -D_BSD_SOURCE
-D_XOPEN_SOURCE=3D500 -D_LARGEFILE64_SOURCE -DMI_OUT=3D1 -DGDBTK
-DUI_OUT=3D1 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat
-Wparentheses -Wpointer-arith -Wuninitialized blockframe.c
gcc -c -g -O2 -I. -I. -I./config
-DLOCALEDIR=3D"\"/home/davidj/replaydebugger/insight/share/locale\""
-DHAVE_CONFIG_H -I./../include/opcode -I./../readline/.. -I../bfd
-I./../bfd -I./../include -I../intl -I./../intl -D_BSD_SOURCE
-D_XOPEN_SOURCE=3D500 -D_LARGEFILE64_SOURCE -DMI_OUT=3D1 -DGDBTK
-DUI_OUT=3D1 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat
-Wparentheses -Wpointer-arith -Wuninitialized regcache.c
gcc -c -g -O2 -I. -I. -I./config
-DLOCALEDIR=3D"\"/home/davidj/replaydebugger/insight/share/locale\""
-DHAVE_CONFIG_H -I./../include/opcode -I./../readline/.. -I../bfd
-I./../bfd -I./../include -I../intl -I./../intl -D_BSD_SOURCE
-D_XOPEN_SOURCE=3D500 -D_LARGEFILE64_SOURCE -DMI_OUT=3D1 -DGDBTK
-DUI_OUT=3D1 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat
-Wparentheses -Wpointer-arith -Wuninitialized restorer.c
restorer.c:8:24: linux/user.h: No such file or directory
restorer.c: In function `undiffregion':
restorer.c:62: warning: implicit declaration of function `uncompress'
restorer.c:74: warning: implicit declaration of function `memcpy'
restorer.c: In function `get_region_from_chkpt_file':
restorer.c:209: warning: long unsigned int format, unsigned int arg (arg 4)
restorer.c: In function `restore_regs':
restorer.c:422: error: storage size of 'gp' isn't known
make[2]: *** [restorer.o] Error 1
make[2]: Leaving directory `/usr/src/lizard/lizard/insight-5.3/gdb'
make[1]: *** [all-gdb] Error 2
make[1]: Leaving directory `/usr/src/lizard/lizard/insight-5.3'
make: *** [all] Error 2
If I give this file the location to linux/user.h, via my kernel header file=
s,
I get
gcc -c -g -O2 -I. -I. -I./config
-DLOCALEDIR=3D"\"/home/davidj/replaydebugger/insight/share/locale\""
-DHAVE_CONFIG_H -I./../include/opcode -I./../readline/.. -I../bfd
-I./../bfd -I./../include -I../intl -I./../intl -D_BSD_SOURCE
-D_XOPEN_SOURCE=3D500 -D_LARGEFILE64_SOURCE -DMI_OUT=3D1 -DGDBTK
-DUI_OUT=3D1 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat
-Wparentheses -Wpointer-arith -Wuninitialized restorer.c
-I/usr/src/kernels/2.6.9-22.EL-i686/include/
In file included from /usr/src/kernels/2.6.9-22.EL-i686/include/asm/page.h:=
4,
from /usr/src/kernels/2.6.9-22.EL-i686/include/asm/user.h:=
4,
from /usr/src/kernels/2.6.9-22.EL-i686/include/linux/user.=
h:1,
from restorer.c:8:
/usr/src/kernels/2.6.9-22.EL-i686/include/linux/config.h:6:2: #error
including kernel header in userspace; use the glibc headers instead!
restorer.c: In function `undiffregion':
restorer.c:62: warning: implicit declaration of function `uncompress'
restorer.c:74: warning: implicit declaration of function `memcpy'
restorer.c: In function `get_region_from_chkpt_file':
restorer.c:209: warning: long unsigned int format, unsigned int arg (arg 4)
restorer.c: In function `restore_regs':
restorer.c:432: warning: unsigned int format, long int arg (arg 2)
Is lizard only for kernel 2.4? Any help would greatly be appreciated!!
-David
|