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

Geller, Sandor (IT) Sandor.Geller at morganstanley.com
Tue Jul 17 14:03:08 CEST 2007


> 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

Here you're trying to build against a static glib-2.0

> $ cat glib.c
> # include <glib.h>
> 
> int
> main ( void )
> {
>         printf ( "glib version = %d.%d.%d\n",
>                 glib_major_version,
>                 glib_minor_version,
>                 glib_micro_version );
> 
>         return 0;
> }
> $ cc glib.c `pkg-config --cflags --libs glib-2.0`
> $ a.out
> glib version = 2.12.9

While this might be a dynamically linked executable.
So I suppose you're missing the static glib library.

Regards,

Sandor
--------------------------------------------------------

NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.


More information about the syslog-ng mailing list