[Auth_ldap] Lib doesn't get added during compilation?
Saunders, Aidan [IT]
aidan.saunders at ssmb.com
Fri Feb 16 11:33:22 PST 2001
I had a similar situation, this time on Solaris with auth_ldap 1.4.7
When you have shared libs using other shared libs, things get messy.
To get auth_ldap to compile and link, you need to tell ld where the library
is with -L but that doesn't tell auth_ldap.so where to find libldapssl41.so
at run-time. You can add a run-time search path to auth_ldap.so with -R.
(ie LIBS=-L... -R... -lldapssl41) You can see the effect with
'ldd -s auth_ldap.so'
However... libldapssl41.so itself uses other shared libraries that are part
of the sdk (ie ldd libldapssl41.so can't find libplc3.so, libplds3.so and
libnspr3.so) and the -R doesn't help with that.
To fix all this lot, I used a simple 'LIBS=-L... -lldapssl41' and then
modified apachectl to set LD_LIBRARY_PATH to the sdk directory. All works
From: Dave Carrigan [mailto:dave at rudedog.org]
Sent: Friday, February 16, 2001 6:04 PM
To: Mattias Carlsson
Cc: auth_ldap at rudedog.org
Subject: Re: [Auth_ldap] Lib doesn't get added during compilation?
"Mattias Carlsson" <mattias at unit.liu.se> writes:
> Alright, another try. From the Makefile:
> LIBS="-L/usr/lib -L/usr/ldapsdk/lib -lldapssl41"
> make produces the following line this time:
> auth_ldap_cache_mgr.o -L/usr/lib -L/usr/ldapsdk/lib -lldapssl41
> The problem still remains the same. Suggestions?
Does ldd still report that there is no libldapssl41 in the list of
libraries, or does it report that it is there, but can't be found. It's
probably the latter, in which case you also have to add
"-Wl,-rpath,/usr/ldapsdk/lib" to the list of LIBS.
Dave Carrigan (dave at rudedog.org) | Yow! Spreading peanut butter
UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | reminds me of opera!! I
Seattle, WA, USA | why?
Auth_ldap mailing list
Auth_ldap at rudedog.org
More information about the Auth_ldap