All:<br> I'm having problems installing syslog-ng-2.1.1 from source on Centos 5.2. I installed eventlog successfully. Eventlog is located at /usr/local/eventlog. My configure script is below. Note, make is failing. The output is below.<br>
<br>./configure EVTLOG_CFLAGS=/usr/local/eventlog/include EVTLOG_LIBS=/usr/local/eventlog/lib.<br> <br><br>syslog-ng Open Source Edition 2.1.1 configured<br> Compiler options:<br> compiler : gcc<br> compiler options : -g -O2 -Wall -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include /usr/local/eventlog/include -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64<br>
linker flags : -lnsl -lrt -lfl -L/lib64 -lglib-2.0 /usr/local/eventlog/lib -lwrap <br> prefix : /usr/local<br> Features:<br> Sun STREAMS support : no<br> Sun Door support : no<br>
Debug symbols : no<br> Memtrace : no<br> IPV6 support : yes<br> spoof-source support : no<br> tcp-wrapper support : yes<br> SQL support : no<br>
<br><br><br>[etaylor@mytest syslog-ng-2.1.1]$ make<br>make all-recursive<br>make[1]: Entering directory `/home/etaylor/syslog-ng-2.1.1'<br>Making all in src<br>make[2]: Entering directory `/home/etaylor/syslog-ng-2.1.1/src'<br>
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include /usr/local/eventlog/include -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -Wall -MT misc.o -MD -MP -MF ".deps/misc.Tpo" \<br>
-c -o misc.o `test -f 'misc.c' || echo './'`misc.c; \<br> then mv -f ".deps/misc.Tpo" ".deps/misc.Po"; \<br> else rm -f ".deps/misc.Tpo"; exit 1; \<br>
fi<br>gcc: /usr/local/eventlog/include: linker input file unused because linking not done<br>if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include /usr/local/eventlog/include -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -Wall -MT utils.o -MD -MP -MF ".deps/utils.Tpo" \<br>
-c -o utils.o `test -f 'utils.c' || echo './'`utils.c; \<br> then mv -f ".deps/utils.Tpo" ".deps/utils.Po"; \<br> else rm -f ".deps/utils.Tpo"; exit 1; \<br>
fi<br><span style="background-color: rgb(255, 0, 0);">gcc: /usr/local/eventlog/include: linker input file unused because linking not done</span><br>if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include /usr/local/eventlog/include -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -Wall -MT messages.o -MD -MP -MF ".deps/messages.Tpo" \<br>
-c -o messages.o `test -f 'messages.c' || echo './'`messages.c; \<br> then mv -f ".deps/messages.Tpo" ".deps/messages.Po"; \<br> else rm -f ".deps/messages.Tpo"; exit 1; \<br>
fi<br>In file included from messages.c:24:<br><span style="background-color: rgb(255, 0, 0);">messages.h:28:20: error: evtlog.h: No such file or directory</span><br>In file included from messages.c:24:<br>messages.h:54: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token<br>
messages.h:55: error: expected ')' before '*' token<br>messages.c:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token<br>messages.c: In function 'msg_send_internal_message':<br>messages.c:47: error: 'EVT_PRI_WARNING' undeclared (first use in this function)<br>
messages.c:47: error: (Each undeclared identifier is reported only once<br>messages.c:47: error: for each function it appears in.)<br>messages.c: At top level:<br>messages.c:63: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token<br>
messages.c:81: error: expected ')' before '*' token<br>messages.c: In function 'msg_log_func':<br>messages.c:99: error: 'EVT_PRI_INFO' undeclared (first use in this function)<br>messages.c:102: error: 'EVT_PRI_DEBUG' undeclared (first use in this function)<br>
messages.c:104: error: 'EVT_PRI_WARNING' undeclared (first use in this function)<br>messages.c:106: error: 'EVT_PRI_ERR' undeclared (first use in this function)<br>messages.c:108: error: 'EVT_FAC_SYSLOG' undeclared (first use in this function)<br>
messages.c: In function 'msg_init':<br>messages.c:123: error: 'evt_context' undeclared (first use in this function)<br>messages.c:123: warning: implicit declaration of function 'evt_ctx_init'<br>messages.c:123: error: 'EVT_FAC_SYSLOG' undeclared (first use in this function)<br>
messages.c: In function 'msg_deinit':<br>messages.c:133: warning: implicit declaration of function 'evt_ctx_free'<br>messages.c:133: error: 'evt_context' undeclared (first use in this function)<br>make[2]: *** [messages.o] Error 1<br>
make[2]: Leaving directory `/home/etaylor/syslog-ng-2.1.1/src'<br>make[1]: *** [all-recursive] Error 1<br>make[1]: Leaving directory `/home/etaylor/syslog-ng-2.1.1'<br>make: *** [all] Error 2<br><br><br><br><br> <br clear="all">
<br>-- <br>Ezra Taylor<br>