bug-gnu-libiconv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gnu-libiconv] Re: Unable to build libiconv 1.13.1 on OpenSolaris


From: Bruno Haible
Subject: [bug-gnu-libiconv] Re: Unable to build libiconv 1.13.1 on OpenSolaris
Date: Fri, 21 May 2010 23:52:14 +0200
User-agent: KMail/1.9.9

Hi,

Dr. David Kirkby wrote:
> I get the following message.
> 
> libtool: link: gcc -shared -Wl,-z -Wl,text -Wl,-h -Wl,libiconv.so.2 -o 
> .libs/libiconv.so.2.5.0  .libs/iconv.o .libs/localcharset.o 
> .libs/relocatable.o 
>    -lc
> Text relocation remains                       referenced
>      against symbol               offset      in file
> aliases_lookup                      0x125c6           .libs/iconv.o
> aliases_lookup                      0x12b04           .libs/iconv.o
> ld: fatal: relocations remain against allocatable but non-writable sections
> collect2: ld returned 1 exit status
> make[1]: *** [libiconv.la] Error 1
> make[1]: Leaving directory `/tmp/iconv-1.13.1.p2/src/lib'

Either libtool somehow did not infer the right option for your GCC to produce
position-independent code (i.e. code without relocations in the .text segment).
Or your GCC is broken.

I would try to rebuild with CC="gcc -fPIC". If that succeeds, then libtool
guessed the wrong option. If not, your GCC is unusable.

> address@hidden:/tmp/iconv-1.13.1.p2/src$ gcc -v
> Using built-in specs.
> Target: i386-pc-solaris2.11
> Configured with: ../gcc-4.3.4/configure 
> --prefix=/usr/local/gcc-4.3.4-GNU-assembler-Sun-linker 
> --with-as=/usr/local/binutils-2.20/bin/as --with-ld=/usr/ccs/bin/ld 
> --with-gmp=/usr/local --with-mpfr=/usr/local
> Thread model: posix
> gcc version 4.3.4 (GCC)

This matches the recommendations given in
  <http://gcc.gnu.org/install/specific.html#ix86-x-solaris210>.
Good.

> Have you any suggestions how I might resolve this?

Other than the suggestion above, I would suggest using a different compiler or
GCC version. Why not just use /usr/bin/cc or /usr/bin/gcc? That is certainly
well tested. A libiconv built by any C compiler is usable by any other C
compiler.

In this thread:
<https://de.opensolaris.org/jive/thread.jspa?threadID=116065&tstart=143>
a person with a similar name as yours reports that GCC 4.5.0 prereleases went
well. Now gcc 4.5.0 is released.

> If a developer does not have an OpenSolaris machine, and wants access to the 
> machine, drop me an email and I'll give you an account.

Thanks for the offer, but I feel that finding out about the correct
configuration options for GCC on OpenSolaris would distract me a bit from my
main development goals.

Bruno



reply via email to

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