Qmail-LDAP
[Top] [All Lists]

Re: Compilation problems in qmail-ldap

To: Leandro <llattan2002@yahoo.com.ar>, "Claudio Jeker" <jeker@n-r-g.com>, QMAIL-LDAP <qmail-ldap@qmail-ldap.org>
Subject: Re: Compilation problems in qmail-ldap
From: "R.Knotek" <robert.knotek@netcentrum.sk>
Date: Wed, 13 Dec 2006 10:05:38 +0100
Delivered-to: sp-com-lists@consult.net
Delivered-to: qmail-ldap-list@securepoint.com
Delivered-to: mailing list qmail-ldap@qmail-ldap.org
In-reply-to: <058f01c71e20$69debbe0$0301120a@jfsecco.com.ar>
Mailing-list: contact qmail-ldap-help@qmail-ldap.org; run by ezmlm
Organization: NetCentrum SK
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>
User-agent: Opera Mail/9.02 (Linux)
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
>



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