Subject: Re: libtool: link: cannot find the library `'
To: Jeremy C. Reed <>
From: Sebastian Prause <>
List: tech-pkg
Date: 03/28/2004 18:31:13
I'm now having the same error in devel/smpeg:

/bin/sh ./libtool --mode=link g++  -mcpu=athlon-xp -march=athlon-xp
-pipe -march=athlon-xp -mcpu=athlon-xp -pipe -I/usr/pkg/include
-DGLX_GLXEXT_LEGACY -I/usr/X11R6/include -I/usr/pkg/include/SDL
-D_REENTRANT -DTHREADED_AUDIO -I/usr/X11R6/include/gtk-1.2
-I/usr/pkg/include/glib/glib-1.2 -I/usr/pkg/lib/glib/include
-I/usr/X11R6/include  -I/usr/X11R6/include -DNDEBUG -I.. -DNOCONTROLS
-I. -I./audio -I./video -fno-exceptions -fno-rtti -L/usr/pkg/lib
-Wl,-R/usr/pkg/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib -o glmovie
glmovie-tile.o glmovie.o -L/usr/X11R6/lib -lGL -lGLU -lintl
-L/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib -lSDL -lpthread -lm
libtool: link: cannot find the library `'
make[1]: *** [glmovie] Error 1
make[1]: Leaving directory `/usr/pkgsrc/devel/smpeg/work/smpeg-0.4.4'
make: *** [all-recursive] Error 1
*** Error code 2

The bad .la file (

dependency_libs='/. /gcc-lib/i486-slackware-linux/../../../i486-slackware-linux/lib
/gcc-lib/i486-slackware-linux/../.. -lstdc++'

the original .la file has:

dependency_libs='-L/usr/pkg/lib -L/usr/lib/.
-L/usr/lib/gcc-lib/i486-slackware-linux/../.. -lstdc++'

Looks exactly like the problem you reported in pkg/24760.

After using your patch devel/smpeg builds fine, all those -L..s are
properly removed from the .la file. I think your fix should be applied to
pkgsrc (as well as the upcoming 2004Q1 branch).

   -- Sebastian Prause