[syslog-ng] error compiling syslog-ng-2.0.2 and syslog-ng-2.0.4+20070626

Serge Torop tsp at peterlink.ru
Tue Jun 26 12:18:01 CEST 2007


Hello,

then I compiling the syslog-ng-2.0.2 on RedHat Enterpise Linux 4 (kernel
2.6.9-42.ELsmp) I see the message:

.. [skip]..

rm -f libsyslog-ng.a
ar cru libsyslog-ng.a misc.o utils.o messages.o syslog-names.o cfg.o cfg-lex.o cfg-grammar.o macros.o filter.o logmsg.o logpipe.o logsource.o driver.o sgroup.o dgroup.o center.o templates.o logreader.o logwriter.o affile.o afstreams.o afuser.o afprog.o af
socket.o afunix.o afinet.o afinter.o children.o stats.o gsockaddr.o fdwrite.o fdread.o memtrace.o dnscache.o
ranlib libsyslog-ng.a
if gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include   -I/usr/local/include/eventlog   -D_GNU_SOURCE  -g -O2 -Wall -g -MT main.o -MD -MP -MF ".deps/main.Tpo" \
  -c -o main.o `test -f 'main.c' || echo './'`main.c; \
then mv -f ".deps/main.Tpo" ".deps/main.Po"; \
else rm -f ".deps/main.Tpo"; exit 1; \
fi
gcc  -g -O2 -Wall -g   -o syslog-ng  main.o libsyslog-ng.a -lnsl -lrt  -Wl,-Bstatic -lfl -L/usr/local/lib -lglib-2.0   -L/usr/local/lib -levtlog   -Wl,-Bdynamic
libsyslog-ng.a(misc.o)(.text+0x3a9): In function `resolve_hostname':
/home/tsp/syslog-ng-2.0.2/src/misc.c:185: undefined reference to `g_assert_warning'
libsyslog-ng.a(logmsg.o)(.text+0x6a): In function `log_stamp_format':
/home/tsp/syslog-ng-2.0.2/src/logmsg.c:110: undefined reference to `g_assert_warning'
libsyslog-ng.a(logmsg.o)(.text+0x2b2): In function `log_msg_ref':
/home/tsp/syslog-ng-2.0.2/src/logmsg.c:497: undefined reference to `g_assert_warning'
libsyslog-ng.a(logmsg.o)(.text+0x34e): In function `log_msg_unref':
/home/tsp/syslog-ng-2.0.2/src/logmsg.c:511: undefined reference to `g_assert_warning'
libsyslog-ng.a(logmsg.o)(.text+0xe02): In function `log_msg_ack_block_end':
/home/tsp/syslog-ng-2.0.2/src/logmsg.c:631: undefined reference to `g_return_if_fail_warning'
libsyslog-ng.a(logpipe.o)(.text+0x4f): In function `log_pipe_ref':
/home/tsp/syslog-ng-2.0.2/src/logpipe.c:38: undefined reference to `g_assert_warning'
libsyslog-ng.a(logpipe.o)(.text+0x9b): In function `log_pipe_unref':
/home/tsp/syslog-ng-2.0.2/src/logpipe.c:47: undefined reference to `g_assert_warning'
libsyslog-ng.a(center.o)(.text+0x7d): In function `log_endpoint_free':
/home/tsp/syslog-ng-2.0.2/src/center.c:90: undefined reference to `g_assert_warning'
libsyslog-ng.a(center.o)(.text+0x175): In function `log_connection_new':
/home/tsp/syslog-ng-2.0.2/src/center.c:132: undefined reference to `g_assert_warning'
libsyslog-ng.a(templates.o)(.text+0x2a6): In function `log_template_ref':
/home/tsp/syslog-ng-2.0.2/src/templates.c:169: undefined reference to `g_assert_warning'
libsyslog-ng.a(templates.o)(.text+0x30e):/home/tsp/syslog-ng-2.0.2/src/templates.c:180: more undefined references to `g_assert_warning' follow
collect2: ld returned 1 exit status
make[2]: *** [syslog-ng] Error code 1
make[2]: Leaving directory `/home/tsp/syslog-ng-2.0.2/src'
make[1]: *** [all-recursive] Error code 1
make[1]: Leaving directory `/home/tsp/syslog-ng-2.0.2'
make: *** [all] Error code 2


the same error with syslog-ng-2.0.4+20070626. Is this possible
to fix or solve this problem?

Thanks for advance.


-- 

Serge P. Torop
St.Petersburg, Russia



More information about the syslog-ng mailing list