bug-coreutils
[Top][All Lists]
Advanced

[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 22:12:41 -0700
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

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]"

>> You might also want to try with /opt/sfw/bin/gcc.
>> (It's GCC 2.95.3, which should be entertaining.  :-)
>
> There is no /opt/sfw directory on the system.

/opt/sfw/bin/gcc is part of the optional SFWgcc package.

But it's just as well -- I tried that and it doesn't work, since GCC
2.95.3 can't handle declarations in the middle of blocks, which
coreutils uses now.  You need a more-recent version of GCC than
2.95.3.

> 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.

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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]