Odd compile failure on HPUX 10.20

From: "Christensen, David A(dot) (CHC)" <DChristensen(at)chc(dot)gov(dot)mb(dot)ca>
To: "'pgsql-ports(at)postgresql(dot)org'" <pgsql-ports(at)postgresql(dot)org>
Subject: Odd compile failure on HPUX 10.20
Date: 1999-07-06 21:05:07
Message-ID: BF72E49A2EADD1118E6C00A0C9979EB1026BEA2F@wpg001ex1.gov.mb.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-ports

============================================================================
POSTGRESQL BUG REPORT TEMPLATE
============================================================================

Your name : David Christensen
Your email address : DChristens(at)gov(dot)mb(dot)ca

System Configuration
---------------------
Architecture (example: Intel Pentium) : PA-RISC (HP-9000)

Operating System (example: Linux 2.0.26 ELF) : HPUX 10.20

PostgreSQL version (example: PostgreSQL-6.5) : PostgreSQL-6.5

Compiler used (example: gcc 2.8.0) : gcc 2.7.2

Please enter a FULL description of your problem:
------------------------------------------------

PostgreSQL 6.5 fails to compile:

gmake lexverify
gmake[1]: Entering directory `/u1/pgsql/postgresql-6.5/src'
gmake -C lextest all
gmake[2]: Entering directory `/u1/pgsql/postgresql-6.5/src/lextest'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory `/u1/pgsql/postgresql-6.5/src/lextest'
gmake[1]: Leaving directory `/u1/pgsql/postgresql-6.5/src'
gmake -C utils all
gmake[1]: Entering directory `/u1/pgsql/postgresql-6.5/src/utils'
gcc -I../include -I../backend -O2 -Wall -Wmissing-prototypes -c
version.c -o
version.o
In file included from /usr/include/sys/stat.h:25,
from version.c:23:
/usr/include/sys/_stat_body.h:22: parse error before `blkcnt_t'
/usr/include/sys/_stat_body.h:22: warning: no semicolon at end of struct or
union
/usr/include/sys/_stat_body.h:23: parse error before `:'
/usr/include/sys/_stat_body.h:24: parse error before `:'
/usr/include/sys/_stat_body.h:25: parse error before `:'
/usr/include/sys/_stat_body.h:52: parse error before `st_spare4'
/usr/include/sys/_stat_body.h:52: warning: data definition has no type or
storage class
/usr/include/sys/_stat_body.h:53: parse error before `}'

-----------------------
The configure flags I used were: --prefix=/u1/postgresql
--with-template=hpux \
--with-perl --with-odbc --with-CC=gcc --without-CXX

I've modified Makefile.hpux as follows:
ifeq ($(HPUX_MAJOR), 10)
LDFLAGS:= -Wl,-E,+b$(LIBDIR) -lc $(LDFLAGS)
endif

...rather than....
LDFLAGS:= -Wl,-E -lc $(LDFLAGS)

I've created a link from src/template/hpux to src/template/hpux_gcc

Also: using flex 2.5, GNU make 3.77

I've been scouring the archives here, to no avail :-(
I'm probably (hopefully?) missing something bleeding obvious....

Thanks

---------------------
David Christensen
Technical Consultant
Public Library Services
Manitoba Culture Heritage & Citizenship

mailto:DChristens(at)gov(dot)mb(dot)ca
Voice: (204) 726-6870
Fax : (204) 726-6868

Browse pgsql-ports by date

  From Date Subject
Next Message Bruce Momjian 1999-07-07 00:31:16 Re: [HACKERS] Re: [PORTS] vacuum takes too long
Previous Message Hub.Org News Admin 1999-07-06 17:26:31