[csw-maintainers] User reported build problems with gcc4.3, Sun ld, and libiconv

Sebastian Kayser skayser at opencsw.org
Fri May 21 17:53:16 CEST 2010


Greetings,

I just received this build failure report from a user trying to build
libiconv with gcc4.3. Has someone seen an error like this before?
Further, are there any general known issues for our gcc4.3 (i vaguely
remember someone mentioning something).

* david.kirkby at onetel.net <david.kirkby at onetel.net> wrote:
> libtool: install: /usr/bin/ginstall -c -m 644 .libs/libcharset.so.1.0.0 /tmp/iconv-1.13.1.p2/src/lib/libcharset.so.1.0.0
> libtool: install: (cd /tmp/iconv-1.13.1.p2/src/lib && { ln -s -f libcharset.so.1.0.0 libcharset.so.1 || { rm -f libcharset.so.1 && ln -s libcharset.so.1.0.0 libcharset.so.1; }; })
> libtool: install: (cd /tmp/iconv-1.13.1.p2/src/lib && { ln -s -f libcharset.so.1.0.0 libcharset.so || { rm -f libcharset.so && ln -s libcharset.so.1.0.0 libcharset.so; }; })
> libtool: install: chmod +x /tmp/iconv-1.13.1.p2/src/lib/libcharset.so.1.0.0
> libtool: install: /usr/bin/ginstall -c -m 644 .libs/libcharset.lai /tmp/iconv-1.13.1.p2/src/lib/libcharset.la
> libtool: install: /usr/bin/ginstall -c -m 644 .libs/libcharset.a /tmp/iconv-1.13.1.p2/src/lib/libcharset.a
> libtool: install: chmod 644 /tmp/iconv-1.13.1.p2/src/lib/libcharset.a
> libtool: install: ranlib /tmp/iconv-1.13.1.p2/src/lib/libcharset.a
> libtool: install: warning: remember to run `libtool --finish /usr/local/lib'
> test -f /tmp/iconv-1.13.1.p2/src/lib/charset.alias && orig=/tmp/iconv-1.13.1.p2/src/lib/charset.alias \
> 	                                || orig=charset.alias; \
> 	sed -f ref-add.sed $orig > /tmp/iconv-1.13.1.p2/src/lib/t-charset.alias; \
> 	/usr/bin/ginstall -c -m 644 /tmp/iconv-1.13.1.p2/src/lib/t-charset.alias /tmp/iconv-1.13.1.p2/src/lib/charset.alias; \
> 	rm -f /tmp/iconv-1.13.1.p2/src/lib/t-charset.alias
> make[2]: Leaving directory `/tmp/iconv-1.13.1.p2/src/libcharset/lib'
> /bin/sh ./build-aux/mkinstalldirs /tmp/iconv-1.13.1.p2/src/lib
> /usr/bin/ginstall -c -m 644 include/libcharset.h /tmp/iconv-1.13.1.p2/src/lib/libcharset.h
> /usr/bin/ginstall -c -m 644 include/localcharset.h.inst /tmp/iconv-1.13.1.p2/src/lib/localcharset.h
> make[1]: Leaving directory `/tmp/iconv-1.13.1.p2/src/libcharset'
> cd lib && make all
> make[1]: Entering directory `/tmp/iconv-1.13.1.p2/src/lib'
> /bin/sh ../libtool --mode=compile gcc -I. -I. -I../include -I./../include -I.. -I./..  -g -O2 -fvisibility=hidden -fPIC -DLIBDIR=\"/usr/local/lib\" -DBUILDING_LIBICONV -DBUILDING_DLL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"/usr/local/lib\" -DNO_XMALLOC -Dset_relocation_prefix=libiconv_set_relocation_prefix -Drelocate=libiconv_relocate -DHAVE_CONFIG_H -c ./iconv.c
> libtool: compile:  gcc -I. -I. -I../include -I./../include -I.. -I./.. -g -O2 -fvisibility=hidden -fPIC "-DLIBDIR=\"/usr/local/lib\"" -DBUILDING_LIBICONV -DBUILDING_DLL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY "-DINSTALLDIR=\"/usr/local/lib\"" -DNO_XMALLOC -Dset_relocation_prefix=libiconv_set_relocation_prefix -Drelocate=libiconv_relocate -DHAVE_CONFIG_H -c ./iconv.c  -fPIC -DPIC -o .libs/iconv.o
> lib/aliases_syssolaris.gperf: In function ‘aliases_lookup’:
> lib/aliases_syssolaris.gperf:389: warning: visibility attribute not supported in this configuration; ignored
> /bin/sh ../libtool --mode=compile gcc -I. -I. -I../include -I./../include -I.. -I./..  -g -O2 -fvisibility=hidden -fPIC -DLIBDIR=\"/usr/local/lib\" -DBUILDING_LIBICONV -DBUILDING_DLL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"/usr/local/lib\" -DNO_XMALLOC -Dset_relocation_prefix=libiconv_set_relocation_prefix -Drelocate=libiconv_relocate -DHAVE_CONFIG_H -c ./../libcharset/lib/localcharset.c
> libtool: compile:  gcc -I. -I. -I../include -I./../include -I.. -I./.. -g -O2 -fvisibility=hidden -fPIC "-DLIBDIR=\"/usr/local/lib\"" -DBUILDING_LIBICONV -DBUILDING_DLL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY "-DINSTALLDIR=\"/usr/local/lib\"" -DNO_XMALLOC -Dset_relocation_prefix=libiconv_set_relocation_prefix -Drelocate=libiconv_relocate -DHAVE_CONFIG_H -c ./../libcharset/lib/localcharset.c  -fPIC -DPIC -o .libs/localcharset.o
> ./../libcharset/lib/localcharset.c: In function ‘locale_charset’:
> ./../libcharset/lib/localcharset.c:500: warning: visibility attribute not supported in this configuration; ignored
> /bin/sh ../libtool --mode=compile gcc -I. -I. -I../include -I./../include -I.. -I./..  -g -O2 -fvisibility=hidden -fPIC -DLIBDIR=\"/usr/local/lib\" -DBUILDING_LIBICONV -DBUILDING_DLL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"/usr/local/lib\" -DNO_XMALLOC -Dset_relocation_prefix=libiconv_set_relocation_prefix -Drelocate=libiconv_relocate -DHAVE_CONFIG_H -c ./relocatable.c
> libtool: compile:  gcc -I. -I. -I../include -I./../include -I.. -I./.. -g -O2 -fvisibility=hidden -fPIC "-DLIBDIR=\"/usr/local/lib\"" -DBUILDING_LIBICONV -DBUILDING_DLL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY "-DINSTALLDIR=\"/usr/local/lib\"" -DNO_XMALLOC -Dset_relocation_prefix=libiconv_set_relocation_prefix -Drelocate=libiconv_relocate -DHAVE_CONFIG_H -c ./relocatable.c  -fPIC -DPIC -o .libs/relocatable.o
> ./relocatable.c: In function ‘libiconv_relocate’:
> ./relocatable.c:466: warning: visibility attribute not supported in this configuration; ignored
> /bin/sh ../libtool --mode=link gcc  -g -O2 -fvisibility=hidden -fPIC -o libiconv.la -rpath /usr/local/lib -version-info 7:0:5 -no-undefined iconv.lo localcharset.lo relocatable.lo  
> 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'
> make: *** [all] Error 2

Sun studio is not an option for him as he needs to build a full stack on
top of it which contains a massively GNUisms infested software. If
someone can help him out, David is on CC.

Thanks

Sebastian


More information about the maintainers mailing list