Subject: libtool won't link C++ libs (SunPro/Solaris 8)
To: None <>
From: Robert Lillack <>
List: tech-pkg
Date: 03/23/2005 18:32:08

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 ../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

(cd .libs && rm -f && ln -s

(cd .libs && rm -f && ln -s

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
(cd .libs && rm -f && ln -s ../

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 ------------------ -+
  /  Max Planck Institute for Mathematics in the Sciences  /
+- Leipzig, Germany ----------- phone: +49-341-9959-693 -+