compiling ltrace on macos / was Re: gdb problem

Titus von Boxberg titus@v9g.de
Mon Aug 22 07:30:00 GMT 2011


Am 21.08.2011 um 20:11 schrieb Guylhem Aznar:
>>  read_config_file.c:86: undefined reference to `index'.
>> The first three would be fairly simple to correct.
>> As a uclibc-agnostic, the last one is beyond my imagination.
>> Any hints?
> 
> In my "handy functions" .h, which I frequently use to compile with uclibc :
> #define MAX_LINE 255
> #define getwd(x) getcwd(x,MAX_LINE)
> #define bcmp(s1,s2,n) memcmp((s1), (s2), (size_t)(n))
> #define index(s,c) strchr((s), (c))
> #define rindex(s,c) strrchr((s), (c))
> #define bcopy(src, dst, len) memcpy(dst, src, len)
Yann, Guylhem,

I'm just wondering if (and how!) uclibc/ltrace ever has been used before.
Since I do not use both, I'm reluctant to change it, though
replacing index by strchr doesn't look too difficult.

Comments?
Regards

Titus


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



More information about the crossgcc mailing list