[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: |
Wed, 16 Aug 2006 01:57:52 -0700 |
User-agent: |
Mutt/1.4.1i |
On Tue 06-08-15 22:12, Paul Eggert wrote:
> Keith Thompson <address@hidden> writes:
>
> > I got the same error with gcc 4.1.1.
>
> Are you building GCC with the Sun linker, or with the binutils linker?
> I'm doing the former, and that might be related to the problem. Not
> that I think it matters, but I built GCC 4.1.1 with
> "CONFIG_SHELL=/bin/ksh configure --disable-nls
> --enable-languages=c,c++ --with-system-zlib --prefix=[my local
> prefix]"
It looks like I'm using the GNU linker; "gcc -v" says
"GNU ld version 2.16.1".
[...]
> > I'm trying again with PATH=`getconf PATH` (which sets it to
> > /usr/xpg4/bin:/usr/ccs/bin:/usr/bin:/opt/SUNWspro/bin). This will
> > use Sun's C compiler rather than gcc.
And it worked.
> Good luck. But it should work with GCC 4, since it works for me.
>
> Can you reproduce the problem with the following small program?
> What happens when you try to compile and link it with GCC?
>
> char gai_strerror ();
>
> int
> main ()
> {
> return gai_strerror ();
> }
>
> On my host "gcc t.c -lsocket -lnsl" compiles and links this just fine.
Mine too.
I've been messing around with $LD_LIBRARY_PATH and $LD_RUN_PATH;
possibly that screwed things up somehow.
--
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, 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 <=
- Re: coreutils 6.0, Solaris 9 build failure, Keith Thompson, 2006/08/15