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: compiling ltrace on macos / was Re: gdb problem


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


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