From: Bousquet Francois (Francois.Bousquet@cgi.ca)
Date: Thu Aug 12 2004 - 14:32:08 EDT
I have a library : /usr/lib/security/pam_ldap.so.1
This library is linked to other (libssl, libcrypto)
When I compiled it, I used CPPFLAGS, LDFLAGS and LD_LIBRARY_PATH to make it
compile succesfully. Now, the problem I am facing is that when I do a "ldd"
command on it here the output :
bash-2.03$ ldd pam_ldap.so
libc.so.1 => /usr/lib/libc.so.1
libldap-2.2.so.7 => /soft/openldap/lib/libldap-2.2.so.7
liblber-2.2.so.7 => /soft/openldap/lib/liblber-2.2.so.7
libnsl.so.1 => /usr/lib/libnsl.so.1
libcrypt_i.so.1 => /usr/lib/libcrypt_i.so.1
libresolv.so.2 => /usr/lib/libresolv.so.2
libpam.so.1 => /usr/lib/libpam.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libgen.so.1 => /usr/lib/libgen.so.1
libsocket.so.1 => /usr/lib/libsocket.so.1
libssl.so.0.9.7 => (file not found)
libcrypto.so.0.9.7 => (file not found)
libmp.so.2 => /usr/lib/libmp.so.2
/usr/platform/SUNW,Ultra-60/lib/libc_psr.so.1
You will notive that it can't found libssl and libcrypto because they are in
/usr/local/ssl/lib not /usr/lib.
If I set LD_LIBRARY_PATH with /usr/local/ssl/lib "ldd" will find all
libraries.
I am currently having problem making pam_ldap working and I suppose the
problem is coming from the non-presence of a LD_LIBRARY_PATH correctly set.
There is no /etc/ld.so.conf in Solaris like Linux, how can I told the kernel
to lookup for particular libraries ?
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:29:16 EDT