Operating System - HP-UX
1832950 Members
2464 Online
110048 Solutions
New Discussion

Building openLDAP on HP UX 11.31 ia64

 
Michael Ryan_1
New Member

Building openLDAP on HP UX 11.31 ia64

Has anyone successfully build openLDAP on HP UX? I am seeking a document with all the changes to be made to openLDAP build environment necessary to successfully build a 64 bit version.

I am having some issues during the build of openLDAP in 64 bit.

My HP UX server is : HP-UX tbird B.11.31 U ia64 2670159169 unlimited-user license

The error i am receiving is during the "make" step....

/usr/bin/ld -b +h libldap_r-2.4.so.3 -o .libs/libldap_r-2.4.so.3.0 .libs/threads.o .libs/rdwr.o .libs/rmutex.o .libs/tpool.o .libs/rq.o .libs/thr_posix.o .libs/thr_cthreads.o .libs/thr_thr.o .libs/thr_lwp.o .libs/thr_nt.o .libs/thr_pth.o .libs/thr_stub.o .libs/thr_debug.o .libs/bind.o .libs/open.o .libs/result.o .libs/error.o .libs/compare.o .libs/search.o .libs/controls.o .libs/messages.o .libs/references.o .libs/extended.o .libs/cyrus.o .libs/modify.o .libs/add.o .libs/modrdn.o .libs/delete.o .libs/abandon.o .libs/sasl.o .libs/sbind.o .libs/unbind.o .libs/cancel.o .libs/filter.o .libs/free.o .libs/sort.o .libs/passwd.o .libs/whoami.o .libs/getdn.o .libs/getentry.o .libs/getattr.o .libs/getvalues.o .libs/addentry.o .libs/request.o .libs/os-ip.o .libs/url.o .libs/pagectrl.o .libs/sortctrl.o .libs/vlvctrl.o .libs/init.o .libs/options.o .libs/print.o .libs/string.o .libs/util-int.o .libs/schema.o .libs/charray.o .libs/tls.o .libs/os-local.o .libs/dnssrv.o .libs/utf-8.o .libs/utf-8-conv.o .libs/turn.o .libs/ppolicy.o .libs/dds.o .libs/txn.o .libs/ldap_sync.o .libs/stctrl.o .libs/assertion.o .libs/version.o -L/opt/hpom/software/openldap-2.4.11/libraries/liblber/.libs ../../libraries/liblber/.libs/liblber.so /usr/lib/hpux32/libsasl2.so -lssl -lcrypto -mthreads -lc
ld: Unrecognized argument: -mthreads
Fatal error.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
5 REPLIES 5
Dennis Handly
Acclaimed Contributor

Re: Building openLDAP on HP UX 11.31 ia64

>... -lcrypto -mthreads -lc
>ld: Unrecognized argument: -mthreads

You need to remove the bogus -mthreads. Was the intention to use -lpthread?
Michael Ryan_1
New Member

Re: Building openLDAP on HP UX 11.31 ia64

The make files are from openLDAP.org. I am trying to build a 64 bit version, since all the binaries i can find are 32 bit and i need 64.

So the -mthreads switch was/is from openLDAP, and i am not sure why they chose that switch.

Is -lpthread the appropriate switch?

At this point, happy to try anything.

Thanks.
Shinji Teragaito_1
Respected Contributor

Re: Building openLDAP on HP UX 11.31 ia64

I have not tried to build OpenLDAP. You should change -mthreads to -mt in all of Makefile which is created after you run the OpenLDAP configure script. Then the problem will be gone.
Michael Ryan_1
New Member

Re: Building openLDAP on HP UX 11.31 ia64

The -lpthread switch worked but the libraries are 32 bit. The -mt switch did not work...it produced errors like the -mthreads switch.
Dennis Handly
Acclaimed Contributor

Re: Building openLDAP on HP UX 11.31 ia64

>The -lpthread switch worked but the libraries are 32 bit.

Then you'll have to port those too. And change your -L and paths to point to the hpux64 versions.

>The -mt switch did not work. it produced errors like the -mthreads switch.

What driver are you using?