Hello Chanchal:<br> Thanks for your reply but I'm getting the same error message. I really don't want to move over to rsyslog. I'll work on this somemore later today. If I'm unsuccessful, I'll switch over to rsyslog. The big mistake I made was to use Centos. Debian is more flexable with packages than Redhat clones.<br>
<br><div class="gmail_quote">On Mon, Feb 2, 2009 at 1:09 AM, Chanchal Verma <span dir="ltr"><<a href="mailto:cverma2@csc.com">cverma2@csc.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><font face="sans-serif" size="2">Hi Ezra,</font>
<br>
<br><font face="sans-serif" size="2">Below message indicates:</font>
<br><div class="Ih2E3d">
<br><font size="3">messages.h:28:20: error: evtlog.h: No such file or directory</font>
<br>
<br></div><font face="sans-serif" size="2">It is not able to find evtlog.h header
file in specified location (</font><font size="3">EVTLOG_CFLAGS=/usr/local/eventlog/include</font><font face="sans-serif" size="2">).
Check for evtloh.h file location and also modify your configuration option
as:</font>
<br>
<br><font size="3">./configure EVTLOG_CFLAGS="-I/usr/local/eventlog/include/eventlog"
EVTLOG_LIBS="-L/usr/local/eventlog/lib"</font>
<br>
<br><font size="3">Alternate option:</font>
<br><font size="3">You can define variable PKG_CONFIG_PATH=/usr/local/eventlog/lib/pkgconfig
and do ./configure residing in syslog-ng-2.1.1 directory followed by 'make'
... should work fine :)</font>
<br>
<br><font face="sans-serif" size="2">--<br>
Chanchal Verma</font>
<br>
<br>
<br>
<table width="100%">
<tbody><tr valign="top">
<td width="40%"><font face="sans-serif" size="1"><b>Ezra Taylor <<a href="mailto:ezra.taylor@gmail.com" target="_blank">ezra.taylor@gmail.com</a>></b>
</font>
<br><font face="sans-serif" size="1">Sent by: <a href="mailto:syslog-ng-bounces@lists.balabit.hu" target="_blank">syslog-ng-bounces@lists.balabit.hu</a></font>
<p><font face="sans-serif" size="1">02/01/2009 06:36 AM</font>
</p><table border="1">
<tbody><tr valign="top">
<td bgcolor="white">
<div align="center"><font face="sans-serif" size="1">Please respond to<br>
"Syslog-ng users' and developers' mailing list"
<<a href="mailto:syslog-ng@lists.balabit.hu" target="_blank">syslog-ng@lists.balabit.hu</a>></font></div></td></tr></tbody></table>
<br>
</td><td width="59%">
<table width="100%">
<tbody><tr valign="top">
<td>
<div align="right"><font face="sans-serif" size="1">To</font></div>
</td><td><font face="sans-serif" size="1"><a href="mailto:syslog-ng@lists.balabit.hu" target="_blank">syslog-ng@lists.balabit.hu</a></font>
</td></tr><tr valign="top">
<td>
<div align="right"><font face="sans-serif" size="1">cc</font></div>
</td><td>
</td></tr><tr valign="top">
<td>
<div align="right"><font face="sans-serif" size="1">Subject</font></div>
</td><td><font face="sans-serif" size="1">[syslog-ng] Errors compiling syslog-ng
from source on Centos 5.2</font></td></tr></tbody></table>
<br>
<table>
<tbody><tr valign="top">
<td>
</td><td></td></tr></tbody></table>
<br></td></tr></tbody></table>
<br>
<br>
<br><font size="3"><div><div></div><div class="Wj3C7c">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>
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 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>
messages.h:28:20: error: evtlog.h: No such file or directory<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>
<br>
-- <br></div></div>
Ezra Taylor</font><font size="2"><tt>______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.campin.net/syslog-ng/faq.html" target="_blank">http://www.campin.net/syslog-ng/faq.html</a><br>
<br>
</tt></font>
<br><br>______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.campin.net/syslog-ng/faq.html" target="_blank">http://www.campin.net/syslog-ng/faq.html</a><br>
<br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Ezra Taylor<br>