[syslog-ng]Compilation problem with syslog-ng-1.9.3.

Peter syslog-ng@lists.balabit.hu
Tue, 08 Feb 2005 00:00:59 +0300


Hello.

I have a problem. I'm trying to compile syslog-ng-1.9.3. But after
succesful configuration I have a linking error:

i686-pc-linux-gnu-gcc  -O2 -march=pentium4 -fomit-frame-pointer -pipe
-mcpu=pentium4 -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 -lglib-2.0   -levtlog
-Wl,-call_shared
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/../../../../i686-pc-linux-gnu/bin/ld:
cannot find -lglib-2.0
collect2: ld returned 1 exit status
make[2]: *** [syslog-ng] Error 1
make[2]: Leaving directory
`/var/tmp/portage/syslog-ng-1.9.3/work/syslog-ng-1.9.3/src' make[1]: ***
[all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/syslog-ng-1.9.3/work/syslog-ng-1.9.3' make: *** [all]
Error 2


Can anybody enlight me how I can avoid this error? I am sure I have this
library:
camobap ~ # ls -l /usr/lib/libglib-2.0.* -rwxr-xr-x  1 root root    805
Янв 30 22:01 /usr/lib/libglib-2.0.la lrwxrwxrwx  1 root root     22
Янв 30 22:01 /usr/lib/libglib-2.0.so -> libglib-2.0.so.0.400.8
lrwxrwxrwx  1 root root     22 Янв 30 22:01 /usr/lib/libglib-2.0.so.0
-> libglib-2.0.so.0.400.8
-rwxr-xr-x  1 root root 503304 Янв 30
22:01/usr/lib/libglib-2.0.so.0.400.8

Also I would like to note that many other applications that also depend on
glib-2.0 compiled without problems.

I can not find sollution by myself. Where should I look for sollution?

Thank you in advance,
_______
Peter.