[syslog-ng] Re: compiling syslog-ng 2.0.4 problems
withoutspoof-source(!)
Folkert van Heusden
folkert at vanheusden.com
Wed May 30 14:39:35 CEST 2007
Using version 2.0.4.
I found that ./configure STILL uses libnet even though I did NOT select
the spoofing. So I removed that part of the configure script but it now
fails on some other part:
In file included from afinet.h:30,
from /home/bazsi/zwa/git//syslog-ng/syslog-ng--mainline--2.0/src/cfg-grammar.y:15:
/usr/include/libnet.h:87:2: #error "byte order has not been specified, you'll
In file included from afinet.h:30,
from /home/bazsi/zwa/git//syslog-ng/syslog-ng--mainline--2.0/src/cfg-grammar.y:15:
/usr/include/libnet.h:88: error: syntax error before "to"
/usr/include/libnet.h:88: error: syntax error at '#' token
/usr/include/libnet.h:89: error: missing terminating " character
In file included from /home/bazsi/zwa/git//syslog-ng/syslog-ng--mainline--2.0/src/cfg-grammar.y:15:
afinet.h:39: error: syntax error before '}' token
afinet.h:39: warning: type defaults to `int' in declaration of `InetSocketOptions'
afinet.h:39: warning: data definition has no type or storage class
afinet.h:44: error: syntax error before "InetSocketOptions"
afinet.h:44: warning: no semicolon at end of struct or union
afinet.h:45: warning: type defaults to `int' in declaration of `AFInetSourceDriver'
afinet.h:45: warning: data definition has no type or storage class
afinet.h:58: error: syntax error before "InetSocketOptions"
afinet.h:58: warning: no semicolon at end of struct or union
afinet.h:61: error: syntax error before '*' token
afinet.h:61: warning: type defaults to `int' in declaration of `lnet_ctx'
afinet.h:61: warning: data definition has no type or storage class
afinet.h:63: error: syntax error before '}' token
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/git//syslog-ng/syslog-ng--mainline--2.0/src/cfg-grammar.y: In function `yyparse':
/home/bazsi/zwa/git//syslog-ng/syslog-ng--mainline--2.0/src/cfg-grammar.y:258: error: syntax error before ')' token
/home/bazsi/zwa/git//syslog-ng/syslog-ng--mainline--2.0/src/cfg-grammar.y:259: error: syntax error before ')' token
/home/bazsi/zwa/git//syslog-ng/syslog-ng--mainline--2.0/src/cfg-grammar.y:366: error: syntax error before ')' token
/home/bazsi/zwa/git//syslog-ng/syslog-ng--mainline--2.0/src/cfg-grammar.y:396: error: syntax error before ')' token
/home/bazsi/zwa/git//syslog-ng/syslog-ng--mainline--2.0/src/cfg-grammar.y:590: error: syntax error before ')' token
/home/bazsi/zwa/git//syslog-ng/syslog-ng--mainline--2.0/src/cfg-grammar.y:623: error: syntax error before ')' token
make[2]: *** [cfg-grammar.o] Error 1
make[2]: Leaving directory `/usr/src/syslog-ng-2.0.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/syslog-ng-2.0.4'
make: *** [all] Error 2
On Wed, May 30, 2007 at 02:36:07PM +0200, Hiren Patel wrote:
>
> is this a development version you are compiling?
> ie. not a stable release?
>
> On Wed, 2007-05-30 at 14:19 +0200, Folkert van Heusden wrote:
> > Please note that I configured things without libnet and WITHOUT
> > spoof-source!
> > e.g.:
> > ./configure --enable-ipv6 --enable-tcp-wrapper --enable-dynamic-linking
> >
> > On Wed, May 30, 2007 at 12:09:41PM +0200, Folkert van Heusden wrote:
> > > Hi,
> > >
> > > I'm trying to compile syslog-ng 2.0.4 but fail to. It gives the
> > > following errors:
> > >
> > > if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/local/include/eventlog -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -march=pentium4 -fprefetch-loop-arrays -Wall -g -MT cfg-grammar.o -MD -MP -MF ".deps/cfg-grammar.Tpo" \
> > > -c -o cfg-grammar.o `test -f 'cfg-grammar.c' || echo './'`cfg-grammar.c; \
> > > then mv -f ".deps/cfg-grammar.Tpo" ".deps/cfg-grammar.Po"; \
> > > else rm -f ".deps/cfg-grammar.Tpo"; exit 1; \
> > > fi
> > > In file included from /home/bazsi/zwa/git//syslog-ng/syslog-ng--mainline--2.0/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/git//syslog-ng/syslog-ng--mainline--2.0/src/cfg-grammar.y: In function `yyparse':
> > > /home/bazsi/zwa/git//syslog-ng/syslog-ng--mainline--2.0/src/cfg-grammar.y:590: error: syntax error before ')' token
> > > /home/bazsi/zwa/git//syslog-ng/syslog-ng--mainline--2.0/src/cfg-grammar.y:623: error: syntax error before ')' token
> > > make[2]: *** [cfg-grammar.o] Error 1
> > > make[2]: Leaving directory `/usr/src/syslog-ng-2.0.4/src'
> > > make[1]: *** [all-recursive] Error 1
> > > make[1]: Leaving directory `/usr/src/syslog-ng-2.0.4'
> > > make: *** [all] Error 2
> > >
> > > What could be the cause? And how do I fix this?
> > >
> > >
> > > Folkert van Heusden
> > >
> > > --
> > > MultiTail is a versatile tool for watching logfiles and output of
> > > commands. Filtering, coloring, merging, diff-view, etc.
> > > http://www.vanheusden.com/multitail/
> > > ----------------------------------------------------------------------
> > > Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com
> >
> >
> > Folkert van Heusden
> >
> --
> Hiren Patel
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> This e-mail and its contents are subject to the Telkom SA Limited
> e-mail legal notice available at
> http://www.telkom.co.za/TelkomEMailLegalNotice.PDF
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> _______________________________________________
> 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
Folkert van Heusden
--
MultiTail är en flexibel redskap för att fälja logfilar, utför av
commandoer, filtrera, ge färg, sammanfoga, o.s.v. följa.
http://www.vanheusden.com/multitail/
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com
More information about the syslog-ng
mailing list