Thread: Compile Error

Compile Error

From
"Dan Wilson"
Date:
OK,

I thought I would be the last one asking a simple compile questions, but I
can't figure this out.

I'm on a fresh install of Linux Red Hat 6.0 and trying to compile pgsql 6.5.
I've got it working on another machine, but I can't get this one up.

The configure workes great, but when I get to this point in the compile, it
chokes every time.  The final output follows:

(Sorry for the length post)

========================  Last portion of make output =====================
gmake[2]: Leaving directory `/usr/src/pgsql/src/backend/main'
gmake -C parser all
gmake[2]: Entering directory `/usr/src/pgsql/src/backend/parser'
gcc -I../../include -I../../backend   -O2 -Wall -Wmissing-prototypes -I..
-Wno-error   -c analyze.c -o analyze.o
gcc -I../../include -I../../backend   -O2 -Wall -Wmissing-prototypes -I..
-Wno-error   -c gram.c -o gram.o
gram.y:2016: parse error before `)'
gram.y:2020: `rawid' undeclared here (not in a function)
gram.y:2020: initializer element for `yytable[5805]' is not constant
gram.y:2020: parse error before `)'
gram.y:2021: initializer element for `yytable[5806]' is not constant
gram.y:2021: initializer element for `yytable[5807]' is not constant
gram.y:2021: initializer element for `yytable[5808]' is not constant
gram.y:2021: initializer element for `yytable[5809]' is not constant
gram.y:2021: initializer element for `yytable[5810]' is not constant
gram.y:2021: parse error before `)'
gram.y:2021: warning: initialization makes integer from pointer without a
cast
gram.y:2021: initializer element for `yytable[5811]' is not computable at
load time
gram.y:2021: initializer element for `yytable[5812]' is not constant
gram.y:2021: parse error before `)'
gram.y:2021: warning: initialization makes integer from pointer without a
cast
gram.y:2021: initializer element for `yytable[5813]' is not computable at
load time
gram.y:2022: `rawid' undeclared here (not in a function)
gram.y:2022: initializer element for `yytable[5814]' is not constant
gram.y:2023: warning: initialization makes integer from pointer without a
cast
gram.y:2023: initializer element for `yytable[5815]' is not computable at
load time
gram.y:57: warning: `saved_relname' defined but not used
gram.y:58: warning: `QueryIsRule' defined but not used
gram.y:59: warning: `saved_In_Expr' defined but not used
gram.y:72: warning: `xlateSqlFunc' declared `static' but never defined
gram.y:73: warning: `xlateSqlType' declared `static' but never defined
gram.y:74: warning: `makeA_Expr' declared `static' but never defined
gram.y:75: warning: `makeRowExpr' declared `static' but never defined
gram.y:76: warning: `mapTargetColumns' declared `static' but never defined
gram.y:77: warning: `makeConstantList' declared `static' but never defined
gram.y:78: warning: `FlattenStringList' declared `static' but never defined
gram.y:79: warning: `fmtId' declared `static' but never defined
gram.y:80: warning: `makeIndexable' declared `static' but never defined
gram.y:2039: warning: `param_type_init' defined but not used
gram.y:2057: warning: `doNegate' defined but not used
gmake[2]: *** [gram.o] Error 1
gmake[2]: Leaving directory `/usr/src/pgsql/src/backend/parser'
gmake[1]: *** [parser.dir] Error 2
gmake[1]: Leaving directory `/usr/src/pgsql/src/backend'
gmake: *** [all] Error 2


Does anyone have any clue?  I have been pulling hair out.

Thanks in advance for any assistance,
-Dan Wilson