[syslog-ng] Problems compiling on RHEL 5 (flex error)
Balazs Scheidler
bazsi at balabit.hu
Sat Oct 18 13:36:20 CEST 2008
On Fri, 2008-10-17 at 15:03 -0400, Douglas E. Warner wrote:
> I'm getting the following error trying to build packages for RHEL5:
>
> flex `test -f cfg-lex.l || echo './'`cfg-lex.l
> "cfg-lex.l", line 1: unrecognized '%' directive
> "cfg-lex.l", line 3: bad character: #
> "cfg-lex.l", line 3: unknown error processing section 1
> "cfg-lex.l", line 3: bad character: "
> "cfg-lex.l", line 3: bad character: .
> "cfg-lex.l", line 3: bad character: "
> "cfg-lex.l", line 5: bad character: }
> make[2]:
> *** [cfg-lex.c] Error 1
> make[2]:
>
> Any ideas on what I can do here?
>
The distribution tarball should contain an already generated .c file
suitable for compiling syslog-ng. It is present there to avoid the build
dependency on flex (only needed if you change the lexer file).
I'm using flex 2.5.34 myself, and it works fine here.
--
Bazsi
More information about the syslog-ng
mailing list