[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: coreutils 6.0, Solaris 9 build failure
From: |
Paul Eggert |
Subject: |
Re: coreutils 6.0, Solaris 9 build failure |
Date: |
Tue, 15 Aug 2006 15:30:57 -0700 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux) |
Keith Thompson <address@hidden> writes:
> % uname -a
> SunOS elmak 5.9 Generic_118558-20 sun4u sparc SUNW,Sun-Blade-100 Solaris
> % config.guess
> sparc-sun-solaris2.9
> % gcc --version
> gcc (GCC) 4.0.2
> [...]
>
> The build fails with the following error message:
>
> gai_strerror.c:70: error: conflicting types for 'gai_strerror'
> /usr/include/netdb.h:311: error: previous declaration of 'gai_strerror' was
> here
I don't observe this on my Solaris 9 host. I'm using GCC 4.1.1, which
might be relevant.
I didn't configure with any special flags; did you?
My build didn't attempt to compile gai_strerror.c, which is the
correct behavior on Solaris 9, as it has a suitable gai_strerror of
its own. So we need to investigate why your build did the wrong thing.
This is probably related to the following output of "configure" on my
Solaris 9 host:
configure: checking how to do getaddrinfo, freeaddrinfo and getnameinfo
checking for library containing getaddrinfo... -lsocket
checking for getaddrinfo... yes
checking for gai_strerror... yes
What does your "configure" output say in this neighborhood?
What does "config.log" say near the point of failure for gai_strerror?
- coreutils 6.0, Solaris 9 build failure, Keith Thompson, 2006/08/15
- Re: coreutils 6.0, Solaris 9 build failure,
Paul Eggert <=
- Re: coreutils 6.0, Solaris 9 build failure, Keith Thompson, 2006/08/15
- Re: coreutils 6.0, Solaris 9 build failure, Paul Eggert, 2006/08/15
- Re: coreutils 6.0, Solaris 9 build failure, Keith Thompson, 2006/08/15
- Re: coreutils 6.0, Solaris 9 build failure, Paul Eggert, 2006/08/16
- Re: coreutils 6.0, Solaris 9 build failure, Keith Thompson, 2006/08/16
- Re: coreutils 6.0, Solaris 9 build failure, Keith Thompson, 2006/08/15