I tried to compile the latest snapshots, 1.0.5, I got the following error: make[2]: Entering directory `/mnt/lfs/kernel/bird-1.0.5/obj/conf' gcc -I../ -I../.. -g -O2 -Wall -W -Wstrict-prototypes -Wno-parentheses -Wno-unused -o cf-parse.tab.o -c cf-parse.tab.c cf-parse.y: In function `cf_parse': cf-parse.y:331: `FILE' undeclared (first use in this function) cf-parse.y:331: (Each undeclared identifier is reported only once cf-parse.y:331: for each function it appears in.) cf-parse.y:331: `f' undeclared (first use in this function) cf-parse.y:331: invalid lvalue in assignment cf-parse.y:336: `stderr' undeclared (first use in this function) make[2]: *** [cf-parse.tab.o] Error 1 make[2]: Leaving directory `/mnt/lfs/kernel/bird-1.0.5/obj/conf' make[1]: *** [subdir] Error 2 make[1]: Leaving directory `/mnt/lfs/kernel/bird-1.0.5/obj' make: *** [all] Error 2 FILE and stderr not declared??? Is there an include missing here or my lex/yacc installation is completly broken. My platform is Linux Mandrake 8.2. With flex-2.5.4a-18mdk and bison-1.32-2mdk (rpm binary distribution). Any idea? Cheers, Guillaume.
Hi!
I tried to compile the latest snapshots, 1.0.5, I got the following error:
make[2]: Entering directory `/mnt/lfs/kernel/bird-1.0.5/obj/conf' gcc -I../ -I../.. -g -O2 -Wall -W -Wstrict-prototypes -Wno-parentheses -Wno-unused -o cf-parse.tab.o -c cf-parse.tab.c cf-parse.y: In function `cf_parse': cf-parse.y:331: `FILE' undeclared (first use in this function) cf-parse.y:331: (Each undeclared identifier is reported only once cf-parse.y:331: for each function it appears in.) cf-parse.y:331: `f' undeclared (first use in this function) cf-parse.y:331: invalid lvalue in assignment cf-parse.y:336: `stderr' undeclared (first use in this function) make[2]: *** [cf-parse.tab.o] Error 1 make[2]: Leaving directory `/mnt/lfs/kernel/bird-1.0.5/obj/conf' make[1]: *** [subdir] Error 2 make[1]: Leaving directory `/mnt/lfs/kernel/bird-1.0.5/obj' make: *** [all] Error 2
FILE and stderr not declared??? Is there an include missing here or my lex/yacc installation is completly broken. My platform is Linux Mandrake 8.2. With flex-2.5.4a-18mdk and bison-1.32-2mdk (rpm binary distribution).
Any idea?
Yes, please apply the following patch. I wonder how could it ever compile :) Have a nice fortnight -- Martin `MJ' Mares <mj@ucw.cz> http://atrey.karlin.mff.cuni.cz/~mj/ Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth Ctrl and Alt keys stuck -- press Del to continue. diff -u -r1.8 config.Y --- sysdep/unix/config.Y 8 Jun 2000 10:48:51 -0000 1.8 +++ sysdep/unix/config.Y 13 Nov 2002 08:30:39 -0000 @@ -9,6 +9,7 @@ CF_HDR #include "lib/unix.h" +#include <stdio.h> CF_DECLS
participants (2)
-
Guillaume Marcais -
Martin Mares