On Tue, Jul 26, 2011 at 11:32 PM, Abel Abraham Camarillo Ojeda <[email protected]> wrote: > Any ideas? > > # cd /usr/src && make SUDO=sudo build > ... > cc -O2 -pipe -Wall -I/usr/src/usr.sbin/ospf6d -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -c parse.c > /usr/src/usr.sbin/ospf6d/parse.y:649: error: expected '=', ',', ';', 'asm' or '__attribute__' before numeric constant > /usr/src/usr.sbin/ospf6d/parse.y:657: error: stray '#' in program > y.tab.c: In function 'yyparse': > y.tab.c:619: warning: implicit declaration of function 'yygrowstack' > *** Error code 1
Your parse.c file (generated by yacc from parse.y) is corrupt. Whether the corruption is in the .y file, the yacc parser template, or just the generated .c file is your task to figure out; the solution will depend on where it lies and what caused it. E.g., if the disk with /usr/src on it is dieing, then the first step would be to take a backup and install a replacement drive; if it was just the result of mounting /usr/obj async and not cleaning up after a crash then a simple 'make cleandir' would be enough. Philip Guenther
