Odd compile failure on HPUX 10.20 - Mailing list pgsql-ports

From Christensen, David A. (CHC)
Subject Odd compile failure on HPUX 10.20
Date
Msg-id BF72E49A2EADD1118E6C00A0C9979EB1026BEA2F@wpg001ex1.gov.mb.ca
Whole thread Raw
List pgsql-ports
============================================================================
                        POSTGRESQL BUG REPORT TEMPLATE
============================================================================


Your name               :       David Christensen
Your email address      :       DChristens@gov.mb.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@gov.mb.ca
Voice: (204) 726-6870
Fax  : (204) 726-6868


pgsql-ports by date:

Previous
From: Jason Lam
Date:
Subject: pg 6.5 installation success
Next
From: "Hub.Org News Admin"
Date:
Subject: ...