pkgsrc-Bugs archive

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

pkg/39159: libtool problem while compiling libiconv on solaris



>Number:         39159
>Category:       pkg
>Synopsis:       libtool problem while compiling libiconv on solaris
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 17 09:05:00 +0000 2008
>Originator:     Guillaume Infantes
>Release:        current pkgsrc on solaris 2.10
>Organization:
>Environment:
SunOS aurkand 5.10 Generic_127111-08 sun4u sparc SUNW,A70

>Description:
I am running into a severe bug that is completely prenventing me from 
installing anything on a user/local install on solaris. 

Many packages are trying to install libiconv, but it definitely cannot be 
compiled, (and I dont figure how to solve this issue).

The problem is that libtool is generating a bad gcc link line into 
libiconv/libcharset :

===> Building for libiconv-1.12nb1
builddir="`pwd`"; cd libcharset && 
/home/dera/ginfante/OS/OS-SunOS/pkg/bin/bmake all &&  
/home/dera/ginfante/OS/OS-SunOS/pkg/bin/pax -rw lib/libcharset.la lib/.libs 
"$builddir/" &&     /home/dera/ginfante/OS/OS-SunOS/pkg/bin/pax -rw include/*.h 
"$builddir/"
cd lib && /home/dera/ginfante/OS/OS-SunOS/pkg/bin/bmake all


THE LIBTOOL line (which seems fine to me)
/bin/sh ../libtool --mode=link gcc 
-Wl,-R/home/dera/ginfante/OS/OS-SunOS/pkg/lib -O -fvisibility=hidden -o 
libcharset.la -rpath /home/dera/ginfante/OS/OS-SunOS/pkg/lib -version-info 
1:0:0 -no-undefined localcharset.lo relocatable.lo

THE BOGUS link line: 
gcc -shared  .libs/localcharset.o .libs/relocatable.o  
-L/home/dera/ginfante/OS/pkgsrc/converters/libiconv/work/.buildlink/lib -lc  
-Wl,-R/home/dera/ginfante/OS/OS-SunOS/pkg/lib -Wl,-soname -Wl,libcharset.so.1 
-o .libs/libcharset.so.1.0.0

as one can se -Wl,-soname is nonsense, and furthermore libcharset.so.1 does not 
exist yet. 


THE ERROR messages (first one comes from -Wl,-soname) : 
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


>How-To-Repeat:
1.  install a local pkgsrc on solaris 2.10  (cvs, bootstrap)
2. bmake install in converters/libiconv
>Fix:



Home | Main Index | Thread Index | Old Index