Re: [HACKERS] Valid ports for v6.3 -- NetBSD/i386 compile errors

Brook Milligan <brook@trillium.nmsu.edu>

From: Brook Milligan <brook@trillium.NMSU.Edu>
To: lockhart@alumni.caltech.edu
Cc: ports@postgreSQL.org, hackers@postgreSQL.org
Date: 1998-02-14T23:10:12Z
Lists: pgsql-hackers
   ?  NetBSD/i386 version? - not yet tested but should work?

I'm trying to compile 6.3 on NetBSD/i386 v1.3.  A couple of problems
crop up with the compile.  I get the following warnings/errors:

     ... (lots of stuff deleted from compilation output) ...

     gmake[2]: Entering directory `/usr/local/NetBSD/pkgsrc/databases/postgresql/work/pgsql/src/backend/bootstrap'
     /usr/bin/yacc -d bootparse.y
     grep -v "^#" boot.sed > sedfile
     sed -f sedfile < y.tab.c > bootparse.c
     mv y.tab.h bootstrap_tokens.h
     rm -f y.tab.c sedfile
     gcc -I../../include -I../../backend -I/usr/local/include -O2 -pipe  -Wall -Wmissing-prototypes -I..    -Wno-error   -c bootparse.c -o bootparse.o
     y.tab.c: In function `Int_yyparse':
     y.tab.c:378: warning: implicit declaration of function `Int_yylex'
     y.tab.c:417: warning: implicit declaration of function `Int_yyerror'
     flex bootscanner.l
     grep -v "^#" boot.sed > sedfile
     sed -f sedfile < lex.yy.c > bootscanner.c
     rm -f lex.yy.c sedfile
     gcc -I../../include -I../../backend -I/usr/local/include -O2 -pipe  -Wall -Wmissing-prototypes -I..    -Wno-error   -c bootscanner.c -o bootscanner.o
     lex.Int_yy.c:683: warning: no previous prototype for `Int_yylex'
     bootscanner.l:137: warning: no previous prototype for `Int_yyerror'

     ... (lots of stuff deleted) ...

     gmake[2]: Entering directory `/usr/local/NetBSD/pkgsrc/databases/postgresql/work/pgsql/src/backend/parser'
     /usr/bin/yacc -d gram.y
     /usr/bin/yacc: f - maximum table size exceeded
     gmake[2]: *** [parse.h] Error 2
     /usr/bin/yacc -d gram.y
     /usr/bin/yacc: f - maximum table size exceeded
     gmake[2]: *** [gram.c] Error 2

Both sets of problems seem to relate to processing parsers with yacc.
Do I need bison instead?  If so, perhaps this should be listed as a
requirement in the INSTALL docs.

Thanks for your help.  I'll verify this port as soon as I resolve the
parser problems.

Cheers,
Brook