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

Serge Torop tsp at peterlink.ru
Wed Jun 27 12:05:23 CEST 2007


On Tue, 26 Jun 2007, Balazs Scheidler wrote:

>>>> then I compiling the syslog-ng-2.0.2 on RedHat Enterpise Linux 4 (kernel
>>>> 2.6.9-42.ELsmp) I see the message:
>>>
>>>> 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'
>>>>
>>>> the same error with syslog-ng-2.0.4+20070626. Is this possible
>>>> to fix or solve this problem?
>>>
>>> Your glib version is too old. What is the version of your glib-devel
>>> package?
>>
>> glib-1.2.10-15
>>
>> glib2-2.4.7-1
>> glib2-devel-2.4.7-1
>
> glib 2.4.7 should be fine. g_assert_warning() is a macro, so no external
> references should be made to that.
>
> Can you post the compilation output for misc.c as well?

yes, of course:

1.
bash# export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig (because of glib2)
(output of configure script see below)

2.
bash# make
make  all-recursive
make[1]: Entering directory `/home/tsp/syslog-ng-2.0.2'
Making all in src
make[2]: Entering directory `/home/tsp/syslog-ng-2.0.2/src'
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 misc.o -MD -MP -MF ".deps/misc.Tpo" \
   -c -o misc.o `test -f 'misc.c' || echo './'`misc.c; \
then mv -f ".deps/misc.Tpo" ".deps/misc.Po"; \
else rm -f ".deps/misc.Tpo"; exit 1; \
fi
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 utils.o -MD -MP -MF ".deps/utils.Tpo" \
   -c -o utils.o `test -f 'utils.c' || echo './'`utils.c; \
then mv -f ".deps/utils.Tpo" ".deps/utils.Po"; \
else rm -f ".deps/utils.Tpo"; exit 1; \
fi
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 messages.o -MD -MP -MF 
".deps/messages.Tpo" \
   -c -o messages.o `test -f 'messages.c' || echo './'`messages.c; \
then mv -f ".deps/messages.Tpo" ".deps/messages.Po"; \
else rm -f ".deps/messages.Tpo"; exit 1; \
fi
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 syslog-names.o -MD -MP -MF 
".deps/syslog-names.Tpo" \
   -c -o syslog-names.o `test -f 'syslog-names.c' || echo 
'./'`syslog-names.c; \
then mv -f ".deps/syslog-names.Tpo" ".deps/syslog-names.Po"; \
else rm -f ".deps/syslog-names.Tpo"; exit 1; \
fi
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 cfg.o -MD -MP -MF ".deps/cfg.Tpo" \
   -c -o cfg.o `test -f 'cfg.c' || echo './'`cfg.c; \
then mv -f ".deps/cfg.Tpo" ".deps/cfg.Po"; \
else rm -f ".deps/cfg.Tpo"; exit 1; \
fi
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 cfg-lex.o -MD -MP -MF 
".deps/cfg-lex.Tpo" \
   -c -o cfg-lex.o `test -f 'cfg-lex.c' || echo './'`cfg-lex.c; \
then mv -f ".deps/cfg-lex.Tpo" ".deps/cfg-lex.Po"; \
else rm -f ".deps/cfg-lex.Tpo"; exit 1; \
fi
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 cfg-grammar.o -MD -MP -MF 
".deps/cfg-grammar.Tpo" \
   -c -o cfg-grammar.o `test -f 'cfg-grammar.c' || echo './'`cfg-grammar.c; 
\
then mv -f ".deps/cfg-grammar.Tpo" ".deps/cfg-grammar.Po"; \
else rm -f ".deps/cfg-grammar.Tpo"; exit 1; \
fi
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 macros.o -MD -MP -MF ".deps/macros.Tpo" 
\
   -c -o macros.o `test -f 'macros.c' || echo './'`macros.c; \
then mv -f ".deps/macros.Tpo" ".deps/macros.Po"; \
else rm -f ".deps/macros.Tpo"; exit 1; \
fi
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 filter.o -MD -MP -MF ".deps/filter.Tpo" 
\
   -c -o filter.o `test -f 'filter.c' || echo './'`filter.c; \
then mv -f ".deps/filter.Tpo" ".deps/filter.Po"; \
else rm -f ".deps/filter.Tpo"; exit 1; \
fi
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 logmsg.o -MD -MP -MF ".deps/logmsg.Tpo" 
\
   -c -o logmsg.o `test -f 'logmsg.c' || echo './'`logmsg.c; \
then mv -f ".deps/logmsg.Tpo" ".deps/logmsg.Po"; \
else rm -f ".deps/logmsg.Tpo"; exit 1; \
fi
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 logpipe.o -MD -MP -MF 
".deps/logpipe.Tpo" \
   -c -o logpipe.o `test -f 'logpipe.c' || echo './'`logpipe.c; \
then mv -f ".deps/logpipe.Tpo" ".deps/logpipe.Po"; \
else rm -f ".deps/logpipe.Tpo"; exit 1; \
fi
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 logsource.o -MD -MP -MF 
".deps/logsource.Tpo" \
   -c -o logsource.o `test -f 'logsource.c' || echo './'`logsource.c; \
then mv -f ".deps/logsource.Tpo" ".deps/logsource.Po"; \
else rm -f ".deps/logsource.Tpo"; exit 1; \
fi
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 driver.o -MD -MP -MF ".deps/driver.Tpo" 
\
   -c -o driver.o `test -f 'driver.c' || echo './'`driver.c; \
then mv -f ".deps/driver.Tpo" ".deps/driver.Po"; \
else rm -f ".deps/driver.Tpo"; exit 1; \
fi
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 sgroup.o -MD -MP -MF ".deps/sgroup.Tpo" 
\
   -c -o sgroup.o `test -f 'sgroup.c' || echo './'`sgroup.c; \
then mv -f ".deps/sgroup.Tpo" ".deps/sgroup.Po"; \
else rm -f ".deps/sgroup.Tpo"; exit 1; \
fi
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 dgroup.o -MD -MP -MF ".deps/dgroup.Tpo" 
\
   -c -o dgroup.o `test -f 'dgroup.c' || echo './'`dgroup.c; \
then mv -f ".deps/dgroup.Tpo" ".deps/dgroup.Po"; \
else rm -f ".deps/dgroup.Tpo"; exit 1; \
fi
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 center.o -MD -MP -MF ".deps/center.Tpo" 
\
   -c -o center.o `test -f 'center.c' || echo './'`center.c; \
then mv -f ".deps/center.Tpo" ".deps/center.Po"; \
else rm -f ".deps/center.Tpo"; exit 1; \
fi
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 templates.o -MD -MP -MF 
".deps/templates.Tpo" \
   -c -o templates.o `test -f 'templates.c' || echo './'`templates.c; \
then mv -f ".deps/templates.Tpo" ".deps/templates.Po"; \
else rm -f ".deps/templates.Tpo"; exit 1; \
fi
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 logreader.o -MD -MP -MF 
".deps/logreader.Tpo" \
   -c -o logreader.o `test -f 'logreader.c' || echo './'`logreader.c; \
then mv -f ".deps/logreader.Tpo" ".deps/logreader.Po"; \
else rm -f ".deps/logreader.Tpo"; exit 1; \
fi
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 logwriter.o -MD -MP -MF 
".deps/logwriter.Tpo" \
   -c -o logwriter.o `test -f 'logwriter.c' || echo './'`logwriter.c; \
then mv -f ".deps/logwriter.Tpo" ".deps/logwriter.Po"; \
else rm -f ".deps/logwriter.Tpo"; exit 1; \
fi
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 affile.o -MD -MP -MF ".deps/affile.Tpo" 
\
   -c -o affile.o `test -f 'affile.c' || echo './'`affile.c; \
then mv -f ".deps/affile.Tpo" ".deps/affile.Po"; \
else rm -f ".deps/affile.Tpo"; exit 1; \
fi
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 afstreams.o -MD -MP -MF 
".deps/afstreams.Tpo" \
   -c -o afstreams.o `test -f 'afstreams.c' || echo './'`afstreams.c; \
then mv -f ".deps/afstreams.Tpo" ".deps/afstreams.Po"; \
else rm -f ".deps/afstreams.Tpo"; exit 1; \
fi
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 afuser.o -MD -MP -MF ".deps/afuser.Tpo" 
\
   -c -o afuser.o `test -f 'afuser.c' || echo './'`afuser.c; \
then mv -f ".deps/afuser.Tpo" ".deps/afuser.Po"; \
else rm -f ".deps/afuser.Tpo"; exit 1; \
fi
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 afprog.o -MD -MP -MF ".deps/afprog.Tpo" 
\
   -c -o afprog.o `test -f 'afprog.c' || echo './'`afprog.c; \
then mv -f ".deps/afprog.Tpo" ".deps/afprog.Po"; \
else rm -f ".deps/afprog.Tpo"; exit 1; \
fi
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 afsocket.o -MD -MP -MF 
".deps/afsocket.Tpo" \
   -c -o afsocket.o `test -f 'afsocket.c' || echo './'`afsocket.c; \
then mv -f ".deps/afsocket.Tpo" ".deps/afsocket.Po"; \
else rm -f ".deps/afsocket.Tpo"; exit 1; \
fi
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 afunix.o -MD -MP -MF ".deps/afunix.Tpo" 
\
   -c -o afunix.o `test -f 'afunix.c' || echo './'`afunix.c; \
then mv -f ".deps/afunix.Tpo" ".deps/afunix.Po"; \
else rm -f ".deps/afunix.Tpo"; exit 1; \
fi
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 afinet.o -MD -MP -MF ".deps/afinet.Tpo" 
\
   -c -o afinet.o `test -f 'afinet.c' || echo './'`afinet.c; \
then mv -f ".deps/afinet.Tpo" ".deps/afinet.Po"; \
else rm -f ".deps/afinet.Tpo"; exit 1; \
fi
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 afinter.o -MD -MP -MF 
".deps/afinter.Tpo" \
   -c -o afinter.o `test -f 'afinter.c' || echo './'`afinter.c; \
then mv -f ".deps/afinter.Tpo" ".deps/afinter.Po"; \
else rm -f ".deps/afinter.Tpo"; exit 1; \
fi
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 children.o -MD -MP -MF 
".deps/children.Tpo" \
   -c -o children.o `test -f 'children.c' || echo './'`children.c; \
then mv -f ".deps/children.Tpo" ".deps/children.Po"; \
else rm -f ".deps/children.Tpo"; exit 1; \
fi
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 stats.o -MD -MP -MF ".deps/stats.Tpo" \
   -c -o stats.o `test -f 'stats.c' || echo './'`stats.c; \
then mv -f ".deps/stats.Tpo" ".deps/stats.Po"; \
else rm -f ".deps/stats.Tpo"; exit 1; \
fi
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 gsockaddr.o -MD -MP -MF 
".deps/gsockaddr.Tpo" \
   -c -o gsockaddr.o `test -f 'gsockaddr.c' || echo './'`gsockaddr.c; \
then mv -f ".deps/gsockaddr.Tpo" ".deps/gsockaddr.Po"; \
else rm -f ".deps/gsockaddr.Tpo"; exit 1; \
fi
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 fdwrite.o -MD -MP -MF 
".deps/fdwrite.Tpo" \
   -c -o fdwrite.o `test -f 'fdwrite.c' || echo './'`fdwrite.c; \
then mv -f ".deps/fdwrite.Tpo" ".deps/fdwrite.Po"; \
else rm -f ".deps/fdwrite.Tpo"; exit 1; \
fi
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 fdread.o -MD -MP -MF ".deps/fdread.Tpo" 
\
   -c -o fdread.o `test -f 'fdread.c' || echo './'`fdread.c; \
then mv -f ".deps/fdread.Tpo" ".deps/fdread.Po"; \
else rm -f ".deps/fdread.Tpo"; exit 1; \
fi
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 memtrace.o -MD -MP -MF 
".deps/memtrace.Tpo" \
   -c -o memtrace.o `test -f 'memtrace.c' || echo './'`memtrace.c; \
then mv -f ".deps/memtrace.Tpo" ".deps/memtrace.Po"; \
else rm -f ".deps/memtrace.Tpo"; exit 1; \
fi
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 dnscache.o -MD -MP -MF 
".deps/dnscache.Tpo" \
   -c -o dnscache.o `test -f 'dnscache.c' || echo './'`dnscache.c; \
then mv -f ".deps/dnscache.Tpo" ".deps/dnscache.Po"; \
else rm -f ".deps/dnscache.Tpo"; exit 1; \
fi
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 afsocket.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



bash# ./configure

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for gcc option to accept ANSI C... none needed
checking for bison... bison -y
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking whether make sets $(MAKE)... (cached) yes
checking for ranlib... ranlib
checking how to enable static linking for certain libraries... GNU or Solaris
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dmalloc.h usability... yes
checking dmalloc.h presence... yes
checking for dmalloc.h... yes
checking for strings.h... (cached) yes
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking stropts.h usability... yes
checking stropts.h presence... yes
checking for stropts.h... yes
checking sys/strlog.h usability... no
checking sys/strlog.h presence... no
checking for sys/strlog.h... no
checking door.h usability... no
checking door.h presence... no
checking for door.h... no
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_gmtoff... yes
checking for I_CONSLOG... no
checking for O_LARGEFILE... yes
checking for door_create in -ldoor... no
checking for socket in -lsocket... no
checking for nanosleep in -lrt... yes
checking for gethostbyname in -lnsl... yes
checking for regexec in -lregex... no
checking for strdup... yes
checking for strtol... yes
checking for inet_aton... yes
checking for inet_ntoa... yes
checking for getopt_long... yes
checking for getaddrinfo... yes
checking whether to enable Sun STREAMS support... no
checking whether to enable Sun door support... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GLIB... yes
checking for EVTLOG... yes
checking for static GLib libraries... yes
configure: creating ./config.status
config.status: creating dist.conf
config.status: creating Makefile
config.status: creating syslog-ng.spec.bb
config.status: creating src/Makefile
config.status: creating doc/Makefile
config.status: creating doc/docvars.xml
config.status: creating contrib/Makefile
config.status: creating tests/Makefile
config.status: creating solbuild/Makefile
config.status: creating tests/unit/Makefile
config.status: creating tests/functional/Makefile
config.status: creating config.h
config.status: executing depfiles commands

-- 
Serge P. Torop
St.Petersburg, Russia


More information about the syslog-ng mailing list