[crosstool-ng] Issue with ltrace
Thomas Petazzoni
thomas.petazzoni@free-electrons.com
Mon Feb 1 22:18:00 GMT 2010
Hello,
I just downloaded crosstool-ng 1.6.0 and tried to build the
arm-unknown-linux-uclibcgnueabi sample. The build fails with:
[EXTRA] Building ltrace
[ERROR] events.c:95: error: 'PTRACE_EVENT_FORK' undeclared (first use in this function)
[ERROR] events.c:95: error: (Each undeclared identifier is reported only once
[ERROR] events.c:95: error: for each function it appears in.)
[ERROR] events.c:95: error: 'PTRACE_EVENT_VFORK' undeclared (first use in this function)
[ERROR] events.c:95: error: 'PTRACE_EVENT_CLONE' undeclared (first use in this function)
[ERROR] events.c:97: error: 'PTRACE_GETEVENTMSG' undeclared (first use in this function)
[ERROR] events.c:103: error: 'PTRACE_EVENT_EXEC' undeclared (first use in this function)
[ERROR] make[2]: *** [events.o] Error 1
[ERROR] make[1]: *** [sysdeps/sysdep.o] Error 2
[ERROR] Build failed in step 'Installing ltrace'
The sample selects ltrace 0.5.2, while a newer version, 0.5.3 is
available. This newer version seems to have a fix for this issue, in
the form of a patch already included in crosstool-ng:
patches/ltrace/0.5.3/160-fix-missing-ptrace-defines.patch
So this fix should be included for ltrace 0.5.2 as well. But why aren't
these defines available in the C library ?
Cheers,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list