Qmail-LDAP
[Top] [All Lists]

Re: Compilation problems in qmail-ldap

To: "Claudio Jeker" <jeker@n-r-g.com>, "QMAIL-LDAP" <qmail-ldap@qmail-ldap.org>
Subject: Re: Compilation problems in qmail-ldap
From: "Leandro" <llattan2002@yahoo.com.ar>
Date: Tue, 12 Dec 2006 16:04:53 -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:References:Subject:Date:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Priority:X-MSMail-Priority:X-Mailer:Disposition-Notification-To:X-MimeOLE; b=R7oNAEeC8RtM4rIwYF9huf5D/NymC/JMbcgrqa7kD/P91K0tIMQ+gNO4I0Tx8KQDdijxI3p8AmyoTGtgCPnHUd0LC5qe97uDhyzonNwCfPKyTXHKp5PS4zGALzZ+fl7I7jiaM1hH4xNkq9o59cbJhwXnC2IdD1WGGwnMSqayq2g= ;
Mailing-list: contact qmail-ldap-help@qmail-ldap.org; run by ezmlm
References: <018901c71de3$1c05eac0$0301120a@jfsecco.com.ar> <20061212120826.GC10181@diehard.n-r-g.com> <036f01c71e05$e5aa1ff0$0301120a@jfsecco.com.ar> <20061212160707.GI10181@diehard.n-r-g.com>
with cc -s in conf-ld ...

TEST 1
# cat Makefile | grep "^LDAPLIBS"
LDAPLIBS=-L/usr/local/lib -lldap -llber

after make setup check ...
# ldd /var/qmail/bin/qmail-ldaplookup
       libldap.so.2 => not found
       liblber.so.2 => not found


TEST 2
# cat Makefile | grep "^LDAPLIBS"
LDAPLIBS=-L/usr/local/lib -lldap -llber -R/usr/local/lib

after make setup check ...
cc: unrecognized option `-R/usr/local/lib'
but compiles ...

ldd same TEST 1


TEST 3
# cat Makefile | grep "^LDAPLIBS"
LDAPLIBS=-L/usr/local/lib -lldap -llber -rpath/usr/local/lib

after make setup check ...
cc: unrecognized option `-rpath/usr/local/lib'
but compiles ...

ldd same TEST 1



# cat Makefile | grep "^LDAPLIBS"
LDAPLIBS=-L/usr/local/lib -lldap -llber -rpath /usr/local/lib

after make setup check ...
cc: unrecognized option `-rpath'
/usr/local/lib: file not recognized: Is a directory
collect2: ld returned 1 exit status
make: *** [qmail-lspawn] Error 1



# cat Makefile | grep "^LDAPLIBS"
LDAPLIBS=-L/usr/local/lib -lldap -llber -rpath/usr/local/lib -R/usr/local/lib

after make setup check ...
cc: unrecognized option `-rpath/usr/local/lib'
cc: unrecognized option `-R/usr/local/lib'
but compiles ...

ldd same TEST 1



I hope you can help me.
Regards.
Leandro.



----- Original Message ----- From: "Claudio Jeker" <jeker@n-r-g.com>
To: "QMAIL-LDAP" <qmail-ldap@qmail-ldap.org>
Sent: Tuesday, December 12, 2006 1:07 PM
Subject: Re: Compilation problems in qmail-ldap


On Tue, Dec 12, 2006 at 12:55:05PM -0300, Leandro wrote:
It didn´t work.
I think perhaps I´ve made a mistake.

Is this correct ?

# cat conf-ld
ld -s

# cat conf-ld.OLD
cc -s


Normaly cc -s is better as cc is smarter with linker options.


# cat Makefile
...
LDAPLIBS=-L/usr/local/lib -lldap -llber
LDAPINCLUDES=-I/usr/local/include
...

Which is correct?
LDAPLIBS=-L/usr/local/lib -lldap -llber
LDAPLIBS=-L/usr/local/lib -lldap -llber -rpath/usr/local/lib
LDAPLIBS=-L/usr/local/lib -lldap -llber -rpath /usr/local/lib
LDAPLIBS=-L/usr/local/lib -lldap -llber -R/usr/local/lib


one of the to last one should probably work. I have no linux box anywhere
near me adnd this will not change so I can't tell you more than to look at
the ld and cc man page. They normaly have sections about this.

--
:wq Claudio

__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! ¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar

<Prev in Thread] Current Thread [Next in Thread>