On Wed, Apr 25, 2001 at 11:09:16PM +0300, Mike Jackson wrote:
> Hi,
> I knew I would run into this problem sooner or later. I have just
> upgraded my test server to Mandrake 8.0 and guess what? It has
> pre-installed shared ldap libs. I really don't want to mess with them if
> I don't have to because it might break alot of other things like
> pam-ldap, nss-ldap, auth-ldap, etc... All other things I use for
> testing. So how do I write this line in the Makefile to make it compile
> against these shared ldap libs?
>
> LDAPLIBS=-L/usr/lib -lldap -llber
>
> This is the output from my system:
>
> [root@herkkusieni lib]# ldd libldap.so.1
> libc.so.6 => /lib/libc.so.6 (0x4002a000)
> /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x2aaaa000)
>
> [root@herkkusieni lib]# ldd liblber.so.1
> libc.so.6 => /lib/libc.so.6 (0x4001b000)
> /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x2aaaa000)
>
> Are shared libs considered a bad thing or what? Is there a way to make
> this work without ripping the system to pieces?
>
If used correctly they should be no problem. Have a look at the section in
www.lifewithqmail.org/ldap. If the libs are in a standard lib directory
(/lib or /usr/lib) ld.so will find them without problems.
Shared libs are normaly nothing bad but you need to know what you are
doing (updating shared libs can be a pain).
--
later
Claudio
mailto:[EMAIL PROTECTED]