[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: alphasort on HP-NonStop
From: |
Joachim Schmitz |
Subject: |
RE: alphasort on HP-NonStop |
Date: |
Fri, 24 Dec 2010 11:33:16 +0100 |
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:address@hidden
Sent: Thursday, December 23, 2010 2:40 PM
To: 'Bruno Haible'
Cc: 'address@hidden'
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:address@hidden
Sent: Thursday, December 23, 2010 1:40 PM
To: Joachim Schmitz
Cc: address@hidden
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
- RE: <signal.h> on HP-NonStop, (continued)
- RE: <signal.h> on HP-NonStop, Joachim Schmitz, 2010/12/23
- list protocol [was: <signal.h> on HP-NonStop], Eric Blake, 2010/12/23
- Re: porting alignof to HP-NonStop, Bruno Haible, 2010/12/23
- RE: porting alignof to HP-NonStop, Joachim Schmitz, 2010/12/23
- Re: porting alignof to HP-NonStop, Bruno Haible, 2010/12/24
- Re: alphasort on HP-NonStop, Bruno Haible, 2010/12/23
- RE: alphasort on HP-NonStop, Joachim Schmitz, 2010/12/23
- RE: alphasort on HP-NonStop,
Joachim Schmitz <=
- Re: alphasort on HP-NonStop, Bruno Haible, 2010/12/24
- RE: alphasort on HP-NonStop, Joachim Schmitz, 2010/12/24
- RE: alphasort on HP-NonStop, Joachim Schmitz, 2010/12/28
- Re: alphasort on HP-NonStop, Paul Eggert, 2010/12/28
- RE: alphasort on HP-NonStop, Joachim Schmitz, 2010/12/28
- Re: gethostname on HP-NonStop, Bruno Haible, 2010/12/23
- RE: gethostname on HP-NonStop, Joachim Schmitz, 2010/12/23
- RE: gethostname on HP-NonStop, Joachim Schmitz, 2010/12/23
- Re: gethostname on HP-NonStop, Bruno Haible, 2010/12/24
- RE: gethostname on HP-NonStop, Joachim Schmitz, 2010/12/25