On 12/ 2/10 02:37 AM, Ralf Wildenhues wrote:
Hello Laviticus,
* Laviticus Stone wrote on Thu, Dec 02, 2010 at 01:45:04AM CET:
Hi, i'm trying to compile glib-2.0 on Solaris 11 from netbsd pkgsrc.
Libtool creates the following command and results:
gcc -shared .libs/garray.o .libs/gasyncqueue.o .libs/gatomic.o
[...]
.libs/giounix.o .libs/gspawn.o -Wl,--whole-archive
libcharset/.libs/libcharset.a -Wl,--no-whole-archive -Wl,-rpath
-Wl,/usr/pkgsrc/devel/glib2/work/.buildlink/lib -Wl,-rpath
-Wl,/usr/pkgsrc/devel/glib2/work/.buildlink/lib
-L/usr/pkgsrc/devel/glib2/work/.buildlink/lib
/usr/pkgsrc/devel/glib2/work/.buildlink/lib/libpcre.so
/usr/pkgsrc/devel/glib2/work/.buildlink/lib/libintl.so
/usr/pkgsrc/devel/glib2/work/.buildlink/lib/libiconv.so -lc -lnsl
-lsocket -lc -Wl,-R/usr/pkg/lib -Wl,-soname -Wl,libglib-2.0.so.0
-Wl,-retain-symbols-file -Wl,.libs/libglib-2.0.exp -o
.libs/libglib-2.0.so.0.2600.1
ld: fatal: file .libs/libglib-2.0.exp: unknown file type
ld: fatal: file processing errors. No output written to
.libs/libglib-2.0.so.0.2600.1
collect2: ld returned 1 exit status
Somehow libtool seems to think you're using GNU ld but apparently you're
not. Please send output of
./libtool --version
./libtool --config
Thanks,
Ralf
Hello, the gcc3 I was using from solaris repositories was using
/usr/ccs/bin/ld which is solaris ld (confirmed with gcc
-print-prog-name=ld). I changed to gcc4 from blastwave repositories
which that same command simply responds with 'ld', so it uses the search
path, so i created /opt/compat/bin and copied gnu ld to
/opt/compat/bin/ld and the problem has been fixed since.
[ r...@vds-cloud ]: /usr/bin/libtool --version
ltmain.sh (GNU libtool) 1.5.22 (1.1220.2.365 2005/12/18 22:14:06)
Thanks,
njm
_______________________________________________
http://lists.gnu.org/mailman/listinfo/libtool