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

Re: libtool re-linking at installation time?



On Mon, Jul 23, 2001 at 01:45:59PM +0200, Marcus Brinkmann wrote:

> On Mon, Jul 23, 2001 at 03:20:48AM -0400, Matt Zimmerman wrote:
> > (meanwhile, I've worked around the problem by building without the old -dev
> > package installed.  This shouldn't pose a problem for the autobuilders, but it
> > could for users)
> 
> As a work around, you can add a Build-Conflicts.  In general they are
> inconvenient, so if you can fix the problem better, please do so ;)

I spoke too soon by saying that I worked around the problem; it just bombs
out in a different way when the -dev package is not installed:

../../libtool  --mode=install /usr/bin/install -c libxmms-flac.la /home/mdz/data/src/deb/mine/work/flac/flac-1.0/debian/flac/usr/lib/xmms/Input/libxmms-flac.la
libtool-disable-static: install: warning: relinking `libxmms-flac.la'
cd /home/mdz/src/deb/mine/work/flac/flac-1.0/src/plugin_xmms; /bin/sh ../../libtool-disable-static --mode=relink gcc -I../.. -I./include -I ../../include -Wall -W -O3 -DNDEBUG -fomit-frame-pointer -funroll-loops -finline-functions -Winline -DFLaC__INLINE=__inline__ -O2 -I/usr/include/xmms -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -o libxmms-flac.la -rpath /usr/lib/xmms/Input -module -avoid-version plugin.lo ../../src/libFLAC/libFLAC.la -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm -lxmms
gcc -shared  plugin.lo  -L/usr/lib -lFLAC -L/usr/X11R6/lib -lgtk -lgdk -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm -lxmms   -Wl,-soname -Wl,libxmms-flac.so -o .libs/libxmms-flac.so
/usr/bin/ld: cannot find -lFLAC
collect2: ld returned 1 exit status
libtool: install: error: relink `libxmms-flac.la' with the above command before installing it
libtool: install: warning: remember to run `libtool --finish /usr/lib/xmms/Input'

For some reason, it is translating ../../src/libFLAC/libFLAC.la into -L/usr/lib
-lFLAC, when it should be ../../src/libFLAC/.libs/libFLAC.so.  Perhaps due to
the rpath option used when linking libFLAC?  This worked with the previous
version of FLAC, which used an older libtool (now 1.4).

-- 
 - mdz



Reply to: