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

Ezra Taylor ezra.taylor at gmail.com
Mon Feb 2 09:26:35 CET 2009


Hello Chanchal:
                            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.

On Mon, Feb 2, 2009 at 1:09 AM, Chanchal Verma <cverma2 at csc.com> wrote:

>
> Hi Ezra,
>
> Below message indicates:
>
> messages.h:28:20: error: evtlog.h: No such file or directory
>
> It is not able to find evtlog.h header file in specified location (
> EVTLOG_CFLAGS=/usr/local/eventlog/include). Check for evtloh.h file
> location and also modify your configuration option as:
>
> ./configure EVTLOG_CFLAGS="-I/usr/local/eventlog/include/eventlog"
> EVTLOG_LIBS="-L/usr/local/eventlog/lib"
>
> Alternate option:
> 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 :)
>
> --
> Chanchal Verma
>
>
>  *Ezra Taylor <ezra.taylor at gmail.com>*
> Sent by: syslog-ng-bounces at lists.balabit.hu
>
> 02/01/2009 06:36 AM
>  Please respond to
> "Syslog-ng users' and developers' mailing list"        <
> syslog-ng at lists.balabit.hu>
>
>   To
> syslog-ng at lists.balabit.hu  cc
>   Subject
> [syslog-ng] Errors compiling syslog-ng from source on Centos 5.2
>
>
>
>
> 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
> ______________________________________________________________________________
> Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Documentation:
> http://www.balabit.com/support/documentation/?product=syslog-ng
> FAQ: http://www.campin.net/syslog-ng/faq.html
>
>
>
>
> ______________________________________________________________________________
> Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Documentation:
> http://www.balabit.com/support/documentation/?product=syslog-ng
> FAQ: http://www.campin.net/syslog-ng/faq.html
>
>
>


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


More information about the syslog-ng mailing list