[syslog-ng]Problems compiling 1.5.18

Balazs Scheidler bazsi@balabit.hu
Tue, 11 Jun 2002 14:43:04 +0200


On Mon, Jun 10, 2002 at 06:28:58PM -0400, Russo, Ben wrote:
> This problem was reported (with a workaround) by
> Andrej.Borsenkow@mow.siemens.ru
> on Thu May 30th.
> 
> The fix was to add the line 
> 	#include "stdio.h"
> to cfg-grammer.c
> 
> I don't know if this is the right thing to do because there is conflicting
> advice
> Bazsi said it would be save to include it, but in the cfg-grammer.c file
> there is 
> a comment saying:
> 
> 	#  include <stdio.h> /* INFRINGES ON USER NAME SPACE */

cfg-grammar.c is generated from cfg-grammar.y by bison. Earlier versions of
bison automatically added that include, which is infringing on user name
space, given the program doesn't use stdio itself. As syslog-ng does use
stdio it's safe to include stdio.h


-- 
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1