Обсуждение: Cannot compile postgresql 6.3
System : RedHat Linux i386 4.2 Hardware : Pentium 200 MMX Pg 6.3 Snapshot : Dated on February 23 After ./configure and gmake all I am getting this error : gcc -I../../include -I../../backend -I/usr/include/ncurses -I/usr/include/readline -O2 -Wall -Wmissing-prototypes -I.. -Wno-error -c bootstrap.c -o bootstrap.o bootstrap.c:160: `F_BOOLIN' undeclared here (not in a function) bootstrap.c:160: initializer element for `Procid[0].inproc' is not constant bootstrap.c:160: `F_BOOLOUT' undeclared here (not in a function) bootstrap.c:160: initializer element for `Procid[0].outproc' is not constant bootstrap.c:161: `F_BYTEAIN' undeclared here (not in a function) bootstrap.c:161: initializer element for `Procid[1].inproc' is not constant bootstrap.c:161: `F_BYTEAOUT' undeclared here (not in a function) bootstrap.c:161: initializer element for `Procid[1].outproc' is not constant bootstrap.c:162: `F_CHARIN' undeclared here (not in a function) bootstrap.c:162: initializer element for `Procid[2].inproc' is not constant ... there are a lot more, and compiling is stopping. Please cc me because I am not on the pgsql-questions@postgreSQL.org list ! -- Constantin Teodorescu FLEX Consulting Braila, ROMANIA -- Constantin Teodorescu FLEX Consulting Braila, ROMANIA
> -I/usr/include/readline -O2 -Wall -Wmissing-prototypes -I.. > -Wno-error -c bootstrap.c -o bootstrap.o > bootstrap.c:160: `F_BOOLIN' undeclared here (not in a function) > bootstrap.c:160: initializer element for `Procid[0].inproc' is not > constant > bootstrap.c:160: `F_BOOLOUT' undeclared here (not in a function) > bootstrap.c:160: initializer element for `Procid[0].outproc' is not > constant > bootstrap.c:161: `F_BYTEAIN' undeclared here (not in a function) > bootstrap.c:161: initializer element for `Procid[1].inproc' is not > constant > bootstrap.c:161: `F_BYTEAOUT' undeclared here (not in a function) > bootstrap.c:161: initializer element for `Procid[1].outproc' is not > constant > bootstrap.c:162: `F_CHARIN' undeclared here (not in a function) > bootstrap.c:162: initializer element for `Procid[2].inproc' is not > constant > ... > there are a lot more, and compiling is stopping. My guess is that the backend/fmgr.h file is not being created properly by utils/Gen_fmgrtab.sh file. Can you check on this? Look for errors earlier in the compile. I assume you did a make clean first. -- Bruce Momjian | 830 Blythe Avenue maillist@candle.pha.pa.us | Drexel Hill, Pennsylvania 19026 + If your life is a hard drive, | (610) 353-9879(w) + Christ can be your backup. | (610) 853-3000(h)
Bruce Momjian wrote: > > > -I/usr/include/readline -O2 -Wall -Wmissing-prototypes -I.. > > -Wno-error -c bootstrap.c -o bootstrap.o > > bootstrap.c:160: `F_BOOLIN' undeclared here (not in a function) > > bootstrap.c:160: initializer element for `Procid[0].inproc' is not > > constant > My guess is that the backend/fmgr.h file is not being created properly > by utils/Gen_fmgrtab.sh file. Can you check on this? Look for errors > earlier in the compile. I assume you did a make clean first. Yes. someone told me that he had the same problem due to 'cpp' missing in path. I have found 'cpp' , put it into the path, re-make all the compilation and everything is ok now. But "configure" (that is executing Gen_fmgrtab.sh) didn't detect that cpp wasn't found. I presume that "configure" must check if 'cpp' is available and report the error. In my case, he didn't report any error !!! -- Constantin Teodorescu FLEX Consulting Braila, ROMANIA