Subject: Re: xmms and libtool related question
To: Juan RP <>
From: Ben Collver <>
List: tech-pkg
Date: 12/21/2003 21:05:00
On Mon, Dec 22, 2003 at 05:33:57AM +0100, Juan RP wrote:
> The problem is with libgcc:

One thing I notice in that post is:
"You cannot anymore link c++ problems with cc, you need to use g++ because
 of the way libgcc_pic.a is resolved right now."

And I see that g++ *is* being used for linking:

/bin/sh ../libtool --mode=link c++  -O2 -DDEVICE_NAME="\"/dev/sound\""
-I/usr/pkg/include -I/usr/X11R6/include -fno-exceptions -Wall -ffast-math
-D_REENTRANT -I/usr/pkg/include/glib/glib-1.2 -I/usr/pkg/lib/glib/include
-lm -lossaudio -Wl,-R/usr/lib  -L/usr/pkg/lib -Wl,-R/usr/pkg/lib
-L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib -o -rpath
/usr/pkg/lib/xmms/Input -module -avoid-version -lgcc_pic plugin.lo
modplugxmms.lo ./archive/ ./gui/ -L/usr/pkg/lib
-lmodplug -lstdc++ -lm -lintl

c++ -shared -nostdlib /usr/lib/crti.o /usr/lib/crtbeginS.o  .libs/plugin.o
.libs/modplugxmms.o -Wl,--whole-archive ./archive/.libs/libarchive.a
./gui/.libs/libgui.a -Wl,--no-whole-archive  -Wl,--rpath -Wl,/usr/pkg/lib
-Wl,--rpath -Wl,/usr/pkg/lib
-L/usr/pkgsrc/wip/xmms-modplug/work/.buildlink-x11/lib -lgcc_pic
./archive/.libs/libarchive.a -L/usr/bin/../libexec ./gui/.libs/libgui.a
-lossaudio /usr/pkg/lib/ -L/usr/pkg/lib -L/usr/X11R6/lib
/usr/lib/ -lstdc++ -lm /usr/lib/crtendS.o /usr/lib/crtn.o
-Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -Wl,-R/usr/X11R6/lib -Wl,-soname
-Wl, -o .libs/

Did you end up finding a workaround?

Thank you,

A hacker does for love what others would not do for money.