Thread

  1. Cannot build recent snapshot

    Oliver Elphick <olly@lfix.co.uk> — 1998-01-15T12:45:41Z

    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
    '
    
    scan.l version is:
    $Header: /usr/local/cvsroot/pgsql/src/backend/parser/scan.l,v 1.34 1998/01/05 
    16:39:19 momjian Exp $
    
    
    -- 
    Oliver Elphick                                Oliver.Elphick@lfix.co.uk
    Isle of Wight                              http://www.lfix.co.uk/oliver
    
    PGP key from public servers; key ID 32B8FAA1
    
    Unsolicited email advertisements are not welcome; any person sending
    such will be invoiced for telephone time used in downloading together
    with a £25 administration charge.
    
    
    
    
  2. Re: [HACKERS] Cannot build recent snapshot

    Marc G. Fournier <scrappy@hub.org> — 1998-01-15T13:06:46Z

    On Thu, 15 Jan 1998, 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. 
    
    	remove src/backend/parser/scan.c...that should fix your problem
    
    
    
    
  3. Re: [HACKERS] Cannot build recent snapshot

    Darrell A. Escola <descola@ibm.net> — 1998-01-16T05:32:05Z

    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