This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [crosstool-ng] Issue with ltrace


On Mon, Feb 1, 2010 at 2:18 PM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> 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 ?

you must be using old version of GNU C library or uclibc.

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]