Обсуждение: unable compile postgresql 7.1.3 on FreeBSD 5.1 ???

Поиск
Список
Период
Сортировка

unable compile postgresql 7.1.3 on FreeBSD 5.1 ???

От
"sam"
Дата:
Your name                   :  sam
Your email address      :  sam@young-net.com.tw
 

System Configuration
---------------------
  Architecture (example: Intel Pentium)         :  Intel Pentium
 
  Operating System (example: Linux 2.0.26 ELF)  :  FreeBSD  5.1  version
 
  PostgreSQL version (example: PostgreSQL-7.1.3):   PostgreSQL-7.1.3
 
  Compiler used (example:  gcc 2.95.2)          :   gcc version 3.2.2 [FreeBSD] 20030205 (release)

Please enter a FULL description of your problem:
------------------------------------------------
when  I   compile  postgresql 7.1.3  on  FreeBSD  5.1  version :
 
gmake
 
 
and  I  got   the  error  message  ???
 
 
 
 
Please describe a way to repeat the problem.   Please try to provide a
concise reproducible example, if at all possible:
----------------------------------------------------------------------
gmake -C doc all
gmake[1]: Entering directory `/usr/local/postgresql-7.1.3/doc'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/usr/local/postgresql-7.1.3/doc'
gmake -C src all
gmake[1]: Entering directory `/usr/local/postgresql-7.1.3/src'
gmake -C backend all
gmake[2]: Entering directory `/usr/local/postgresql-7.1.3/src/backend'
gmake -C access all
gmake[3]: Entering directory `/usr/local/postgresql-7.1.3/src/backend/access'
gmake -C common SUBSYS.o
gmake[4]: Entering directory `/usr/local/postgresql-7.1.3/src/backend/access/common'
gcc -pipe -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../src/include   -c -o heaptuple.o heaptuple.c
In file included from ../../../../src/include/c.h:52,
                 from ../../../../src/include/postgres.h:48,
                 from heaptuple.c:21:
../../../../src/include/config.h:35:24: warning: multi-line string literals are deprecated
../../../../src/include/config.h:62:32: warning: multi-line string literals are deprecated
../../../../src/include/config.h:76:29: warning: multi-line string literals are deprecated
../../../../src/include/config.h:161:53: warning: multi-line string literals are deprecated
../../../../src/include/config.h:212:43: warning: multi-line string literals are deprecated
../../../../src/include/config.h:243:36: warning: multi-line string literals are deprecated
../../../../src/include/config.h:311:49: warning: multi-line string literals are deprecated
../../../../src/include/config.h:314:64: warning: multi-line string literals are deprecated
../../../../src/include/config.h:317:66: warning: multi-line string literals are deprecated
../../../../src/include/config.h:589:30: warning: multi-line string literals are deprecated
../../../../src/include/config.h:592:35: warning: multi-line string literals are deprecated
../../../../src/include/config.h:595:35: warning: multi-line string literals are deprecated
../../../../src/include/config.h:599:27: warning: multi-line string literals are deprecated
../../../../src/include/config.h:625:55: warning: multi-line string literals are deprecated
../../../../src/include/config.h:628:53: warning: multi-line string literals are deprecated
../../../../src/include/config.h:669:13: warning: multi-line string literals are deprecated
../../../../src/include/config.h:677:15: warning: multi-line string literals are deprecated
../../../../src/include/config.h:677:15: missing terminating " character
../../../../src/include/config.h:35:24: possible start of unterminated string literal
../../../../src/include/config.h:15:1: unterminated #ifndef
In file included from ../../../../src/include/postgres.h:48,
                 from heaptuple.c:21:
../../../../src/include/c.h:369: `INDEX_MAX_KEYS' undeclared here (not in a function)
../../../../src/include/c.h:370: `INDEX_MAX_KEYS' undeclared here (not in a function)
In file included from ../../../../src/include/access/skey.h:21,
                 from ../../../../src/include/access/strat.h:18,
                 from ../../../../src/include/utils/rel.h:17,
                 from ../../../../src/include/storage/bufmgr.h:21,
                 from ../../../../src/include/storage/bufpage.h:18,
                 from ../../../../src/include/access/htup.h:17,
                 from ../../../../src/include/access/heapam.h:18,
                 from heaptuple.c:23:
../../../../src/include/fmgr.h:65: `FUNC_MAX_ARGS' undeclared here (not in a function)
../../../../src/include/fmgr.h:66: `FUNC_MAX_ARGS' undeclared here (not in a function)
In file included from ../../../../src/include/access/tupdesc.h:18,
                 from ../../../../src/include/utils/rel.h:18,
                 from ../../../../src/include/storage/bufmgr.h:21,
                 from ../../../../src/include/storage/bufpage.h:18,
                 from ../../../../src/include/access/htup.h:17,
                 from ../../../../src/include/access/heapam.h:18,
                 from heaptuple.c:23:
../../../../src/include/catalog/pg_attribute.h:43: syntax error before '{' token
../../../../src/include/catalog/pg_attribute.h:156: syntax error before '}' token
In file included from ../../../../src/include/access/tupdesc.h:18,
                 from ../../../../src/include/utils/rel.h:18,
                 from ../../../../src/include/storage/bufmgr.h:21,
                 from ../../../../src/include/storage/bufpage.h:18,
                 from ../../../../src/include/access/htup.h:17,
                 from ../../../../src/include/access/heapam.h:18,
                 from heaptuple.c:23:
../../../../src/include/catalog/pg_attribute.h:24:1: unterminated #ifndef
In file included from ../../../../src/include/utils/rel.h:18,
                 from ../../../../src/include/storage/bufmgr.h:21,
                 from ../../../../src/include/storage/bufpage.h:18,
                 from ../../../../src/include/access/htup.h:17,
                 from ../../../../src/include/access/heapam.h:18,
                 from heaptuple.c:23:
../../../../src/include/access/tupdesc.h:14:1: unterminated #ifndef
In file included from ../../../../src/include/storage/bufmgr.h:21,
                 from ../../../../src/include/storage/bufpage.h:18,
                 from ../../../../src/include/access/htup.h:17,
                 from ../../../../src/include/access/heapam.h:18,
                 from heaptuple.c:23:
../../../../src/include/utils/rel.h:14:1: unterminated #ifndef
In file included from ../../../../src/include/storage/bufpage.h:18,
                 from ../../../../src/include/access/htup.h:17,
                 from ../../../../src/include/access/heapam.h:18,
                 from heaptuple.c:23:
../../../../src/include/storage/bufmgr.h:14:1: unterminated #ifndef
In file included from ../../../../src/include/access/htup.h:17,
                 from ../../../../src/include/access/heapam.h:18,
                 from heaptuple.c:23:
../../../../src/include/storage/bufpage.h:14:1: unterminated #ifndef
In file included from ../../../../src/include/access/heapam.h:18,
                 from heaptuple.c:23:
../../../../src/include/access/htup.h:14:1: unterminated #ifndef
In file included from heaptuple.c:23:
../../../../src/include/access/heapam.h:14:1: unterminated #ifndef
gmake[4]: *** [heaptuple.o] Error 1
gmake[4]: Leaving directory `/usr/local/postgresql-7.1.3/src/backend/access/common'
gmake[3]: *** [common-recursive] Error 2
gmake[3]: Leaving directory `/usr/local/postgresql-7.1.3/src/backend/access'
gmake[2]: *** [access-recursive] Error 2
gmake[2]: Leaving directory `/usr/local/postgresql-7.1.3/src/backend'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/usr/local/postgresql-7.1.3/src'
gmake: *** [all] Error 2
 
 
 
 
If you know how this problem might be fixed, list the solution below:
---------------------------------------------------------------------

Re: unable compile postgresql 7.1.3 on FreeBSD 5.1 ???

От
Tom Lane
Дата:
"sam" <sam@young-net.com.tw> writes:
>   PostgreSQL version (example: PostgreSQL-7.1.3):   PostgreSQL-7.1.3
>   Compiler used (example:  gcc 2.95.2)          :   gcc version 3.2.2 [Free=
> BSD] 20030205 (release)

IIRC, PG 7.1's configure script gets confused because recent gcc
versions put out a multiple-line response to "gcc --version".
It's only expecting one line and it generates an invalid PG_VERSION
string as a result.

You could probably fix the resulting config.h file by hand, but why
bother?  Install a more modern PG instead.  7.1 is ancient history.

            regards, tom lane