Hi Bruno
Hmmm, as per config.log and config.h configure apparently found alphasort and
#defined _HAVE_ALPHASORT, I wonder why?
configure:24953: checking for alphasort
configure:24953: cc -o conftest -g -I/usr/local/include conftest.c >&5
return 0;
^
"/usr/local/Floss/gnulib/testdir-posix/conftest.c", line 302: warning(203):
statement is unreachable
configure:24953: $? = 0
configure:24953: result: yes
Looks like a severe problem with my /usr/local/bin/cc wrapper script, using
/usr/bin/c89 directly makes the linking fail, as it should.
Ah! Found it in a lib called zutildll! And that indeed gets linked by my
wrapper script. It is not documented anywhere, so I'm not sure whether it
serves the purpose POSIX defined for this...
Not sure whether I'd need to do an #undef HAVE_ALPHASORT or just add it's
prototype and where to do any of this.
I need to have a deeper look later, probably after X-mas.
Bye, Jojo
PS: Merry Christmas and a Happy New Year to all of you!
-----Original Message-----
From: Joachim Schmitz [mailto:[email protected]]
Sent: Thursday, December 23, 2010 2:40 PM
To: 'Bruno Haible'
Cc: '[email protected]'
Subject: RE: alphasort on HP-NonStop
You mean add alphasort to gllib/dirent.in.h?
We don't have an alphasort elsewhere
And yes, we're quite a bit behind the current POSIX...
-----Original Message-----
From: Bruno Haible [mailto:[email protected]]
Sent: Thursday, December 23, 2010 1:40 PM
To: Joachim Schmitz
Cc: [email protected]
Subject: Re: alphasort on HP-NonStop
Joachim Schmitz wrote:
> alphasort missing, need to modify gllib/dirent.in.h? How?
> source='test-dirent-c++.cc' object='test-dirent-c++.o' libtool=no
> DEPDIR=.depsdepmode=none /bin/sh ./../build-aux/depcomp c++
> -HAVE_CONFIG_H -I. -DGNULIB_STRICT_CHECKING=1 -I. -I. -I.. -I./..
> -I../gllib -I./../gllib -I/usr/local/include -Wnowarn -c -o
> test-dirent-c++.o test-dirent-c++.cc
> _GL_CXXALIAS_SYS_CAST (alphasort, int,
> ^
> "/usr/local/Floss/gnulib/testdir-posix/gltests/./../gllib/dirent.h", line
> 471: error(363):
> the global scope has no "alphasort"
Gnulib has an 'alphasort' module that provides a replacement when the function
is missing. The error message here makes me think that the function exists on
your system but its declaration is missing.
Can you add the declaration to <dirent.h>?
References:
<http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/dirent.h.html>
<http://pubs.opengroup.org/onlinepubs/9699919799/functions/alphasort.html>
Bruno