On Tue, Dec 12, 2006 at 08:46:04AM -0300, Leandro wrote:
> I have compilation problems.
> I´ve patched qmail with qmail-ldap 2006.02.01 patch.
>
> I´ve edited Makefile with:
> LDAPLIBS=-L/usr/local/lib -lldap -llber
> LDAPINCLUDES=-I/usr/local/include
> (where ldap libraries and includes live)
>
>
> # ls -al /usr/local/lib/libl*
> -rw-r--r-- 1 root root 225654 Dec 5 18:55 /usr/local/lib/liblber.a
> -rw-r--r-- 1 root root 685 Dec 5 18:55 /usr/local/lib/liblber.la
> lrwxrwxrwx 1 root root 18 Dec 5 18:55 /usr/local/lib/liblber.so ->
> liblber.so.2.0.130
> lrwxrwxrwx 1 root root 18 Dec 5 18:55 /usr/local/lib/liblber.so.2 ->
> liblber.so.2.0.130
> -rw-r--r-- 1 root root 122396 Dec 5 18:55 /usr/local/lib/liblber.so.2.0.130
> -rw-r--r-- 1 root root 1285470 Dec 5 18:55 /usr/local/lib/libldap.a
> -rw-r--r-- 1 root root 748 Dec 5 18:55 /usr/local/lib/libldap.la
> -rw-r--r-- 1 root root 1386600 Dec 5 18:55 /usr/local/lib/libldap_r.a
> -rw-r--r-- 1 root root 762 Dec 5 18:55 /usr/local/lib/libldap_r.la
> lrwxrwxrwx 1 root root 20 Dec 5 18:55 /usr/local/lib/libldap_r.so ->
> libldap_r.so.2.0.130
> lrwxrwxrwx 1 root root 20 Dec 5 18:55 /usr/local/lib/libldap_r.so.2 ->
> libldap_r.so.2.0.130
> -rw-r--r-- 1 root root 646990 Dec 5 18:55
> /usr/local/lib/libldap_r.so.2.0.130
> lrwxrwxrwx 1 root root 18 Dec 5 18:55 /usr/local/lib/libldap.so ->
> libldap.so.2.0.130
> lrwxrwxrwx 1 root root 18 Dec 5 18:55 /usr/local/lib/libldap.so.2 ->
> libldap.so.2.0.130
> -rw-r--r-- 1 root root 602226 Dec 5 18:55 /usr/local/lib/libldap.so.2.0.130
>
>
> # ls -al /usr/local/include/l*
> -rw-r--r-- 1 root root 13323 Dec 5 18:55 /usr/local/include/lber.h
> -rw-r--r-- 1 root root 1473 Dec 5 18:55 /usr/local/include/lber_types.h
> -rw-r--r-- 1 root root 9136 Dec 5 18:55 /usr/local/include/ldap_cdefs.h
> -rw-r--r-- 1 root root 2056 Dec 5 18:55 /usr/local/include/ldap_features.h
> -rw-r--r-- 1 root root 39901 Dec 5 18:55 /usr/local/include/ldap.h
> -rw-r--r-- 1 root root 9462 Dec 5 18:55 /usr/local/include/ldap_schema.h
> -rw-r--r-- 1 root root 3549 Dec 5 18:55 /usr/local/include/ldap_utf8.h
>
>
> but after "make setup check", many /var/qmail/bin binaries haven´t found the
> libraries
>
> # ldd /var/qmail/bin/qmail-ldaplookup
> libldap.so.2 => not found
> liblber.so.2 => not found
>
> and then qmail logs errors.
>
>
> I don´t want to define LDAPLIBS when I start qmail because some programs
> (i.e. qmail-scanner) have enviroment variables problems.
> I don´t want to add the path in /etc/ld.so.conf because some programs don´t
> run (i.e. apache-httpd)
> Both solutions resolve my problem, but I want to resolve it in compilation
> time.
>
> If I edit conf-ld with ld -rpath ..., it doesn´t compile.
>
>
> My system:
> # uname -a
> Linux brutus 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:29:47 EST 2005 x86_64 x86_64
> x86_64 GNU/Linux
> OS: Redhat 4 ES x86_64
>
> openldap version is 2.1.30. LDAP works ok.
> (I don´t use openldap 2.2.13 version which comes with distribution because
> another applications compability and it´s uninstalled).
>
>
> I hope you can help me.
>
Fix your system. Having programs that no longer work because of changed
/etc/ld.so.conf will kill you sooner or later anyway.
On the otherhand you could try to use LD_LIBRARY_PATH, LD_RUN_PATH or
-rpath but only added it to LDAPLIBS in the Makefile.
--
:wq Claudio
|