[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: coreutils 6.0, Solaris 9 build failure
From: |
Keith Thompson |
Subject: |
Re: coreutils 6.0, Solaris 9 build failure |
Date: |
Tue, 15 Aug 2006 16:28:29 -0700 |
User-agent: |
Mutt/1.4.1i |
On Tue 06-08-15 15:30, Paul Eggert wrote:
> 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?
Nope. Just "./configure --prefix=..." followed by "make".
> 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?
I got this:
========================================================================
configure: checking how to do getaddrinfo, freeaddrinfo and getnameinfo
checking for library containing getaddrinfo... -lsocket
checking for getaddrinfo... yes
checking for gai_strerror... no
> What does "config.log" say near the point of failure for gai_strerror?
configure:14038: checking for gai_strerror
configure:14094: gcc -std=gnu99 -o conftest -g -O2 -Wl,--as-needed conftest.c
-lsocket >&5
/projects/globus/kst/solaris9/apps/gcc-4.0.2/bin/../lib/gcc/sparc-sun-solaris2.9/4.0.2/crt1.o:(.plt+0x0):
multiple definition of `_PROCEDURE_LINKAGE_TABLE_'
/usr/lib/libsocket.so:(.plt+0x0): first defined here
collect2: ld returned 1 exit status
configure:14100: $? = 1
configure: failed program was:
| /* confdefs.h. */
========================================================================
It's possible there's a problem with the way my gcc is configured.
(I built it myself under my home directory, and I've never quite
figured out how to build gcc properly under Solaris; I have yet to
get g++ to work properly.)
There's also a gcc 4.1.1 on the system. I'll try again with that.
--
Keith Thompson (The_Other_Keith) address@hidden <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
- 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 <=
- 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