Solaris 10 SPARC, with iconv-1.13.1 (not p4) installed already for other purposes. Make dies with:

libtool: link: gcc -g -O2 iconv.o -o iconv ../srclib/libicrt.a ($HOME)/sage-5.9/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.9/local/lib -R/usr/local/gnu/lib -R($HOME)/sage-5.9/local/lib -R/usr/local/gnu/lib ld: fatal: recording name conflict: file `($HOME)/sage-5.9/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

I.e. it's trying to add libiconv.so twice. If it would have just used -L options to match the -R options and used -liconv all would have been well.

The Makefile in .../sage-5.9/spkg/build/iconv-1.13.1.p4/src/src says

# On Solaris, the linker gives an error if we are using libintl.so and it
# refers to a libiconv.so in $prefix/lib since then it sees two libiconv.so's,
# one in $prefix/lib and one in ../lib/.libs. So we have to avoid using
# ../lib/libiconv.la entirely.

Which sounds like the problem, but it then goes on to special case HPUX but not Solaris.

        case "solaris2.10" in \
hpux*) $(CC) $(LDFLAGS) $(CFLAGS) $(iconv_LDFLAGS) iconv.o ../srclib/libicrt.a -L$(DESTDIR) $(libdir) -liconv -lintl $(OBJECTS_RES_no) `if test -n '$(DESTDIR)'; then echo " -Wl,+b -Wl,$(libdir)
"; fi` -o iconv$(EXEEXT);; \
*) $(LIBTOOL_LINK) $(CC) $(LDFLAGS) $(CFLAGS) $(iconv_LDFLAGS) iconv.o ../srclib/libicrt.a $(DESTDIR)$(libdir)/libiconv.la -lintl $(OBJECTS_RES_no) -o iconv$(EXEEXT);; \
        esac

Indeed, adding

solaris*) $(LIBTOOL_LINK) $(CC) $(LDFLAGS) $(CFLAGS) $(iconv_LDFLAGS) iconv.o ../srclib/lib
icrt.a -lintl $(OBJECTS_RES_no) -o iconv$(EXEEXT);; \

to this switch in Makefile.in allows the compilation to complete.

Rob

--
E-Mail: rob.mcma...@warwick.ac.uk               PHONE:  +44 24 7652 3037
Rob McMahon, IT Services, Warwick University, Coventry, CV4 7AL, England

--
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to