HP-UX 11 + GCC + --with-CXX = pain

From: "Louis Bertrand" <louis(dot)bertrand(at)datawire(dot)net>
To: <pgsql-ports(at)postgresql(dot)org>
Subject: HP-UX 11 + GCC + --with-CXX = pain
Date: 2001-05-09 01:43:39
Message-ID: IHEHJDMEFKBJOCNNCPPLMENBCAAA.louis.bertrand@datawire.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-ports

Hello,

I'm trying to build PostgreSQL 7.1.1 on HP-UX 11 (HPPA2) and
I'm having a miserable time.

Plan A: use HP's C++ compiler and GNU Make
For some reason, I can't seem to find the STL header for the
string class. I'm not sure it's installed correctly so I will
check with HP in the morning...

Plan B: Use GCC from the HP-UX porting archive (hpux.ee.ualberta.ca).
No luck. The configure script goes into the weeds when it tries to
discover how to invoke the C++ preprocessor (it does c++ -E) but some
name collisions seem to confuse it (see below).

Any hints?

Thanks
--Louis

--
Louis Bertrand
Datawire Communication Networks Inc. http://www.datawire.net/

(416) 989-7250 Cell
(416) 798-2226 x 165 (Office)
louis(dot)bertrand(at)datawire(dot)net

Fragment from config.log:
-------------------------
configure:2423: checking how to run the C++ preprocessor
configure:2441: c++ -E conftest.C >/dev/null 2>conftest.out
In file included from /usr/include/pwd.h:99,
from
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/stdlib.h:352,
from configure:2437:
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/stdio.h:30:
warning: `__va__list' redefined
/usr/include/pwd.h:27: warning: this is the location of the previous
definition
In file included from
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/stdlib.h:356,
from configure:2437:
/usr/include/errno.h:26: warning: `__va__list' redefined
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/stdio.h:30:
warning: this is the location of the previous definition
configure: failed program was:
#line 2436 "configure"
#include "confdefs.h"
#include <stdlib.h>
configure:2476: checking for string
configure:2486: /lib/cpp conftest.C >/dev/null 2>conftest.out
cpp: "configure", line 2482: error 4036: Can't open include file 'string'.
configure: failed program was:
#line 2481 "configure"
#include "confdefs.h"
#include <string>
configure:2513: checking for class string in <string.h>
configure:2528: c++ -c -O2 conftest.C 1>&5
In file included from configure:2520:
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/stdlib.h:28:
warning: `__va__list' redefined
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/stdio.h:30:
warning: this is the location of the previous definition
configure: In function `int main()':

Responses

Browse pgsql-ports by date

  From Date Subject
Next Message Bruce Momjian 2001-05-09 02:49:49 Re: Quick question
Previous Message Jae-Woong Hwnag 2001-05-08 06:08:51 cygwin + postgres 7.1 + tcl support