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

Marc G. Fournier <scrappy@hub.org>

From: The Hermit Hacker <scrappy@hub.org>
To: Brook Milligan <brook@trillium.NMSU.Edu>
Cc: lockhart@alumni.caltech.edu, ports@postgreSQL.org, hackers@postgreSQL.org
Date: 1998-02-15T00:48:34Z
Lists: pgsql-hackers
On Sat, 14 Feb 1998, Brook Milligan wrote:

>    ?  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'

	These "prototype" errors are normal and can safely be ignored...

>      ... (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

	Requires bison to be installed instead of yacc...

> 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.

	It doesn't appear to be a seperate requirement on all systems...

Marc G. Fournier                                
Systems Administrator @ hub.org 
primary: scrappy@hub.org           secondary: scrappy@{freebsd|postgresql}.org