Subject: Re: libtool: link: cannot find the library `'
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 03/12/2004 18:05:53
On Thu, 11 Mar 2004, Jeremy C. Reed wrote:

> libtool: link: cannot find the library `'

I made libtool be more verbose with:

$echo "$modename: cannot find the library \`$lib' (lib${name}.la: $deplib)" 1>&2

And the error in misc/yelp is now:

 libtool: link: cannot find the library `' (libglade-2.0.la:
 /python2p3/config)

And devel/eel2 dies with same:

 libtool: link: cannot find the library `' (libglade-2.0.la:
 /python2p3/config)

So I looked at devel/eel2/work.puget/.buildlink/lib/libglade-2.0.la and it
had:

 # Libraries that this one depends upon.
 dependency_libs='/python2p3/config -lxml2 -lz -lz -lgtk-x11-2.0
 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lgthread-2.0 -lpthread -lm
 -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0
 -lglib-2.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0'

The original /usr/lib/libglade-2.0.la has:

 # Libraries that this one depends upon.
 dependency_libs='-L/usr/gcc3/lib/gcc-lib/i386-pc-linux/3.3.3
 -L/usr/gcc3/lib -L/usr/lib -L/usr/lib/python2p3/config -L/usr/X11R6/lib
 -lxml2 -lz -lz -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0
 -lgthread-2.0 -lpthread -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0
 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lgobject-2.0 -lgmodule-2.0 -ldl
 -lglib-2.0'

(Everything in /usr is from pkgsrc.)

This is from libglade2-2.0.1nb14.

On another box, /usr/pkg/lib/libglade-2.0.la does not have any reference
to "python". It is same libglade2-2.0.1nb14. It has:

 # Libraries that this one depends upon.
 dependency_libs=' -L/usr/pkg/lib -L/usr/X11R6/lib /usr/pkg/lib/libxml2.la
 -lz /usr/pkg/lib/libgtk-x11-2.0.la /usr/pkg/lib/libgdk-x11-2.0.la
 /usr/pkg/lib/libatk-1.0.la /usr/pkg/lib/libgdk_pixbuf-2.0.la
 /usr/pkg/lib/libgthread-2.0.la /usr/pkg/lib/libpthread.la
 /usr/pkg/lib/libpangoxft-1.0.la /usr/pkg/lib/libpangox-1.0.la
 /usr/pkg/lib/libpango-1.0.la /usr/pkg/lib/libgobject-2.0.la
 /usr/pkg/lib/libgmodule-2.0.la /usr/pkg/lib/libglib-2.0.la -liconv -lintl
 -liconv -lm -lintl'

I don't know where the "-L/usr/lib/python2p3/config" came from and I don't
know why it became "/python2p3/config".

I removed that from my /usr/lib/libglade-2.0.la and mis/yelp
built fine and devel/eel2 is building.

Does anyone know where that "-L/usr/lib/python2p3/config" came from?

   Jeremy C. Reed
   http://www.reedmedia.net/