[syslog-ng] syslog-ng-3.5.5 bison: invalid argument `no-yacc' for `--warnings'
algernon at balabit.hu
Mon Jul 28 23:14:20 CEST 2014
Scot Needy <scotrn at gmail.com> writes:
> Sorry if this is a dupe.
> Looked through my mail archives and didn’t see any hits.
> Trying to compile syslog-ng on CentOS 6.5 final and make fails on bison arguments.
This is a tough problem to fix properly, so I'll offer three workarounds:
- You can either upgrade to bison 3, which understands those options
- You can change Makefile.am, and remove/comment out the AM_YFLAGS line
- You can download a tarball with pre-generated grammar files, which
do not need neither bison, nor flex.
The problem is that bison3 changed to far more verbose, multi-line
warnings, which make the compile awfully noisy. We turn them off with
the -Wno-yacc Wno-other flags, but bison2 does not understand those.
The correct way would be to figure out which bison we use, and use the
appropriate command-line, but the patch to do that has not been written
Hope this helps!
More information about the syslog-ng