|
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 |