Re: Is IRIX 6.5 obsolete?

2012-05-22 Thread Simon Josefsson
Paul Eggert writes: > On 05/22/2012 05:45 AM, Eric Blake wrote: >> I wonder if the 'extensions' module should add a -U_POSIX_SOURCE to >> CFLAGS on platforms where defining _POSIX_SOURCE is known to disable >> useful extensions. > > Typically it's not a good idea to second-guess users if they exp

Re: Is IRIX 6.5 obsolete?

2012-05-22 Thread Paul Eggert
On 05/22/2012 05:45 AM, Eric Blake wrote: > I wonder if the 'extensions' module should add a -U_POSIX_SOURCE to > CFLAGS on platforms where defining _POSIX_SOURCE is known to disable > useful extensions. Typically it's not a good idea to second-guess users if they explicitly put something into CFL

Re: Is IRIX 6.5 obsolete?

2012-05-22 Thread Eric Blake
On 05/22/2012 06:36 AM, Simon Josefsson wrote: >> It may have worked by accident for now, but POSIX doesn't require it to >> work, so we are better off using an explicit include that POSIX does >> guarantee so that if future Interix ever fixes their headers for POSIX >> compliance, we continue to

Re: Is IRIX 6.5 obsolete?

2012-05-22 Thread Simon Josefsson
Eric Blake writes: > On 05/22/2012 06:21 AM, Simon Josefsson wrote: >> Bruno Haible writes: >> >>> Hi Simon, >>> I have reverted the strdup and select patch, and I'll treat this as a user error. >>> >>> It was a user error. But the select.c patch was good: it fixed an >>> earlier-unde

Re: Is IRIX 6.5 obsolete?

2012-05-22 Thread Eric Blake
On 05/22/2012 06:21 AM, Simon Josefsson wrote: > Bruno Haible writes: > >> Hi Simon, >> >>> I have reverted the strdup and select patch, and I'll treat >>> this as a user error. >> >> It was a user error. But the select.c patch was good: it fixed an >> earlier-undetected mistake (that would have

Re: Is IRIX 6.5 obsolete?

2012-05-22 Thread Simon Josefsson
Bruno Haible writes: > Hi Simon, > >> I have reverted the strdup and select patch, and I'll treat >> this as a user error. > > It was a user error. But the select.c patch was good: it fixed an > earlier-undetected mistake (that would have likely been a compilation > error on Interix). However In

Re: Is IRIX 6.5 obsolete?

2012-05-22 Thread Bruno Haible
Hi Simon, > I have reverted the strdup and select patch, and I'll treat > this as a user error. It was a user error. But the select.c patch was good: it fixed an earlier-undetected mistake (that would have likely been a compilation error on Interix). Bruno

Re: Is IRIX 6.5 obsolete?

2012-05-22 Thread Simon Josefsson
Bruno Haible writes: > Simon Josefsson wrote: >> It was configured with: >> >> CC=c89 CFLAGS="-D_POSIX_SOURCE -I/usr/local/include" ... > > Bingo. On many platforms, the _POSIX_SOURCE macro has the effect of > *hiding* declarations, not of enabling them: > > $ uname -srv > IRIX64 6.5 10060437 >

Re: Is IRIX 6.5 obsolete?

2012-05-22 Thread Bruno Haible
Simon Josefsson wrote: > It was configured with: > > CC=c89 CFLAGS="-D_POSIX_SOURCE -I/usr/local/include" ... Bingo. On many platforms, the _POSIX_SOURCE macro has the effect of *hiding* declarations, not of enabling them: $ uname -srv IRIX64 6.5 10060437 $ cat foo.c #include $ cc -E foo.c | g

Re: Is IRIX 6.5 obsolete?

2012-05-21 Thread Simon Josefsson
Bruno Haible writes: > Hi Simon, > >> Do we want to support IRIX 6.5? It doesn't appear to have strdup: >> >> cc-1515 c89: ERROR File = client.c, Line = 45 >> A value of type "int" cannot be assigned to an entity of type "char *". >> *output = strdup (p); >> ^ >> 1 error detec

Re: Is IRIX 6.5 obsolete?

2012-05-21 Thread Bruno Haible
Hi Simon, > Do we want to support IRIX 6.5? It doesn't appear to have strdup: > > cc-1515 c89: ERROR File = client.c, Line = 45 > A value of type "int" cannot be assigned to an entity of type "char *". > *output = strdup (p); > ^ > 1 error detected in the compilation of "client

Re: Is IRIX 6.5 obsolete?

2012-05-21 Thread Paul Eggert
On 05/21/2012 01:42 PM, Simon Josefsson wrote: > Would this be a reason to un-deprecate the 'strdup' module? That's easy, right? and would solve the problem? So let's go with that.

Is IRIX 6.5 obsolete?

2012-05-21 Thread Simon Josefsson
Do we want to support IRIX 6.5? It doesn't appear to have strdup: cc-1515 c89: ERROR File = client.c, Line = 45 A value of type "int" cannot be assigned to an entity of type "char *". *output = strdup (p); ^ 1 error detected in the compilation of "client.c". Would this be a rea