Discussion:
Error compiling PostgreSQL 7.4 for Fedora Core 1
(too old to reply)
Jonathan Gardner
2003-12-07 07:47:48 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I am trying to compile PostgreSQL 7.4 for Fedora Core 1. I used these
parameters to configure:

$ ./configure --prefix=/usr/local/postgresql-7.4

While running make, it returns the errors below.

Any ideas?

make -C bootstrap all
make[3]: Entering directory
`/home/jgardner/src/postgresql-7.4/src/backend/bootstrap'
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
- -Wmissing-declarations -I. -I../../../src/include -D_GNU_SOURCE -c -o
bootparse.o bootparse.c
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
- -Wmissing-declarations -I. -I../../../src/include -D_GNU_SOURCE -c -o
bootstrap.o bootstrap.c
bootstrap.c:118: error: `F_REGCLASSIN' undeclared here (not in a function)
bootstrap.c:118: error: initializer element is not constant
bootstrap.c:118: error: (near initialization for `Procid[8].inproc')
bootstrap.c:118: error: `F_REGCLASSOUT' undeclared here (not in a function)
bootstrap.c:118: error: initializer element is not constant
bootstrap.c:118: error: (near initialization for `Procid[8].outproc')
bootstrap.c:118: error: initializer element is not constant
bootstrap.c:118: error: (near initialization for `Procid[8]')
bootstrap.c:119: error: `F_REGTYPEIN' undeclared here (not in a function)
bootstrap.c:119: error: initializer element is not constant
bootstrap.c:119: error: (near initialization for `Procid[9].inproc')
bootstrap.c:119: error: `F_REGTYPEOUT' undeclared here (not in a function)
bootstrap.c:119: error: initializer element is not constant
bootstrap.c:119: error: (near initialization for `Procid[9].outproc')
bootstrap.c:119: error: initializer element is not constant
bootstrap.c:119: error: (near initialization for `Procid[9]')
bootstrap.c:120: error: initializer element is not constant
bootstrap.c:120: error: (near initialization for `Procid[10]')
bootstrap.c:121: error: initializer element is not constant
bootstrap.c:121: error: (near initialization for `Procid[11]')
bootstrap.c:122: error: initializer element is not constant
bootstrap.c:122: error: (near initialization for `Procid[12]')
bootstrap.c:123: error: initializer element is not constant
bootstrap.c:123: error: (near initialization for `Procid[13]')
bootstrap.c:124: error: initializer element is not constant
bootstrap.c:124: error: (near initialization for `Procid[14]')
bootstrap.c:125: error: initializer element is not constant
bootstrap.c:125: error: (near initialization for `Procid[15]')
bootstrap.c:126: error: initializer element is not constant
bootstrap.c:126: error: (near initialization for `Procid[16]')
bootstrap.c:127: error: initializer element is not constant
bootstrap.c:127: error: (near initialization for `Procid[17]')
bootstrap.c:128: error: initializer element is not constant
bootstrap.c:128: error: (near initialization for `Procid[18]')
make[3]: *** [bootstrap.o] Error 1
make[3]: Leaving directory
`/home/jgardner/src/postgresql-7.4/src/backend/bootstrap'
make[2]: *** [bootstrap-recursive] Error 2
make[2]: Leaving directory `/home/jgardner/src/postgresql-7.4/src/backend'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/jgardner/src/postgresql-7.4/src'
make: *** [all] Error 2


- --
Jonathan Gardner
***@jonathangardner.net
Live Free, Use Linux!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/0tskWgwF3QvpWNwRAq0UAKCHGD1cuuvTJR3P5eNdbR2W5Kd7+gCg6rJB
LVJubC4t0st25mj6iPtcWu0=
=iJod
-----END PGP SIGNATURE-----


---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html
Tom Lane
2003-12-07 08:48:16 UTC
Permalink
Post by Jonathan Gardner
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
- -Wmissing-declarations -I. -I../../../src/include -D_GNU_SOURCE -c -o
bootstrap.o bootstrap.c
bootstrap.c:118: error: `F_REGCLASSIN' undeclared here (not in a function)
Hmmm ... this is evidently a variant of ye olde "Gen_fmgrtab.sh script
failed" problem, though I do not understand why you're seeing it in
bootstrap.c when other complainants see effects much earlier in the
build process. The known reasons for Gen_fmgrtab.sh to fail include
lack of awk or sed on the platform. But I've never been entirely
convinced that we fully understand the risks here --- can you dig into
it and find out what's failing and why?

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to ***@postgresql.org)
Loading...