One recommendation, update the build doc to add the bison3 dependency. CentOS 6.5 Final still has bison2. Once I did this build worked fine. Download Bison 3.0 from GNU. rpm -e bison build and install bison3. update your paths ( updatedb ) build syslog-ng ( make clean; ./configure ; make ) On Jul 28, 2014, at 5:14 PM, Gergely Nagy <algernon@balabit.hu> wrote:
Scot Needy <scotrn@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[1] with pre-generated grammar files, which do not need neither bison, nor flex.
[1]: https://github.com/balabit/syslog-ng/releases/download/v3.5.5/syslog-ng-3.5....
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 yet.
Hope this helps!
-- |8] ______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.balabit.com/wiki/syslog-ng-faq