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>, "R.Knotek" <robert.knotek@netcentrum.sk>
Subject: Re: Compilation problems in qmail-ldap
From: "Leandro" <llattan2002@yahoo.com.ar>
Date: Wed, 13 Dec 2006 10:46:55 -0300
Delivered-to: sp-com-lists@consult.net
Delivered-to: qmail-ldap-list@securepoint.com
Delivered-to: mailing list qmail-ldap@qmail-ldap.org
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:X-MimeOLE; b=mVIHv1o7ZxrqXZ7hc7xzDpPRFwLgOHJnLptuuyoh+EUcP/Mn6khTK/OuSUjT3yVTNay4aUPvCfjm93SZU6lF85Xdul8svIDVGuku/FMG3NsLwUkCfQDinCqVmeWwFEPMoPW2RucCQRQ1ZPDMCP5vg7zWn+TH0zvxshIwlWK0zbg= ;
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> <058f01c71e20$69debbe0$0301120a@jfsecco.com.ar> <op.tkhp7oxlkp52gi@linux.netcentrum.sk>
with
   -Xlinker -rpath -Xlinker /usr/local/lib
it works !!!.

Thank you very very much.
Best Regards.
Leandro.


----- Original Message ----- From: "R.Knotek" <robert.knotek@netcentrum.sk> To: "Leandro" <llattan2002@yahoo.com.ar>; "Claudio Jeker" <jeker@n-r-g.com>; "QMAIL-LDAP" <qmail-ldap@qmail-ldap.org>
Sent: Wednesday, December 13, 2006 6:05 AM
Subject: Re: Compilation problems in qmail-ldap



try this

-Xlinker -rpath -Xlinker /usr/local/lib
or
-Xlinker -R -Xlinker /usr/local/lib

R.

On Tue, 12 Dec 2006 20:04:53 +0100, Leandro <llattan2002@yahoo.com.ar> wrote:

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




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

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