[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AIX incorrectly detects strndup
From: |
Matthew Woehlke |
Subject: |
Re: AIX incorrectly detects strndup |
Date: |
Fri, 02 Feb 2007 12:31:01 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.9) Gecko/20061206 Thunderbird/1.5.0.9 Mnenhy/0.7.4.0 |
Jim Meyering wrote:
Matthew Woehlke <address@hidden> wrote:
...for some reason, configure on AIX is incorrectly thinking that it has
strndup (declared, anyway) from the OS, when it does not UNLESS
'_ALL_SOURCE' is defined. This causes a build failure in xstrndup (from
coreutils 6.6, and Jim's 6.7+ snapshot from Jan-26).
I know string.h has been seeing a lot of love recently, does this sound
like something already fixed (or more likely, irrelevant?) or should I
investigate why configure's check is failing?
It should be fixed in the coreutils snapshot of a few minutes ago.
Nope, still broken. Guess I'll have a look at configure.
The problem is just that configure sets HAVE_STRNDUP_DECL; if I change
the relevant spot in the generated string.h, it gets past xstrndup.
However, now mountlist.c is bombing on strstr. Looking in string.h, I see:
#if 0
# if 0
# undef strstr
# define strstr rpl_strstr
extern char *strstr (char const *__haystack, char const *__needle);
# endif
#else
# undef strstr
# define strstr
strstr_is_unportable__use_gnulib_module_strstr_for_portability
#endif
...so it seems strstr should be pulled, and isn't? Was this something
that was just fixed, or is it new?
--
Matthew
OFFICER throws a tear gas grenade at you. You start to feel nauseous.
You need fresh air quickly.
> OPEN WINDOWS
Sorry, I have a philosophical objection to Microsoft products.