Hi,
Thanks for the response.
I configured with the option "--enable-dynamic-linking" and it worked.
Could anybody please tell me how to get the year field in the log messages by using syslog-ng.
Thanks,
Ganesh
> 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.
_______________________________________________
syslog-ng maillist - syslog-ng@lists.balabit.hu
https://lists.balabit.hu/mailman/listinfo/syslog-ng
Frequently asked questions at http://www.campin.net/syslog-ng/faq.html