Hi,<br> Thanks for the response. <br> I configured with the option "--enable-dynamic-linking" and it worked.<br><br> Could anybody please tell me how to get the year field in the log messages by using syslog-ng.
<br><br>Thanks,<br>Ganesh<br><br><div><span class="gmail_quote">On 7/17/07, <b class="gmail_sendername">Geller, Sandor (IT)</b> <<a href="mailto:Sandor.Geller@morganstanley.com">Sandor.Geller@morganstanley.com</a>> wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">> gcc -g -O2 -Wall -g -o syslog-ng main.o libsyslog-ng.a<br>> -lnsl -lrt -Wl,-Bstatic -lfl
<br>> -L/home/kundapur/GLIB-2.12.9/lib -lglib-2.0<br>> -L/usr/local/lib -levtlog -lwrap -Wl,-Bdynamic<br><br>Here you're trying to build against a static glib-2.0<br><br>> $ cat glib.c<br>> # include <
glib.h><br>><br>> int<br>> main ( void )<br>> {<br>> printf ( "glib version = %d.%d.%d\n",<br>> glib_major_version,<br>> glib_minor_version,<br>> glib_micro_version );
<br>><br>> return 0;<br>> }<br>> $ cc glib.c `pkg-config --cflags --libs glib-2.0`<br>> $ a.out<br>> glib version = 2.12.9<br><br>While this might be a dynamically linked executable.<br>So I suppose you're missing the static glib library.
<br><br>Regards,<br><br>Sandor<br>--------------------------------------------------------<br><br>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.
<br>_______________________________________________<br>syslog-ng maillist - <a href="mailto:syslog-ng@lists.balabit.hu">syslog-ng@lists.balabit.hu</a><br><a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng">https://lists.balabit.hu/mailman/listinfo/syslog-ng
</a><br>Frequently asked questions at <a href="http://www.campin.net/syslog-ng/faq.html">http://www.campin.net/syslog-ng/faq.html</a><br><br></blockquote></div><br>