[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Build on HP-UX 11.00?


   If you have HP ANSI C compiler installed, you might want to try that
as well (I tried both before settling with HP C).  Here is how I did
my configure step:

CPPFLAGS="-I/usr/local/include -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.3.1/include" \
LDFLAGS="-L/usr/local/lib -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.3.1/lib" \
LIBS="-lpthread -ldb" \
./configure --prefix=/opt/openldap \
--enable-wrappers \

The above worked for me with gcc too.  Note that I got badly bit in
"make test" by enabling tcpwrappers, until I found in the FAQ-o-matic
that loopback has to be in "hosts.allow".  I wasted a lot of time
puzzling over why "make test" would not work.  I did not see your complaint
below, but then I never tried running slapd in production using the
gcc build.

** Jeff A. Earickson, Ph.D                         PHONE: 207-872-3659
** Senior UNIX Sysadmin, Information Technology    EMAIL: jaearick@colby.edu
** Colby College, 4214 Mayflower Hill,               FAX: 207-872-3555
** Waterville ME, 04901-8842
Protons have Mass?  I didn't know they were Catholic...

On Mon, 6 Nov 2000, Karl Bolingbroke wrote:

> Date: Mon, 6 Nov 2000 10:10:54 -0700
> From: Karl Bolingbroke <karl.bolingbroke@flyingj.com>
> To: openldap-software@OpenLDAP.org
> Subject: Build on HP-UX 11.00?
> Hi all,
> I'm trying to build OpenLDAP 2.0.6 on HP-UX 11.00 with gcc
> 2.95.2.  I get through configure, make, and make test OK,
> but after I install it, all executables fail with the error
> "invalid alignment in a.out".  Since the tests ran OK, I
> tried running slapd out of the build directory, rather than
> the install directory.  Most, but not all, of the
> executables there worked.
> Here's my environment:
> CFLAGS="-O3 -mlinker-opt"
> CPPFLAGS="-I/usr/local/hppa2.0n-hp-hpux11.00/include -I/usr/
> local/include -I/usr/local/BerkeleyDB.3.1/include -I/usr/inc
> lude"
> LPATH=/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.2:/u
> sr/local/lib:/usr/local/BerkeleyDB.3.1/lib:/usr/lib
> LDOPTS="-ldb -lpthread +n -s -G -O"
> CC=gcc
> MAKE=gmake
> Does anyone have any ideas?  Do I need to feed a different
> flag to the compiler or linker (it uses HP's linker, by the
> way, not GNU's)?  Could it be a shared vs static problem?
> Karl
> ---------------------------------
> Karl Bolingbroke
> Flying J Inc.
> 435-695-1233
> karl.bolingbroke@flyingj.com
> ---------------------------------