[syslog-ng]-linux/bin/ld: cannot find -lglib-2.0

Balazs Scheidler syslog-ng@lists.balabit.hu
Wed, 30 Mar 2005 15:01:05 +0200


On Wed, 2005-03-30 at 14:08 +0200, Philipp Snizek wrote:
>  
> > > > static glib, syslog-ng tries to link to glib statically.
> > > 
> > > Thanks for your answer.
> > > What do I have to do ?
> > 
> > the static library is in the devel package usually, you need 
> > to look for something like libglib-2.0.a
> 
> Please excuse, but I still don't understand.
> 
> libglib-2.0.la is in /usr/local/lib
> 
> what do I have to do?
> 
> I still have 
> /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../../i486-slackware
> -linux/bin/ld: cannot find -lglib-2.0
> 
> What lib is it exactly looking for ?
> in /usr/local/lib I also have the glib-2.0 directory which includes a
> header file.


As I said it is not a header file but static lib, the .la file will not
help you much, you need an .a file.

Or if it is ok for you to link to glib dynamically (in which case you'll
have to have glib.so available before /usr is mounted), you can do that
as well by removing the the "-Wl,-static" from DEPS_LIBS in configure.in
and run autoconf, reconfigure syslog-ng and that's about it.

-- 
Bazsi