Subject: libtool won't link C++ libs (SunPro/Solaris 8)
To: None <tech-pkg@NetBSD.org>
From: Robert Lillack <lillack@mis.mpg.de>
List: tech-pkg
Date: 03/23/2005 18:32:08
Hi,
I'm trying to build some packages on Sol8 with the SunPro compiler and
most things run very smooth. But every time libtool should link a C++
library it just does not call the linker: [example from ncurses]
----------------------------------------------------------------------
cd ../lib && /tmp/pkgsrc/devel/ncurses/work/.wrapper/bin/libtool
--tag=CXX --mode=link /tmp/pkgsrc/devel/ncurses/work/.wrapper/bin/g++
-O -o libncurses++.la ../obj_lo/cursesf.lo ../obj_lo/cursesm.lo
../obj_lo/cursesw.lo ../obj_lo/cursespad.lo ../obj_lo/cursesp.lo
../obj_lo/cursslk.lo ../obj_lo/cursesapp.lo ../obj_lo/cursesmain.lo
-rpath /opt/local/pkg/lib -version-info 5:4 -L../lib -lncurses
*** [buildlink3] Warning: libtool replaced -lncurses with
../lib/libncurses.la
(cd .libs && rm -f libncurses++.so.5 && ln -s libncurses++.so.5.0.4
libncurses++.so.5)
(cd .libs && rm -f libncurses++.so && ln -s libncurses++.so.5.0.4
libncurses++.so)
ar cru .libs/libncurses++.a ../obj_lo/cursesf.o ../obj_lo/cursesm.o
../obj_lo/cursesw.o ../obj_lo/cursespad.o ../obj_lo/cursesp.o
../obj_lo/cursslk.o ../obj_lo/cursesapp.o ../obj_lo/cursesmain.o
ranlib .libs/libncurses++.a
creating libncurses++.la
(cd .libs && rm -f libncurses++.la && ln -s ../libncurses++.la
libncurses++.la)
----------------------------------------------------------------------
As you can see, the actual linking call is missing. Even though libtool
knows, that this platform _is_ able to create shared libraries because
in fact it creates the (broken) symlinks for the lib.
Does anybody know how to investigate further?
Thanks in advance, Rob.
--
+- Robert Lillack ------------------ lillack@mis.mpg.de -+
/ Max Planck Institute for Mathematics in the Sciences /
+- Leipzig, Germany ----------- phone: +49-341-9959-693 -+