[syslog-ng] Syslog-ng 2.0.3 make error
Centyx Centalix
centyx at centyx.net
Thu May 10 23:14:46 CEST 2007
I would download the libnet rpm from either the CentOS extras repo or from Dag'ssite ( http://dag.wieers.com/rpm/packages/libnet/libnet-1.1.2.1-2.2.el4.rf.i386.rpm ) and install it. Besides that, all you should need ( besides eventlog ) is glib2-devel.
On 10May2007 05:05PM (-0400), Diana Orrick wrote:
>
> Would really like to be able to use this tool...
> Red Hat 2.6.9-55.ELsmp i686 i386 GNU/Linux
>
>
> On Mon, 2007-04-30 at 10:02 -0400, Justin Randall wrote:
> > Hello,
> >
> > I am also experiencing this compile error when building Syslog-NG-2.0.3
> > on a CentOS (Linux) 4.4 host.
>
> Install libnet or disable spoof-source support.
>
> --
> Bazsi
>
> I installed libnet, both an older version (to get libnet-config)
> and the CPAN perl module...
>
> Have updated and hand-installed glib (and all its flavors...)
> have tried with/without " --with-dynamic-linking "
>
> with libnet I get the odd syntax errors (would prefer to be able to
> use this version, and enable spoof sourcing, code update coming?)
>
> In file included from
> /home/bazsi/zwa/work/syslog-ng-2.0/syslog-ng/src/cfg-grammar.y:15:
> afinet.h:61: error: syntax error before "libnet_t"
> afinet.h:61: warning: no semicolon at end of struct or union
> afinet.h:63: warning: type defaults to `int' in declaration of
> `AFInetDestDriver'
> afinet.h:63: warning: data definition has no type or storage class
> /home/bazsi/zwa/work/syslog-ng-2.0/syslog-ng/src/cfg-grammar.y: In
> function `yyparse':
> /home/bazsi/zwa/work/syslog-ng-2.0/syslog-ng/src/cfg-grammar.y:592: error:
> syntax error before ')' token
> /home/bazsi/zwa/work/syslog-ng-2.0/syslog-ng/src/cfg-grammar.y:626: error:
> syntax error before ')' token
> make[2]: *** [cfg-grammar.o] Error 1
> make[2]: Leaving directory `/tmp/syslog-ng-2.0.3/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/tmp/syslog-ng-2.0.3'
> make: *** [all] Error 2
>
> after disabling enable-spoof_source, I get different errors
> (these seem to relate to glib issues noted earlier):
> 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
> -lwrap -Wl,-Bdynamic
> libsyslog-ng.a(misc.o)(.text+0x3a9): In function `resolve_hostname':
> /tmp/syslog-ng-2.0.3/src/misc.c:191: undefined reference to
> `g_assert_warning'
> libsyslog-ng.a(logmsg.o)(.text+0x6a): In function `log_stamp_format':
> /tmp/syslog-ng-2.0.3/src/logmsg.c:110: undefined reference to
> `g_assert_warning'
> libsyslog-ng.a(logmsg.o)(.text+0x2b6): In function `log_msg_ref':
> /tmp/syslog-ng-2.0.3/src/logmsg.c:498: undefined reference to
> `g_assert_warning'
> libsyslog-ng.a(logmsg.o)(.text+0x342): In function `log_msg_unref':
> /tmp/syslog-ng-2.0.3/src/logmsg.c:512: undefined reference to
> `g_assert_warning'
> libsyslog-ng.a(logmsg.o)(.text+0xe2a): In function
> `log_msg_ack_block_end':
> /tmp/syslog-ng-2.0.3/src/logmsg.c:648: undefined reference to
> `g_return_if_fail_warning'
> libsyslog-ng.a(logpipe.o)(.text+0x4f): In function `log_pipe_ref':
> /tmp/syslog-ng-2.0.3/src/logpipe.c:38: undefined reference to
> `g_assert_warning'
> libsyslog-ng.a(logpipe.o)(.text+0x9b): In function `log_pipe_unref':
> /tmp/syslog-ng-2.0.3/src/logpipe.c:47: undefined reference to
> `g_assert_warning'
> libsyslog-ng.a(center.o)(.text+0x7d): In function `log_endpoint_free':
> /tmp/syslog-ng-2.0.3/src/center.c:90: undefined reference to
> `g_assert_warning'
> libsyslog-ng.a(center.o)(.text+0x175): In function `log_connection_new':
> /tmp/syslog-ng-2.0.3/src/center.c:132: undefined reference to
> `g_assert_warning'
> libsyslog-ng.a(templates.o)(.text+0x2de): In function `log_template_ref':
> /tmp/syslog-ng-2.0.3/src/templates.c:180: undefined reference to
> `g_assert_warning'
> libsyslog-ng.a(templates.o)(.text+0x346):/tmp/syslog-ng-2.0.3/src/templates.c:191:
> more undefined references to `g_assert_warning' follow
> collect2: ld returned 1 exit status
> make[2]: *** [syslog-ng] Error 1
> make[2]: Leaving directory `/tmp/syslog-ng-2.0.3/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/tmp/syslog-ng-2.0.3'
> make: *** [all] Error 2
>
> even tried installing syslog-ng-2.0.2, thinking it more 'stable'
>
> suggestions welcome, I'd like to get this working...
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Diana Mayer Orrick email: orrick at fsu.edu
> University Computing Services ph: (850) 645-8009
> Florida State University fax: (850) 644-8722
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> _______________________________________________
> syslog-ng maillist - syslog-ng at lists.balabit.hu
> https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
>
--
We're all in this together.
More information about the syslog-ng
mailing list