Hi,<br>&nbsp;&nbsp; Thanks for the response. <br>&nbsp;&nbsp; I configured with the option &quot;--enable-dynamic-linking&quot; and it worked.<br><br>&nbsp; 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> &lt;<a href="mailto:Sandor.Geller@morganstanley.com">Sandor.Geller@morganstanley.com</a>&gt; wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">&gt; gcc&nbsp;&nbsp;-g -O2 -Wall -g&nbsp;&nbsp; -o syslog-ng&nbsp;&nbsp;main.o libsyslog-ng.a<br>&gt; -lnsl -lrt&nbsp;&nbsp;-Wl,-Bstatic -lfl
<br>&gt; -L/home/kundapur/GLIB-2.12.9/lib -lglib-2.0<br>&gt; -L/usr/local/lib -levtlog&nbsp;&nbsp;&nbsp;&nbsp;-lwrap -Wl,-Bdynamic<br><br>Here you&#39;re trying to build against a static glib-2.0<br><br>&gt; $ cat glib.c<br>&gt; # include &lt;
glib.h&gt;<br>&gt;<br>&gt; int<br>&gt; main ( void )<br>&gt; {<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf ( &quot;glib version = %d.%d.%d\n&quot;,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; glib_major_version,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; glib_minor_version,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; glib_micro_version );
<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return 0;<br>&gt; }<br>&gt; $ cc glib.c `pkg-config --cflags --libs glib-2.0`<br>&gt; $ a.out<br>&gt; glib version = 2.12.9<br><br>While this might be a dynamically linked executable.<br>So I suppose you&#39;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&nbsp;&nbsp;-&nbsp;&nbsp;<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>