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

Re: OpenLDAP 2.2.13, 2.2.15 communication failure (ITS#3279)



The AIX linker has always been rather quirky, compared to traditional 
Unix linkers. None of the info you've provided actually shows why the 
static binary is failing though. Run ldapsearch with "-d 1" to get a 
debug trace and post that here.

mehall@us.ibm.com wrote:

> Full_Name: Mark Hall
> Version: 2.2.13, 2.2.15
> OS: AIX 5.1.0.0
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (68.75.147.81)

> $ ./ldapsearch -v -h bluepages.ibm.com -b "ou=bluepages,o=ibm.com" -s sub
> mail=mehall@us.ibm.com
> ldap_initialize( ldap://bluepages.ibm.com )
> ldap_bind: Can't contact LDAP server (-1)

> [I've tried it with and without. without the --enable-static/--disable-shared
> combination, and here's what fails]
> $ ./ldapsearch -h bluepages.ibm.com
> exec(): 0509-036 Cannot load program ./ldapsearch because of the following
> errors:
>         0509-022 Cannot load module
> ../../libraries/libldap/.libs/libldap.a(libldap-2.2.so.7).
>         0509-150   Dependent module /usr/lib/liblber.a(liblber-2.2.so.7) could
> not be loaded.
>         0509-152   Member liblber-2.2.so.7 is not found in archive 
> 
> This is of course a known problem, hence while I'm compiling it statically. 

Yes. It requires a significant amount of libtool hacking to make a 
dynamic build work on AIX. We've done this for Symas' Connexitor 
packaged binaries. Unfortunately the libtool project is not interested 
in our patches for libtool 1.4.3, and we're not in a position to migrate 
OpenLDAP to the current (libtool 1.5.8) libtool version.

> I have to have this functioning in order to make my Apache server authenticate
> to the LDAP directory.  I've tried 2.2.13, 2.2.15, 2.0.21, and I can't seem to
> get any of these to work properly.

> I have been able to get 2.1.30 to compile and install correctly with the same
> configure options, and no other changes to the box.

Since the problems with dynamic building on AIX are not actually related 
to the OpenLDAP core code, I'm ignoring this portion of this bug report. 
It really is just a matter of specifying the right linker flags, and 
that just requires thoroughly reading the AIX linker manual. If you 
don't have competent AIX programmers available to help you here, Symas 
is always available for hire.
-- 
   -- Howard Chu
   Chief Architect, Symas Corp.       Director, Highland Sun
   http://www.symas.com               http://highlandsun.com/hyc
   Symas: Premier OpenSource Development and Support