Trying to compile sage-5.1 on Solaris 10 5/09 s10s_u7wos_08 SPARC, gcc (GCC) 4.4.2. iconv-1.13.1.p3 won't compile with the error:
libtool: link: gcc -g -O2 iconv.o -o iconv ../srclib/libicrt.a /home/unit/cu/dcv/src/local/sage-5.1/local/lib/libiconv.so /usr/local/gnu/lib/libintl.so -L/usr/local/lib /usr/local/gnu/lib/libiconv.so -lc -R/home/unit/cu/dcv/src/local/sage-5.1/local/lib -R/usr/local/gnu/lib -R/home/unit/cu/dcv/src/local/sage-5.1/local/lib -R/usr/local/gnu/lib
ld: fatal: recording name conflict: file `/home/unit/cu/dcv/src/local/sage-5.1/local/lib/libiconv.so' and file `/usr/local/gnu/lib/libiconv.so' provide identical dependency names: libiconv.so.2 (possible multiple inclusion of the same file)
ld: fatal: File processing errors. No output written to iconv
collect2: ld returned 1 exit status
Note that it is indeed trying to include two versions of libiconv.so, the installed one from /usr/local/gnu/lib, and the one built from within sage. If it had just used -L/home/unit/cu/dcv/src/local/sage-5.1/local/lib -L/usr/local/gnu/lib -liconv instead, all would have been well.
Relevant parts of the log file:
...
****************************************************
Host system:
SunOS mimosa 5.10 Generic_141444-09 sun4v sparc SUNW,SPARC-Enterprise-T5220 Solaris
****************************************************
C compiler: gcc
C compiler version:
Using built-in specs.
Target: sparc-sun-solaris2.10
Configured with: ../gcc-4.4.2/configure --prefix=/usr/local/gnu --with-gmp=/usr/local
Thread model: posix
gcc version 4.4.2 (GCC)
****************************************************
iconv will be installed as the operating system is Cygwin, HP-UX or Solaris.
These systems either lack iconv, or do not have a sufficiently capable
version of iconv. See:
http://trac.sagemath.org/sage_trac/ticket/8567 http://trac.sagemath.org/sage_trac/ticket/9603...
libtool: link: gcc -g -O2 iconv.o -o iconv ../srclib/libicrt.a /home/unit/cu/dcv/src/local/sage-5.1/local/lib/libiconv.so /usr/local/g
nu/lib/libintl.so -L/usr/local/lib /usr/local/gnu/lib/libiconv.so -lc -R/home/unit/cu/dcv/src/local/sage-5.1/local/lib -R/usr/local/gnu
/lib -R/home/unit/cu/dcv/src/local/sage-5.1/local/lib -R/usr/local/gnu/lib
ld: fatal: recording name conflict: file `/home/unit/cu/dcv/src/local/sage-5.1/local/lib/libiconv.so' and file `/usr/local/gnu/lib/libi
conv.so' provide identical dependency names: libiconv.so.2 (possible multiple inclusion of the same file)
ld: fatal: File processing errors. No output written to iconv
collect2: ld returned 1 exit status
gmake[3]: *** [install] Error 1
gmake[3]: Leaving directory `/home/unit/cu/dcv/src/local/sage-5.1/spkg/build/iconv-1.13.1.p3/src/src'
gmake[2]: *** [install] Error 2
gmake[2]: Leaving directory `/home/unit/cu/dcv/src/local/sage-5.1/spkg/build/iconv-1.13.1.p3/src'
Error installing iconv
How do I get it to skip this package, and carry on ? I'm pretty confident the system libiconv.so would work.
Cheers,
Rob