Re: [HACKERS] Cannot build recent snapshot

From: "Darrell A(dot) Escola" <descola(at)ibm(dot)net>
To: Oliver Elphick <olly(at)lfix(dot)co(dot)uk>
Cc: pgsql-hackers(at)hub(dot)org
Subject: Re: [HACKERS] Cannot build recent snapshot
Date: 1998-01-16 05:32:05
Message-ID: 34BEF0B7.6CFB39EB@ibm.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Oliver Elphick wrote:
>
> I have a potential patch for the glibc2 date problem; however I can't
> test it because the snapshot won't build.
>
> Has this build error been cured recently, or do I have my own unique problem?
>
> O/S: Linux 2.0.32
> Glibc: 2.0.6
> Gcc: 2.7.2.3
> Flex: 2.5.4
> Bison: 1.25
> PostgreSQL: snapshot downloaded Jan 12
>
> make[2]: Entering directory `/usr1/home/olly/mypackages/pgsql/src/backend/parse
> r'
> /usr/bin/bison -y -d gram.y
> mv y.tab.c gram.c
> mv y.tab.h parse.h
> gcc -I../../include -I/usr/include/ncurses -I/usr/include/readline -O2 -m486
> -Wall -Wmissing-prototypes -I.. -Wno-error -c analyze.c -o analyze.o
> gcc -I../../include -I/usr/include/ncurses -I/usr/include/readline -O2 -m486
> -Wall -Wmissing-prototypes -I.. -Wno-error -c gram.c -o gram.o
> /usr/share/bison.simple: In function `yyparse':
> /usr/share/bison.simple:327: warning: implicit declaration of function
> `yyerror'
> /usr/share/bison.simple:387: warning: implicit declaration of function `yylex'
> gcc -I../../include -I/usr/include/ncurses -I/usr/include/readline -O2 -m486
> -Wall -Wmissing-prototypes -I.. -Wno-error -c keywords.c -o keywords.o
>
> ....
>
> gcc -I../../include -I/usr/include/ncurses -I/usr/include/readline -O2 -m486
> -Wall -Wmissing-prototypes -I.. -Wno-error -c scan.c -o scan.o
> lex.yy.c:800: warning: no previous prototype for `yylex'
> scan.l: In function `yylex':
> scan.l:202: `ABORT' undeclared (first use this function)
> scan.l:202: (Each undeclared identifier is reported only once
> scan.l:202: for each function it appears in.)
> scan.l: At top level:
> scan.l:379: warning: no previous prototype for `yyerror'
> scan.l: In function `yyerror':
> scan.l:380: `ABORT' undeclared (first use this function)
> lex.yy.c: At top level:
> lex.yy.c:2103: warning: `yy_flex_realloc' defined but not used
> make[2]: *** [scan.o] Error 1
> make[2]: Leaving directory `/usr1/home/olly/mypackages/pgsql/src/backend/parser
> '

My solution was to remove scan.c from that directory and let it be
rebuilt
from scan.l - the Makefile does not remove scan.c on "make clean"
I had a couple of warnings, but no premature termination of make.
(Linux 2.0.29, libc-5.4.33)

Hope this helps

Darrell

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1998-01-16 05:44:11 Re: [HACKERS] Re: varchar() troubles (fwd)
Previous Message Thomas G. Lockhart 1998-01-16 05:26:08 Re: [HACKERS] Re: varchar() troubles (fwd)