[syslog-ng] syslog-ng-2.0.4 compilation error
Ganesh Kundapur
ganesh.kundapur at gmail.com
Tue Jul 17 13:54:14 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
libsyslog-ng.a(misc.o)(.text+0x3a9): In function `resolve_hostname':
/home/kundapur/suma/syslog-ng-2.0.4/src/misc.c:191: undefined reference to
`g_assert_warning'
libsyslog-ng.a(logmsg.o)(.text+0x6a): In function `log_stamp_format':
/home/kundapur/suma/syslog-ng-2.0.4/src/logmsg.c:110: undefined reference to
`g_assert_warning'
libsyslog-ng.a(logmsg.o)(.text+0x2b6): In function `log_msg_ref':
/home/kundapur/suma/syslog-ng-2.0.4/src/logmsg.c:498: undefined reference to
`g_assert_warning'
libsyslog-ng.a(logmsg.o)(.text+0x342): In function `log_msg_unref':
/home/kundapur/suma/syslog-ng-2.0.4/src/logmsg.c:512: undefined reference to
`g_assert_warning'
libsyslog-ng.a(logmsg.o)(.text+0xe36): In function `log_msg_ack_block_end':
/home/kundapur/suma/syslog-ng-2.0.4/src/logmsg.c:648: undefined reference to
`g_return_if_fail_warning'
libsyslog-ng.a(logpipe.o)(.text+0x4f): In function `log_pipe_ref':
/home/kundapur/suma/syslog-ng-2.0.4/src/logpipe.c:38: undefined reference to
`g_assert_warning'
libsyslog-ng.a(logpipe.o)(.text+0x9b): In function `log_pipe_unref':
/home/kundapur/suma/syslog-ng-2.0.4/src/logpipe.c:47: undefined reference to
`g_assert_warning'
libsyslog-ng.a(center.o)(.text+0x7d): In function `log_endpoint_free':
/home/kundapur/suma/syslog-ng-2.0.4/src/center.c:90: undefined reference to
`g_assert_warning'
libsyslog-ng.a(center.o)(.text+0x175): In function `log_connection_new':
/home/kundapur/suma/syslog-ng-2.0.4/src/center.c:132: undefined reference to
`g_assert_warning'
libsyslog-ng.a(templates.o)(.text+0x2de): In function `log_template_ref':
/home/kundapur/suma/syslog-ng-2.0.4/src/templates.c:180: undefined reference
to `g_assert_warning'
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
collect2: ld returned 1 exit status
make[2]: *** [syslog-ng] Error 1
make[2]: Leaving directory `/home/kundapur/suma/syslog-ng-2.0.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/kundapur/suma/syslog-ng-2.0.4'
make: *** [all] Error 2
I installed glib-2.12.9.
--
$ 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
--
Still I'm getting these messages. Any idea about this?
Thanks,
Ganesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20070717/ae40d62c/attachment.html
More information about the syslog-ng
mailing list