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
|