Skip site navigation (1) Skip section navigation (2)

HP Unix 11.00 Compiler error.

From: Chris Bowlby <excalibur(at)hub(dot)org>
To: <pgsql-general(at)postgresql(dot)org>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: HP Unix 11.00 Compiler error.
Date: 2001-05-24 16:12:36
Message-ID: Pine.BSF.4.33.0105241211050.43153-100000@hub.org (view raw or flat)
Thread:
Lists: pgsql-generalpgsql-hackers
I have a friend of mine who sent me this... (I'm acting as a relay
here...).

I am trying to compile PostgreSQL 7.1.1 under HP-UX 11.00
(HP-UX dwhp2 B.11.00 U 9000/800 1195951537 unlimited-user license)
with the C++ library and OpenSSL but having little success.
I've tried both the HP-UX aCC++ and GCC 2.95 compilers.
Each different attempt brings out its own set of errors and
weirdness.

Here's where I stand:

Cannot compile PostgreSQL, C++ library (--with-CXX), and
OpenSSL (--with-openssl=/opt/openssl) with HP's aCC
(latest version). Configure hangs when testing for SSL library.
The configure command line looks like this.

./configure
--with-includes="/opt/zlib/include:/opt/openssl/include/openssl"
\
        --with-libraries="/opt/zlib/lib" \
        --with-openssl=/opt/openssl \
        --with-CXX
The /opt/openssl/include/openssl line is needed because the
HP-UX porting archive's layout of OpenSSL puts the .h files
in /opt/openssl/include/openssl/, so specifying
--with-openssl=/opt/openssl by itself isn't sufficient to
get all the paths. The configure script errors out looking
for _eprintf(), which apparently is a now deprecated GCC
attempt at a compatibility layer. This tells me I really
can't use the binary build made by the HP-UX porting archive
folks.

Compile PostgreSQL and C++ library (--with-CXX) with HP's
aCC (latest version). Works fine (but still doesn't get me
to OpenSSL).

Tried also the HP developer program support desk's version
of GCC which installs in /usr/local. Configure runs fine
but HP's ld breaks on OpenSSL's libssl .
 /usr/ccs/bin/ld: DP relative code in file
  /opt/openssl/lib/libssl.a(s23_meth.o) - shared library
  must be position independent.  Use +z or +Z to recompile.
This tells me I still need to recompile OpenSSL from source
because the archive centre's packaging job isn't quite all
there yet (or there's a compiler conflict).

Cannot build OpenSSL from source because Perl-5.6.1 (guess
from where) is also broken (it can't understand "use strict"
because the library is missing the strict.pm module, among
others.

Cannot compile PostgreSQL and C++ library (--with-CXX) with GCC.
Can't find <string> class in STL. Suspect packaging
job done by HP-UX porting archive: it moves GCC from
/usr/local to /opt, and a few things didn't make the
trip smoothly. The other version

Compile PostgreSQL by itself with GCC. Works fine.

I know that the problem is not strictly an issue with PostgreSQL,
but any expertise you can bring to the problem is welcome.
If you need to actually get on the system, we'll get you a
NDA and an ssh login.

Any ideas?


 Chris Bowlby,
 -----------------------------------------------------
 Web Developer @ Hub.org.
 excalibur(at)hub(dot)org
 www.hub.org
 1-902-542-3657
 -----------------------------------------------------


Responses

pgsql-hackers by date

Next:From: The Hermit HackerDate: 2001-05-24 16:44:10
Subject: Re: Not released yet, but could someone take a quick peak ...
Previous:From: Bruce MomjianDate: 2001-05-24 14:38:18
Subject: Re: Smaller access privilege changes

pgsql-general by date

Next:From: mikeDate: 2001-05-24 16:13:29
Subject: set datestyle
Previous:From: Tad NaworalDate: 2001-05-24 16:06:58
Subject: having problems with a simple query

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group