|
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
|
|
From: soam v. <soa...@gm...> - 2006-04-05 20:54:28
|
On 4/4/06, david.j as <dav...@gm...> wrote: > my system : > CentOS release 4.2 (Final) > 2.6.9-22.0.1.EL i686 athlon i386 GNU/Linux > 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 That's strange. My Ubuntu system with kernel 2.6.10 has a /usr/include/linux/user.h. The file is supposed to come with glibc, perhaps you're missing a glibc-devel or some such package ? > If I give this file the location to linux/user.h, via my kernel header fi= les, > 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/use= r.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! I guess you need to find the glibc headers, can't use the kernel header. > Is lizard only for kernel 2.4? Any help would greatly be appreciated!! AFAIK lizard has only been tested properly with kernel 2.4. But if I recall correctly it does build on 2.6. Anybody ? regards, Soam Vasani |
|
From: Dueway Q. <due...@gm...> - 2006-04-06 02:21:53
|
On 4/6/06, soam vasani <soa...@gm...> wrote: > On 4/4/06, david.j as <dav...@gm...> wrote: > > my system : > > CentOS release 4.2 (Final) > > 2.6.9-22.0.1.EL i686 athlon i386 GNU/Linux > > > 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 I got the same problem on FC4. I replace <linux/user.h> with <sys/user.h>, and build it successfully. > > I guess you need to find the glibc headers, can't use the kernel header. > > > Is lizard only for kernel 2.4? Any help would greatly be appreciated!! > > AFAIK lizard has only been tested properly with kernel 2.4. > But if I recall correctly it does build on 2.6. Anybody ? I built it on 2.6.11-1.1286_FC4 with a lot of modification to source code. GCC-4.0 emit a lot of errors and warnings, so most of modifications are about synta= x. There are errors issued by GCC-4.0, 1 GCC-4.0 could not recognize "-fwritable-strings" , so I remove it from all FLAGS, and I am not sure side-effect of removing this option. 2 Update insight-5.3/include/obstack.h. I simply copy obstack.h from latest libiberty to overwrite insight-5.3/include/obstack.h, in order to remove the error of "lvalue increment". 3 Define USE_PROC_PID_MEM as 0 in trace/config.H. It seems that copy /proc/<pid>/mem on 2.6 kernel may cause a problem, and I am still investigating it and learning ptrace now. It is only a work-around. :) Some of these modifications are just hacking, and I am still not clear about them, so any comments to them are appreicated! -- Dueway |