I'm running RedHat Linux 5.1 (kernel 2.0.34) on a 686 machine.
Attached is the generated make.log that fails when compiling
hba.c.
I'm attempting to compile v6.5 and this is a new installation,
I'm not upgrading from a previous version of postgres.
The version of flex on my system is 2.5.4.
Any help would be much appreciated!
Tim
gmake lexverify
gmake[1]: Entering directory `/usr/src/pgsql/src'
gmake -C lextest all
gmake[2]: Entering directory `/usr/src/pgsql/src/lextest'
flex scan.l
gcc -c lex.yy.c
gcc -c lextest.c
gcc -o lextest lex.yy.o lextest.o
gmake[2]: Leaving directory `/usr/src/pgsql/src/lextest'
gmake[1]: Leaving directory `/usr/src/pgsql/src'
gmake -C utils all
gmake[1]: Entering directory `/usr/src/pgsql/src/utils'
gcc -I../include -I../backend -O2 -Wall -Wmissing-prototypes -c version.c -o version.o
gmake[1]: Leaving directory `/usr/src/pgsql/src/utils'
gmake -C backend all
gmake[1]: Entering directory `/usr/src/pgsql/src/backend'
gmake -C utils fmgr.h
gmake[2]: Entering directory `/usr/src/pgsql/src/backend/utils'
sh Gen_fmgrtab.sh ../../include/catalog/pg_proc.h
gmake[2]: Leaving directory `/usr/src/pgsql/src/backend/utils'
cp utils/fmgr.h .
gmake -C access all
gmake[2]: Entering directory `/usr/src/pgsql/src/backend/access'
gmake -C common SUBSYS.o
gmake[3]: Entering directory `/usr/src/pgsql/src/backend/access/common'
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c heaptuple.c -o heaptuple.o
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c indextuple.c -o indextuple.o
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c indexvalid.c -o indexvalid.o
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c printtup.c -o printtup.o
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c scankey.c -o scankey.o
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c tupdesc.c -o tupdesc.o
ld -r -o SUBSYS.o heaptuple.o indextuple.o indexvalid.o printtup.o scankey.o tupdesc.o
gmake[3]: Leaving directory `/usr/src/pgsql/src/backend/access/common'
gmake -C gist SUBSYS.o
gmake[3]: Entering directory `/usr/src/pgsql/src/backend/access/gist'
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c gist.c -o gist.o
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c gistget.c -o gistget.o
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c gistscan.c -o gistscan.o
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c giststrat.c -o giststrat.o
ld -r -o SUBSYS.o gist.o gistget.o gistscan.o giststrat.o
gmake[3]: Leaving directory `/usr/src/pgsql/src/backend/access/gist'
gmake -C hash SUBSYS.o
gmake[3]: Entering directory `/usr/src/pgsql/src/backend/access/hash'
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c hash.c -o hash.o
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c hashfunc.c -o hashfunc.o
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c hashinsert.c -o hashinsert.o
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c hashovfl.c -o hashovfl.o
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c hashpage.c -o hashpage.o
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c hashscan.c -o hashscan.o
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c hashsearch.c -o hashsearch.o
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c hashstrat.c -o hashstrat.o
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c hashutil.c -o hashutil.o
ld -r -o SUBSYS.o hash.o hashfunc.o hashinsert.o hashovfl.o hashpage.o hashscan.o hashsearch.o hashstrat.o hashutil.o
gmake[3]: Leaving directory `/usr/src/pgsql/src/backend/access/hash'
gmake -C heap SUBSYS.o
gmake[3]: Entering directory `/usr/src/pgsql/src/backend/access/heap'
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c heapam.c -o heapam.o
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c hio.c -o hio.o
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c stats.c -o stats.o
ld -r -o SUBSYS.o heapam.o hio.o stats.o
gmake[3]: Leaving directory `/usr/src/pgsql/src/backend/access/heap'
gmake -C index SUBSYS.o
gmake[3]: Entering directory `/usr/src/pgsql/src/backend/access/index'
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c genam.c -o genam.o
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c indexam.c -o indexam.o
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c istrat.c -o istrat.o
ld -r -o SUBSYS.o genam.o indexam.o istrat.o
gmake[3]: Leaving directory `/usr/src/pgsql/src/backend/access/index'
gmake -C rtree SUBSYS.o
gmake[3]: Entering directory `/usr/src/pgsql/src/backend/access/rtree'
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c rtget.c -o rtget.o
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c rtproc.c -o rtproc.o
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c rtree.c -o rtree.o
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c rtscan.c -o rtscan.o
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c rtstrat.c -o rtstrat.o
ld -r -o SUBSYS.o rtget.o rtproc.o rtree.o rtscan.o rtstrat.o
gmake[3]: Leaving directory `/usr/src/pgsql/src/backend/access/rtree'
gmake -C nbtree SUBSYS.o
gmake[3]: Entering directory `/usr/src/pgsql/src/backend/access/nbtree'
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c nbtcompare.c -o nbtcompare.o
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c nbtinsert.c -o nbtinsert.o
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c nbtpage.c -o nbtpage.o
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c nbtree.c -o nbtree.o
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c nbtscan.c -o nbtscan.o
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c nbtsearch.c -o nbtsearch.o
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c nbtstrat.c -o nbtstrat.o
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c nbtutils.c -o nbtutils.o
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c nbtsort.c -o nbtsort.o
ld -r -o SUBSYS.o nbtcompare.o nbtinsert.o nbtpage.o nbtree.o nbtscan.o nbtsearch.o nbtstrat.o nbtutils.o nbtsort.o
gmake[3]: Leaving directory `/usr/src/pgsql/src/backend/access/nbtree'
gmake -C transam SUBSYS.o
gmake[3]: Entering directory `/usr/src/pgsql/src/backend/access/transam'
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c transam.c -o transam.o
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c transsup.c -o transsup.o
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c varsup.c -o varsup.o
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c xact.c -o xact.o
gcc -I../../../include -I../../../backend -O2 -Wall -Wmissing-prototypes -I../.. -c xid.c -o xid.o
ld -r -o SUBSYS.o transam.o transsup.o varsup.o xact.o xid.o
gmake[3]: Leaving directory `/usr/src/pgsql/src/backend/access/transam'
ld -r -o SUBSYS.o common/SUBSYS.o gist/SUBSYS.o hash/SUBSYS.o heap/SUBSYS.o index/SUBSYS.o rtree/SUBSYS.o
nbtree/SUBSYS.otransam/SUBSYS.o
gmake[2]: Leaving directory `/usr/src/pgsql/src/backend/access'
gmake -C bootstrap all
gmake[2]: Entering directory `/usr/src/pgsql/src/backend/bootstrap'
/usr/bin/bison -y -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 -O2 -Wall -Wmissing-prototypes -I.. -Wno-error -c bootparse.c -o bootparse.o
/usr/lib/bison.simple: In function `Int_yyparse':
/usr/lib/bison.simple:327: warning: implicit declaration of function `Int_yyerror'
/usr/lib/bison.simple:387: warning: implicit declaration of function `Int_yylex'
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 -O2 -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'
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -Wno-error -c bootstrap.c -o bootstrap.o
ld -r -o SUBSYS.o bootparse.o bootscanner.o bootstrap.o
gmake[2]: Leaving directory `/usr/src/pgsql/src/backend/bootstrap'
gmake -C catalog all
gmake[2]: Entering directory `/usr/src/pgsql/src/backend/catalog'
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c catalog.c -o catalog.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c heap.c -o heap.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c index.c -o index.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c indexing.c -o indexing.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c aclchk.c -o aclchk.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c pg_aggregate.c -o pg_aggregate.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c pg_operator.c -o pg_operator.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c pg_proc.c -o pg_proc.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c pg_type.c -o pg_type.o
ld -r -o SUBSYS.o catalog.o heap.o index.o indexing.o aclchk.o pg_aggregate.o pg_operator.o pg_proc.o pg_type.o
sh ./genbki.sh ../../include/catalog/pg_database.h ../../include/catalog/pg_variable.h
../../include/catalog/pg_shadow.h../../include/catalog/pg_group.h ../../include/catalog/pg_log.h > global1.bki.source
2>global1.description
sh ./genbki.sh ../../include/catalog/pg_proc.h ../../include/catalog/pg_type.h ../../include/catalog/pg_attribute.h
../../include/catalog/pg_class.h../../include/catalog/pg_inherits.h ../../include/catalog/pg_index.h
../../include/catalog/pg_statistic.h../../include/catalog/pg_operator.h ../../include/catalog/pg_opclass.h
../../include/catalog/pg_am.h../../include/catalog/pg_amop.h ../../include/catalog/pg_amproc.h
../../include/catalog/pg_language.h../../include/catalog/pg_aggregate.h ../../include/catalog/pg_ipl.h
../../include/catalog/pg_inheritproc.h../../include/catalog/pg_rewrite.h ../../include/catalog/pg_listener.h
../../include/catalog/pg_description.h../../include/catalog/indexing.h > local1_template1.bki.source
2>local1_template1.description
gmake[2]: Leaving directory `/usr/src/pgsql/src/backend/catalog'
gmake -C commands all
gmake[2]: Entering directory `/usr/src/pgsql/src/backend/commands'
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c async.c -o async.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c creatinh.c -o creatinh.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c command.c -o command.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c copy.c -o copy.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c indexcmds.c -o indexcmds.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c define.c -o define.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c remove.c -o remove.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c rename.c -o rename.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c vacuum.c -o vacuum.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c view.c -o view.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c cluster.c -o cluster.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c explain.c -o explain.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c sequence.c -o sequence.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c trigger.c -o trigger.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c user.c -o user.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c proclang.c -o proclang.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c dbcommands.c -o dbcommands.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c variable.c -o variable.o
ld -r -o SUBSYS.o async.o creatinh.o command.o copy.o indexcmds.o define.o remove.o rename.o vacuum.o view.o cluster.o
explain.osequence.o trigger.o user.o proclang.o dbcommands.o variable.o
gmake[2]: Leaving directory `/usr/src/pgsql/src/backend/commands'
gmake -C executor all
gmake[2]: Entering directory `/usr/src/pgsql/src/backend/executor'
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c execAmi.c -o execAmi.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c execFlatten.c -o execFlatten.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c execJunk.c -o execJunk.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c execMain.c -o execMain.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c execProcnode.c -o execProcnode.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c execQual.c -o execQual.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c execScan.c -o execScan.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c execTuples.c -o execTuples.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c execUtils.c -o execUtils.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c functions.c -o functions.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c nodeAppend.c -o nodeAppend.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c nodeAgg.c -o nodeAgg.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c nodeHash.c -o nodeHash.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c nodeHashjoin.c -o nodeHashjoin.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c nodeIndexscan.c -o nodeIndexscan.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c nodeMaterial.c -o nodeMaterial.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c nodeMergejoin.c -o nodeMergejoin.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c nodeNestloop.c -o nodeNestloop.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c nodeResult.c -o nodeResult.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c nodeSeqscan.c -o nodeSeqscan.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c nodeSort.c -o nodeSort.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c nodeUnique.c -o nodeUnique.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c nodeGroup.c -o nodeGroup.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c spi.c -o spi.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c nodeSubplan.c -o nodeSubplan.o
ld -r -o SUBSYS.o execAmi.o execFlatten.o execJunk.o execMain.o execProcnode.o execQual.o execScan.o execTuples.o
execUtils.ofunctions.o nodeAppend.o nodeAgg.o nodeHash.o nodeHashjoin.o nodeIndexscan.o nodeMaterial.o nodeMergejoin.o
nodeNestloop.onodeResult.o nodeSeqscan.o nodeSort.o nodeUnique.o nodeGroup.o spi.o nodeSubplan.o
gmake[2]: Leaving directory `/usr/src/pgsql/src/backend/executor'
gmake -C lib all
gmake[2]: Entering directory `/usr/src/pgsql/src/backend/lib'
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c bit.c -o bit.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c fstack.c -o fstack.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c hasht.c -o hasht.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c lispsort.c -o lispsort.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c stringinfo.c -o stringinfo.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c dllist.c -o dllist.o
ld -r -o SUBSYS.o bit.o fstack.o hasht.o lispsort.o stringinfo.o dllist.o
gmake[2]: Leaving directory `/usr/src/pgsql/src/backend/lib'
gmake -C libpq all
gmake[2]: Entering directory `/usr/src/pgsql/src/backend/libpq'
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c be-dumpdata.c -o be-dumpdata.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c be-fsstubs.c -o be-fsstubs.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c be-pqexec.c -o be-pqexec.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c portal.c -o portal.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c portalbuf.c -o portalbuf.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c auth.c -o auth.o
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I.. -c hba.c -o hba.o
hba.c:520: parse error before `remote_port'
hba.c: In function `ident':
hba.c:562: `remote_ip_addr' undeclared (first use this function)
hba.c:562: (Each undeclared identifier is reported only once
hba.c:562: for each function it appears in.)
hba.c:572: `local_ip_addr' undeclared (first use this function)
hba.c:589: `ident_failed' undeclared (first use this function)
hba.c:597: `remote_port' undeclared (first use this function)
hba.c:597: `local_port' undeclared (first use this function)
hba.c:635: `ident_username' undeclared (first use this function)
gmake[2]: *** [hba.o] Error 1
gmake[2]: Leaving directory `/usr/src/pgsql/src/backend/libpq'
gmake[1]: *** [libpq.dir] Error 2
gmake[1]: Leaving directory `/usr/src/pgsql/src/backend'
gmake: *** [all] Error 2