[syslog-ng]-linux/bin/ld: cannot find -lglib-2.0
Balazs Scheidler
syslog-ng@lists.balabit.hu
Tue, 29 Mar 2005 16:23:56 +0200
On Tue, 2005-03-29 at 14:17 +0200, Philipp Snizek wrote:
> Hi
>
> I have a problem with installing syslog-ng 1.9.3
>
> gcc -g -O2 -Wall -g -o syslog-ng main.o misc.o utils.o messages.o
> gsockaddr.o syslog-names.o macros.o logmsg.o cfg.o logpipe.o driver.o
> sgroup.o dgroup.o center.o filter.o logsource.o logreader.o
> logwriter.o affile.o afunix.o afinet.o afsocket.o afstreams.o afuser.o
> afprog.o afinter.o cfg-lex.o cfg-grammar.o fdwrite.o fdread.o
> memtrace.o templates.o children.o -lnsl -Wl,-static -lfl
> -L/usr/local/lib -lglib-2.0 -levtlog -Wl,-call_shared
> /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../../i486-slackware
> -linux/bin/ld: cannot find -lglib-2.0
> collect2: ld returned 1 exit status
> make[2]: *** [syslog-ng] Error 1
> make[2]: Leaving directory `/root/syslog-ng-1.9.3/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/root/syslog-ng-1.9.3'
> make: *** [all] Error 2
>
> However, glib-2.0 is installed and the path in ld.config.so points to
> /usr/local/lib
static glib, syslog-ng tries to link to glib statically.
ps: use the latest snapshot of 1.9.x as plain 1.9.3 contains a problem
in macro expansion.
--
Bazsi