Re: [HACKERS] Cannot build recent snapshot

Поиск
Список
Период
Сортировка
От Darrell A. Escola
Тема Re: [HACKERS] Cannot build recent snapshot
Дата
Msg-id 34BEF0B7.6CFB39EB@ibm.net
обсуждение исходный текст
Ответ на Cannot build recent snapshot  ("Oliver Elphick" <olly@lfix.co.uk>)
Список 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

В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Thomas G. Lockhart"
Дата:
Сообщение: Re: [HACKERS] Re: varchar() troubles (fwd)
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] Re: varchar() troubles (fwd)