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

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

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


From: Dr. David Kirkby
Subject: [bug-gnu-libiconv] Unable to build libiconv 1.13.1 on OpenSolaris
Date: Fri, 21 May 2010 14:28:00 +0100
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.1.7) Gecko/20100214 Thunderbird/3.0.1

I'm trying to build libiconv 1.13.1 on a Sun Ultra 27 (Quad core Intel Xeon) using gcc configured as below.


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)


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'


A google shows this may be fixed by using the GNU linker rather than the Sun linker with gcc. I've not tried that, as it is not an option. iconv is built as part of about 1,000,000 lines of code, and I don't wish to change the linker, as I know I will get more problems than I solve. The same version of libiconv builds ok on SPARC.

Also I believe this would probably work using Sun Studio as a compiler (which uses the Sun linker), but again that is not an option.

Have you any suggestions how I might resolve this?

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.

dave


Attachment: config.log.gz
Description: GNU Zip compressed data


reply via email to

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