Обсуждение: Compiling PG 7.0.3 undex HP-UX 10.20

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

Compiling PG 7.0.3 undex HP-UX 10.20

От
Antonio Sindona
Дата:
Hi,
I'm trying to compile Postgres under HP-UX after having installed GCC 2.95 and
GMake.

After deleting config.cache I run succesfully configure.

When I start to compile I get the following message and the compilation stops:

root@ipa9h06:/mnt06/users/upsdev/postgres/src >gmake
gmake -C utils all
gmake[1]: Entering directory `/mnt06/users/upsdev/postgresql-7.0.3/src/utils'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/mnt06/users/upsdev/postgresql-7.0.3/src/utils'
gmake -C backend all
gmake[1]: Entering directory
`/mnt06/users/upsdev/postgresql-7.0.3/src/backend'
gmake -C access all
gmake[2]: Entering directory
`/mnt06/users/upsdev/postgresql-7.0.3/src/backend/a
ccess'
gmake -C common  SUBSYS.o
gmake[3]: Entering directory
`/mnt06/users/upsdev/postgresql-7.0.3/src/backend/a
ccess/common'
cc -I../../../include -I../../../backend   -Wl,-E -Ae  -I../..   -c -o
heaptuple
.o heaptuple.c
cc: "/usr/include/math.h", line 303: error 1000: Unexpected symbol: ";".
cc: "heaptuple.c", line 27: error 1000: Unexpected symbol: "=".
cc: "heaptuple.c", line 35: error 1000: Unexpected symbol: "}".
cc: error 2017: Cannot recover from earlier errors, terminating.
gmake[3]: *** [heaptuple.o] Error 1
gmake[3]: Leaving directory
`/mnt06/users/upsdev/postgresql-7.0.3/src/backend/ac
cess/common'
gmake[2]: *** [submake] Error 2
gmake[2]: Leaving directory
`/mnt06/users/upsdev/postgresql-7.0.3/src/backend/ac
cess'
gmake[1]: *** [access.dir] Error 2
gmake[1]: Leaving directory `/mnt06/users/upsdev/postgresql-7.0.3/src/backend'
gmake: *** [all] Error 2

This are info about my system

root@ipa9h06:/mnt06/users/upsdev/postgres/src >uname -a
HP-UX ipa9h06 B.10.20 A 9000/847 417384292 two-user license
root@ipa9h06:/mnt06/users/upsdev/postgres/src >gcc --version
2.95.2
root@ipa9h06:/mnt06/users/upsdev/postgres/src >gmake --version
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for hppa1.1-hp-hpux10.20

Any idea to get a compiling version (or at least having precompiled binaries?)
Thanks and ... happy Easter!

Antonio Sindona

-------------------------------------------------------------
Italtel S.p.a.
PA-SI-PROG
SS113 Località Bivio Foresta
90044 Carini (PA) Italy
Dr. Antonio Sindona
Tel. 091/8615684
Fax. 091/8615445
EMail Antonio.Sindona@italtel.it

Re: Compiling PG 7.0.3 undex HP-UX 10.20

От
Tom Lane
Дата:
Antonio Sindona <Antonio.Sindona@italtel.it> writes:
> I'm trying to compile Postgres under HP-UX after having installed GCC 2.95 and
> GMake.

It looks like configure has decided to try to use cc, not gcc, which
will not work too well unless you have HP's full ANSI C compiler.
The K&R C they give you for free doesn't cut it.

IIRC, in 7.0.* you must explicitly specify --with-template=hpux_gcc
to configure to get it to use gcc on HP.  (In 7.1, gcc is automatically
preferred if installed.)

            regards, tom lane