Subject: libiconv on Solaris 9/x86: libtool or tool ooops?
To: None <pkgsrc-users@NetBSD.org>
From: Hubert Feyrer <hubert@feyrer.de>
List: pkgsrc-users
Date: 07/26/2007 11:34:27
Hi,

trying to build pkgsrc/converters/libiconv on Solaris 9/x86, I get the 
error below. Libtool was freshly rebuilt, gcc is V3.3.1 externally 
installed (not via pkgsrc), 'ld' is from binutils installed via pkgsrc).
I've made sure libtool is freshly installed.

Is there anything I can do to fix that build error, or is this a pkgsrc 
problem?

The work/.work.log file is available at 
http://www.feyrer.de/Misc/libiconv-work.log.


  - Hubert


=> Required installed package digest>=20010302: digest-20060826 found
===> Skipping vulnerability checks.
WARNING: No /net/zeus/bindata/NetBSD/cvs/pkgsrc/distfiles/pkg-vulnerabilities file found.
WARNING: To fix, install the pkgsrc/security/audit-packages
WARNING: package and run: ``/bindata/Solaris/intel/9/pkg2/sbin/download-vulnerability-list''.
===> Building for libiconv-1.11
builddir="`pwd`"; cd libcharset && /bindata/Solaris/intel/9/pkg2/bin/bmake all &&	 /bindata/Solaris/intel/9/pkg2/bin/pax -rw lib/libcharset.la lib/.libs "$builddir/" &&	 /bindata/Solaris/intel/9/pkg2/bin/pax -rw include/*.h "$builddir/"
cd lib && /bindata/Solaris/intel/9/pkg2/bin/bmake all
/bin/sh ../libtool --mode=link gcc -Wl,-R/bindata/Solaris/intel/9/pkg2/lib -o libcharset.la -rpath /bindata/Solaris/intel/9/pkg2/lib -version-info 1:0:0 -no-undefined localcharset.lo relocatable.lo
gcc -shared  .libs/localcharset.o .libs/relocatable.o  -L/net/zeus/bindata/NetBSD/cvs/pkgsrc/converters/libiconv/work.i386/.buildlink/lib -lc  -Wl,-R/bindata/Solaris/intel/9/pkg2/lib -Wl,-soname -Wl,libcharset.so.1 -o .libs/libcharset.so.1.0.0
ld: warning: option -o appears more than once, first setting taken
ld: fatal: file libcharset.so.1: open failed: No such file or directory
ld: fatal: File processing errors. No output written to .libs/libcharset.so.1.0.0
collect2: ld returned 1 exit status
*** Error code 1

Stop.
bmake: stopped in /net/zeus/bindata/NetBSD/cvs/pkgsrc/converters/libiconv/work.i386/libiconv-1.11/libcharset/lib
*** Error code 1

Stop.
bmake: stopped in /net/zeus/bindata/NetBSD/cvs/pkgsrc/converters/libiconv/work.i386/libiconv-1.11/libcharset
*** Error code 1

Stop.
bmake: stopped in /net/zeus/bindata/NetBSD/cvs/pkgsrc/converters/libiconv/work.i386/libiconv-1.11
*** Error code 1

Stop.
bmake: stopped in /usrdata/bedienst/f/feh39068/work/pkgsrc/pkgsrc/converters/libiconv
*** Error code 1

Stop.
bmake: stopped in /usrdata/bedienst/f/feh39068/work/pkgsrc/pkgsrc/converters/libiconv