PTLOADER and LDAP for authorization and ptloader dies

Sebas PRE scalero at pre.ddol.es
Wed Jun 21 03:28:02 EDT 2006


> Am Thursday 15 June 2006 18:36 schrieb Sebas PRE:
>
> Please do not Top-Post.
>
>> Yes, ptloader dies in both.
>>
>> In 2.2.12 I run ptloader with this compile options:
>>
>>    --with-auth=pts --with-pts=ldap --with-ldap=/usr
>>
>> But I obtain the same results with ptloader diyng and in cyrus.log appears
>> the same lines.
>
> Check your libldap against which Cyrus-SASL Version it is compiled. Use ldd
> for that.
>
> # ldd /path/to/libldap.so
>
> I would guess it is compiled against v1. This will not work in the same
> Addressspace as Cyrus-Imapd compiled with Cyrus-SASL v2.
>
> But another chance will be libdb. The Versions in libldap, libsasl and
> Cyrus-Imapd should be equal.
>
> --
> 	Andreas
> ----
> Cyrus Home Page: http://asg.web.cmu.edu/cyrus
> Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
>
>

It is true, my ldap library is compiled compiled against Cyrus-SASL v1.

# ldd -r /usr/lib/libldap.so
     libsasl.so.7 => /usr/lib/libsasl.so.7 (0x004a5000)

Now I install Openldap(2.0.17 and 2.3.24) libreries from de sources in another
directory and I try to recompile Cyrus Imapd (2.2.12 and 2.3.3) and I always
obtain this error:

### Making all in /opt/diskinst/cyrus/cyrus-imapd-2.2.12/ptclient
make[1]: Entering directory `/opt/diskinst/cyrus/cyrus-imapd-2.2.12/ptclient'
gcc -L/usr/lib -Wl,-rpath,/usr/lib -lpthread -o ptloader ptloader.o ldap.o
../imap/mutex_fake.o ../master/service-thread.o  -L/usr/lib 
-Wl,-rpath,/usr/lib
-lpthread -L/u01/app/openldap/2.3/lib  -lldap -llber ../imap/libimap.a
../lib/libcyrus.a ../lib/libcyrus_min.a  -L/usr/lib  -Wl,-rpath,/usr/lib
-lsasl2 -L/usr/lib  -Wl,-rpath,/usr/lib -lsasl2 -lssl -lcrypto   -lfl  
-lresolv
-L/usr/lib  -Wl,-rpath,/usr/lib -ldb-4.1  -lcom_err -lwrap -lnsl
/usr/bin/ld: warning: libcom_err.so.3, needed by /usr/lib/libssl.so, may
conflict with libcom_err.so.2
ldap.o(.text+0x6a4): In function `ptsmodule_connect':
: undefined reference to `ber_pvt_opt_on'
ldap.o(.text+0x739): In function `ptsmodule_connect':
: undefined reference to `ber_pvt_opt_on'
ldap.o(.text+0x18e0): In function `ptsmodule_get_dn':
: undefined reference to `ldap_whoami_s'
collect2: ld returned 1 exit status
make[1]: *** [ptloader] Error 1
make[1]: Leaving directory `/opt/diskinst/cyrus/cyrus-imapd-2.2.12/ptclient'
make: *** [all] Error 1



Thanks a lot...

Sebastián Calero.



Sebastián Calero


More information about the Info-cyrus mailing list