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

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
---------------------------------