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<br>
libsyslog-ng.a(misc.o)(.text+0x3a9): In function `resolve_hostname':<br>
/home/kundapur/suma/syslog-ng-2.0.4/src/misc.c:191: undefined reference to `g_assert_warning'<br>
libsyslog-ng.a(logmsg.o)(.text+0x6a): In function `log_stamp_format':<br>
/home/kundapur/suma/syslog-ng-2.0.4/src/logmsg.c:110: undefined reference to `g_assert_warning'<br>
libsyslog-ng.a(logmsg.o)(.text+0x2b6): In function `log_msg_ref':<br>
/home/kundapur/suma/syslog-ng-2.0.4/src/logmsg.c:498: undefined reference to `g_assert_warning'<br>
libsyslog-ng.a(logmsg.o)(.text+0x342): In function `log_msg_unref':<br>
/home/kundapur/suma/syslog-ng-2.0.4/src/logmsg.c:512: undefined reference to `g_assert_warning'<br>
libsyslog-ng.a(logmsg.o)(.text+0xe36): In function `log_msg_ack_block_end':<br>
/home/kundapur/suma/syslog-ng-2.0.4/src/logmsg.c:648: undefined reference to `g_return_if_fail_warning'<br>
libsyslog-ng.a(logpipe.o)(.text+0x4f): In function `log_pipe_ref':<br>
/home/kundapur/suma/syslog-ng-2.0.4/src/logpipe.c:38: undefined reference to `g_assert_warning'<br>
libsyslog-ng.a(logpipe.o)(.text+0x9b): In function `log_pipe_unref':<br>
/home/kundapur/suma/syslog-ng-2.0.4/src/logpipe.c:47: undefined reference to `g_assert_warning'<br>
libsyslog-ng.a(center.o)(.text+0x7d): In function `log_endpoint_free':<br>
/home/kundapur/suma/syslog-ng-2.0.4/src/center.c:90: undefined reference to `g_assert_warning'<br>
libsyslog-ng.a(center.o)(.text+0x175): In function `log_connection_new':<br>
/home/kundapur/suma/syslog-ng-2.0.4/src/center.c:132: undefined reference to `g_assert_warning'<br>
libsyslog-ng.a(templates.o)(.text+0x2de): In function `log_template_ref':<br>
/home/kundapur/suma/syslog-ng-2.0.4/src/templates.c:180: undefined reference to `g_assert_warning'<br>
libsyslog-ng.a(templates.o)(.text+0x346):/home/kundapur/suma/syslog-ng-2.0.4/src/templates.c:191:
more undefined references to `g_assert_warning' follow<br>
collect2: ld returned 1 exit status<br>
make[2]: *** [syslog-ng] Error 1<br>
make[2]: Leaving directory `/home/kundapur/suma/syslog-ng-2.0.4/src'<br>
make[1]: *** [all-recursive] Error 1<br>
make[1]: Leaving directory `/home/kundapur/suma/syslog-ng-2.0.4'<br>
make: *** [all] Error 2<br>
<br>
I installed glib-2.12.9.<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>
<br>
Still I'm getting these messages. Any idea about this?<br>
<br>
Thanks,<br>
Ganesh<br>
<br>
<br>