[syslog-ng] syslog-ng-2.0.4 compilation error

Valdis.Kletnieks at vt.edu Valdis.Kletnieks at vt.edu
Tue Jul 17 17:58:48 CEST 2007


On Tue, 17 Jul 2007 17:24:14 +0530, Ganesh Kundapur said:

> gcc  -g -O2 -Wall -g   -o syslog-ng  main.o libsyslog-ng.a -lnsl -lrt
> -Wl,-Bstatic -lfl -L/home/kundapur/GLIB-2.12.9/lib -lglib-2.0
> -L/usr/local/lib -levtlog    -lwrap -Wl,-Bdynamic

> $ cc glib.c `pkg-config --cflags --libs glib-2.0`

This is a good way to shoot yourself in the foot - you're hand-specifying
-L and -l flags in the first, but using pkgconfig to get the values in the
second.  If they ever get out of sync (because you actually installed into
/opt/lib or whatever), you'll be banging your head against the wall for quite
some time....
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 226 bytes
Desc: not available
Url : http://lists.balabit.hu/pipermail/syslog-ng/attachments/20070717/77a73fb4/attachment.pgp


More information about the syslog-ng mailing list