could not locate Cyrus SASL when compiling Openldap

From: The Shell (samwun at hgcbroadband dot com)
Date: Sat Jun 05 2004 - 05:26:28 EDT

  • Next message: liuli- at 263 dot net: "(no subject)"

    Dear all,

    No matter what I set with ldconfig or use setenv LD_LIBRARY_PATH
    /usr/local/lib/sasl2, I still get the same error during cofiguratoin of
    openLdap 2.2.6.

    the error is:
    checking for sasl/sasl.h... yes
    checking for sasl.h... no
    checking for sasl_client_init in -lsasl2... no
    checking for sasl_client_init in -lsasl... no
    configure: error: Could not locate Cyrus SASL

    The error log in the config.log file is:
    ...
    configure:20736: checking for sasl/sasl.h
    configure:20746: cc -E conftest.c >/dev/null 2>conftest.out
    configure:20736: checking for sasl.h
    configure:20746: cc -E conftest.c >/dev/null 2>conftest.out
    configure:20742:18: sasl.h: No such file or directory
    configure: failed program was:
    #line 20741 "configure"
    #include "confdefs.h"
    #include <sasl.h>
    configure:20775: checking for sasl_client_init in -lsasl2
    configure:20794: cc -o conftest -g -O2 conftest.c -lsasl2 1>&5
    /usr/bin/ld: cannot find -lsasl2
    configure: failed program was:
    ...

    I have tried ldconfig -m /usr/local/lib/sasl2
    and setenv LD_LIBRARY_PATH /usr/local/lib/sasl2 before executing
    ./configure.

    The configure commandline is:
    ./configure --prefix=/usr/local/encap/openldap-2.2.11
    --localstatedir=/var/openldap --sysconfdir=/usr/local/etc --with-cyrus-sasl

    a list of lib files in the directory /usr/local/lib/sasl2 is:
    # ls -l /usr/local/lib/sasl2/
    total 762
    drwxr-xr-x 2 root wheel 1024 Jun 5 16:49 ./
    drwxr-xr-x 5 root wheel 2048 Jun 5 16:49 ../
    -rwxr-xr-x 1 root wheel 711 Jun 5 16:49 libanonymous.la*
    lrwxr-xr-x 1 root wheel 17 Jun 5 16:49 libanonymous.so@ ->
    libanonymous.so.2
    -rwxr-xr-x 1 root wheel 74219 Jun 5 16:49 libanonymous.so.2*
    -rwxr-xr-x 1 root wheel 699 Jun 5 16:49 libcrammd5.la*
    lrwxr-xr-x 1 root wheel 15 Jun 5 16:49 libcrammd5.so@ ->
    libcrammd5.so.2
    -rwxr-xr-x 1 root wheel 79485 Jun 5 16:49 libcrammd5.so.2*
    -rwxr-xr-x 1 root wheel 720 Jun 5 16:49 libdigestmd5.la*
    lrwxr-xr-x 1 root wheel 17 Jun 5 16:49 libdigestmd5.so@ ->
    libdigestmd5.so.2
    -rwxr-xr-x 1 root wheel 124371 Jun 5 16:49 libdigestmd5.so.2*
    -rwxr-xr-x 1 root wheel 763 Jun 5 16:49 libgssapiv2.la*
    lrwxr-xr-x 1 root wheel 16 Jun 5 16:49 libgssapiv2.so@ ->
    libgssapiv2.so.2
    -rwxr-xr-x 1 root wheel 90111 Jun 5 16:49 libgssapiv2.so.2*
    -rwxr-xr-x 1 root wheel 695 Jun 5 16:49 liblogin.la*
    lrwxr-xr-x 1 root wheel 13 Jun 5 16:49 liblogin.so@ -> liblogin.so.2
    -rwxr-xr-x 1 root wheel 75354 Jun 5 16:49 liblogin.so.2*
    -rwxr-xr-x 1 root wheel 691 Jun 5 16:49 libotp.la*
    lrwxr-xr-x 1 root wheel 11 Jun 5 16:49 libotp.so@ -> libotp.so.2
    -rwxr-xr-x 1 root wheel 98718 Jun 5 16:49 libotp.so.2*
    -rwxr-xr-x 1 root wheel 695 Jun 5 16:49 libplain.la*
    lrwxr-xr-x 1 root wheel 13 Jun 5 16:49 libplain.so@ -> libplain.so.2
    -rwxr-xr-x 1 root wheel 74720 Jun 5 16:49 libplain.so.2*
    -rwxr-xr-x 1 root wheel 702 Jun 5 16:49 libsasldb.la*
    lrwxr-xr-x 1 root wheel 14 Jun 5 16:49 libsasldb.so@ ->
    libsasldb.so.2
    -rwxr-xr-x 1 root wheel 135315 Jun 5 16:49 libsasldb.so.2*

    What might be the problem of fixing this problem when buidling Openldap
    with sasl support?

    thanks
    Sam


  • Next message: liuli- at 263 dot net: "(no subject)"





    Hosted Email Solutions

    Invaluement Anti-Spam DNSBLs



    Powered By FreeBSD   Powered By FreeBSD