Qmail-LDAP
[Top] [All Lists]

Compilation problems

To: "QMAIL-LDAP" <qmail-ldap@qmail-ldap.org>
Subject: Compilation problems
From: "Leandro" <llattan2002@yahoo.com.ar>
Date: Mon, 11 Dec 2006 09:38:59 -0300
Delivered-to: sp-com-lists@consult.net
Delivered-to: qmail-ldap-list@securepoint.com
Delivered-to: mailing list qmail-ldap@qmail-ldap.org
Disposition-notification-to: "Leandro" <llattan2002@yahoo.com.ar>
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.ar; h=Received:X-YMail-OSG:Message-ID:From:To:Subject:Date:MIME-Version:Content-Type:X-Priority:X-MSMail-Priority:X-Mailer:Disposition-Notification-To:X-MimeOLE; b=A+SY4ja0SsEs329uH69R+RfurhEPXWphvDVFlsW0Uu76Vbx0BvNhiwmfdKtryLZFA6FdUZYfAEQAV01+fBKVvFOUyepkI6PKByHnIxKc5mbV7SKX4tcydVEEjjRMzGEfZ+hva/Owq3Ai+ONWmDQqJGGPvXkP016th30pPDlU0/g= ;
Mailing-list: contact qmail-ldap-help@qmail-ldap.org; run by ezmlm
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.
 
Thanks in advance.
Leandro (Argentina).
 
<Prev in Thread] Current Thread [Next in Thread>
  • Compilation problems, Leandro <=