[syslog-ng] Errors compiling syslog-ng from source on Centos 5.2

Ezra Taylor ezra.taylor at gmail.com
Sun Feb 1 02:06:33 CET 2009


All:
       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.

./configure EVTLOG_CFLAGS=/usr/local/eventlog/include
EVTLOG_LIBS=/usr/local/eventlog/lib.


syslog-ng Open Source Edition 2.1.1 configured
 Compiler options:
  compiler                    : gcc
  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
  linker flags                :  -lnsl -lrt  -lfl -L/lib64 -lglib-2.0
/usr/local/eventlog/lib  -lwrap
  prefix                      : /usr/local
 Features:
  Sun STREAMS support         : no
  Sun Door support            : no
  Debug symbols               : no
  Memtrace                    : no
  IPV6 support                : yes
  spoof-source support        : no
  tcp-wrapper support         : yes
  SQL support                 : no



[etaylor at mytest syslog-ng-2.1.1]$ make
make  all-recursive
make[1]: Entering directory `/home/etaylor/syslog-ng-2.1.1'
Making all in src
make[2]: Entering directory `/home/etaylor/syslog-ng-2.1.1/src'
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" \
          -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
gcc: /usr/local/eventlog/include: linker input file unused because linking
not done
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" \
          -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
gcc: /usr/local/eventlog/include: linker input file unused because linking
not done
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" \
          -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
In file included from messages.c:24:
messages.h:28:20: error: evtlog.h: No such file or directory
In file included from messages.c:24:
messages.h:54: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '*' token
messages.h:55: error: expected ')' before '*' token
messages.c:41: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '*' token
messages.c: In function 'msg_send_internal_message':
messages.c:47: error: 'EVT_PRI_WARNING' undeclared (first use in this
function)
messages.c:47: error: (Each undeclared identifier is reported only once
messages.c:47: error: for each function it appears in.)
messages.c: At top level:
messages.c:63: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '*' token
messages.c:81: error: expected ')' before '*' token
messages.c: In function 'msg_log_func':
messages.c:99: error: 'EVT_PRI_INFO' undeclared (first use in this function)
messages.c:102: error: 'EVT_PRI_DEBUG' undeclared (first use in this
function)
messages.c:104: error: 'EVT_PRI_WARNING' undeclared (first use in this
function)
messages.c:106: error: 'EVT_PRI_ERR' undeclared (first use in this function)
messages.c:108: error: 'EVT_FAC_SYSLOG' undeclared (first use in this
function)
messages.c: In function 'msg_init':
messages.c:123: error: 'evt_context' undeclared (first use in this function)
messages.c:123: warning: implicit declaration of function 'evt_ctx_init'
messages.c:123: error: 'EVT_FAC_SYSLOG' undeclared (first use in this
function)
messages.c: In function 'msg_deinit':
messages.c:133: warning: implicit declaration of function 'evt_ctx_free'
messages.c:133: error: 'evt_context' undeclared (first use in this function)
make[2]: *** [messages.o] Error 1
make[2]: Leaving directory `/home/etaylor/syslog-ng-2.1.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/etaylor/syslog-ng-2.1.1'
make: *** [all] Error 2






-- 
Ezra Taylor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20090131/fa11c562/attachment.htm 


More information about the syslog-ng mailing list