Обсуждение: More src install probs...
I'm trying to build 7.1 from source on a RedHat box.
Here's what I keep ending up with:
[root@dp1 postgresql-7.1]# gmake
gmake -C doc all
gmake[1]: Entering directory `/opt/src/postgresql-7.1/doc'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/opt/src/postgresql-7.1/doc'
gmake -C src all
gmake[1]: Entering directory `/opt/src/postgresql-7.1/src'
gmake -C backend all
gmake[2]: Entering directory `/opt/src/postgresql-7.1/src/backend'
gmake -C access all
gmake[3]: Entering directory `/opt/src/postgresql-7.1/src/backend/access'
gmake -C common SUBSYS.o
gmake[4]: Entering directory `/opt/src/postgresql-7.1/src/backend/access/common'
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations
-I../../../../src/include -c -o heaptuple.o heaptuple.c
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:30,
from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/limits.h:117,
from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/syslimits.h:7,
from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/limits.h:11,
from ../../../../src/include/utils/nabstime.h:17,
from ../../../../src/include/access/xact.h:19,
from ../../../../src/include/utils/tqual.h:19,
from ../../../../src/include/access/relscan.h:17,
from ../../../../src/include/access/heapam.h:19,
from heaptuple.c:23:
/usr/include/bits/local_lim.h:27: linux/limits.h: No such file or directory
gmake[4]: *** [heaptuple.o] Error 1
gmake[4]: Leaving directory `/opt/src/postgresql-7.1/src/backend/access/common'
gmake[3]: *** [common-recursive] Error 2
gmake[3]: Leaving directory `/opt/src/postgresql-7.1/src/backend/access'
gmake[2]: *** [access-recursive] Error 2
gmake[2]: Leaving directory `/opt/src/postgresql-7.1/src/backend'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/opt/src/postgresql-7.1/src'
gmake: *** [all] Error 2
It seems like I'm missing something, but what?
Enjoy,
David Pieper
--
programmer n. /pro gram er/ A device for transmuting caffeine into code.
David Pieper wrote: > > I'm trying to build 7.1 from source on a RedHat box. > Here's what I keep ending up with: From the gcc version it appears you are on a RedHat 6.x box. > It seems like I'm missing something, but what? kernel-headers? -- Lamar Owen WGCR Internet Radio 1 Peter 4:11
David Pieper wrote: > > I'm trying to build 7.1 from source on a RedHat box. > Here's what I keep ending up with: > > [root@dp1 postgresql-7.1]# gmake > gmake -C doc all > gmake[1]: Entering directory `/opt/src/postgresql-7.1/doc' > gmake[1]: Nothing to be done for `all'. > gmake[1]: Leaving directory `/opt/src/postgresql-7.1/doc' > gmake -C src all > gmake[1]: Entering directory `/opt/src/postgresql-7.1/src' > gmake -C backend all > gmake[2]: Entering directory `/opt/src/postgresql-7.1/src/backend' > gmake -C access all > gmake[3]: Entering directory `/opt/src/postgresql-7.1/src/backend/access' > gmake -C common SUBSYS.o > gmake[4]: Entering directory `/opt/src/postgresql-7.1/src/backend/access/common' > gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations > -I../../../../src/include -c -o heaptuple.o heaptuple.c > In file included from /usr/include/bits/posix1_lim.h:126, > from /usr/include/limits.h:30, > from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/limits.h:117, > from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/syslimits.h:7, > from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/limits.h:11, > from ../../../../src/include/utils/nabstime.h:17, > from ../../../../src/include/access/xact.h:19, > from ../../../../src/include/utils/tqual.h:19, > from ../../../../src/include/access/relscan.h:17, > from ../../../../src/include/access/heapam.h:19, > from heaptuple.c:23: > /usr/include/bits/local_lim.h:27: linux/limits.h: No such file or directory > gmake[4]: *** [heaptuple.o] Error 1 > gmake[4]: Leaving directory `/opt/src/postgresql-7.1/src/backend/access/common' > gmake[3]: *** [common-recursive] Error 2 > gmake[3]: Leaving directory `/opt/src/postgresql-7.1/src/backend/access' > gmake[2]: *** [access-recursive] Error 2 > gmake[2]: Leaving directory `/opt/src/postgresql-7.1/src/backend' > gmake[1]: *** [all] Error 2 > gmake[1]: Leaving directory `/opt/src/postgresql-7.1/src' > gmake: *** [all] Error 2 > > It seems like I'm missing something, but what? > OK. So I had /usr/src/linux linked to a kernel I deleted the other week. I fixed the link to point to the current one I'm using, and gmake is happy. It compiled fine and is running now. I still get a lot of "-Wmissing-prototypes -Wmissing-declarations" should I worry? Enjoy, David Pieper -- programmer n. /pro gram er/ A device for transmuting caffeine into code.