[syslog-ng] Problems compiling on RHEL 5 (flex error)

Douglas E. Warner silfreed at silfreed.net
Wed Nov 5 18:26:11 CET 2008


Douglas E. Warner wrote:
> Balazs Scheidler wrote:
>> 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.
> 
> Right, I see that, but for some reason (most likely timestamp issues) 
> the file still wants to be regenerated.
> 
> The flex version I'm having problems with is 2.5.4 on RHEL 5 (and lower).
> 

The workaround I've found is to touch the files generated by flex 
(cfg-grammer.c and cfg-lex.c) before configuring/building the packages (in the 
spec file's %prep section).  This prevents make from trying to rebuild these 
files.

-Doug

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://lists.balabit.hu/pipermail/syslog-ng/attachments/20081105/3d1512ab/attachment.pgp 


More information about the syslog-ng mailing list