"libsasl2 without working sasl_checkapop" problem with configure returns in imapd 2.1.9

Gordon Marler gmarler at gmarler.com
Tue Oct 15 09:51:53 EDT 2002


I've read through the archives, and it looks like the solutions
suggested for this particular problem in imapd 2.1.4 don't work for
2.1.9.  Since my skills with automake, libtool, et al are very poor, I'm
coming to this list for help.

First, some background information:
I don't use /usr/local (so if we solve this, it may help all those other
poor souls that would prefer to ignore anything that exists in
/usr/local, unless you explicitly ask to use /usr/local).  Everything is
installed at /lb/all/<product name>/<version>/.  Thus, I have the
following tools installed before I begin this exercise:
Sleepycat Berkeley DB 4.1.24 (shared and static libs):
/lb/all/sleepycat/4.1.24/{bin,docs,include,lib}
OpenSSL 0.9.6g:
/lb/all/openssl/0.9.6g-gcc-32bit/ssl/{bin,include,lib,...}
Cyrus SASL lib 2.1.8 (static libs only):
/lb/all/libsasl/2.1.8/{include,lib,...}

I'm compiling with gcc v3.2 on Solaris 8, using GNU make 3.79.1.


With that said, here's my input to configure (the CPPFLAGS and LDFLAGS
are one long line each), which will install imapd in
/lb/all/imapd/2.1.9/:

CPPFLAGS="-I/lb/all/openssl/0.9.6g-gcc-32bit/ssl/include
-I/lb/all/sleepycat/4.1.24/include -I/lb/all/libsasl/2.1.8/include
-I/lb/include" \
LDFLAGS="-L/lb/all/openssl/0.9.6g-gcc-32bit/ssl/lib
-L/lb/all/sleepycat/4.1.24/lib -R/lb/all/sleepycat/4.1.24/lib
-L/lb/all/libsasl/2.1.8/lib -R/lb/all/libsasl/2.1.8/lib -L/lb/lib" \
./configure --with-cyrus-prefix=/lb/all/imapd/2.1.9 \
            --with-cyrus-user=cyrus2 --with-cyrus-group=cyrus2 \
            --with-dbdir=/lb/all/sleepycat/4.1.24   \
            --with-auth=unix                        \
            --with-openssl=/lb/all/openssl/0.9.6g-gcc-32bit/ssl \
            --with-staticsasl=/lb/all/libsasl/2.1.8

And here's the error configure eventually generates:
...
checking for prop_get in -lsasl2... yes
checking for sasl_checkapop in -lsasl2... no
configure: error: libsasl2 without working sasl_checkapop.  Cannot
continue.

And here's the contents of config.log:
...
configure:5262: checking for prop_get in -lsasl2
configure:5281: gcc -o conftest -Wall -g -O2
-I/lb/all/sleepycat/4.1.24/include
-I/lb/all/openssl/0.9.6g-gcc-32bit/ssl/include
-I/lb/all/sleepycat/4.1.24/include -I/lb/all/libsasl/2.1.8/include
-I/lb/include -I/lb/all/openssl/0.9.6g-gcc-32bit/ssl/include
-I/lb/all/libsasl/2.1.8/include -L/lb/all/sleepycat/4.1.24/lib
-R/lb/all/sleepycat/4.1.24/lib -L/lb/all/sleepycat/4.1.24/lib
-L/usr/local/lib -R/usr/local/lib
-L/lb/all/openssl/0.9.6g-gcc-32bit/ssl/lib
-L/lb/all/sleepycat/4.1.24/lib -R/lb/all/sleepycat/4.1.24/lib
-L/lb/all/libsasl/2.1.8/lib -R/lb/all/libsasl/2.1.8/lib -L/lb/lib
-L/lb/all/openssl/0.9.6g-gcc-32bit/ssl/lib -L/lb/all/libsasl/2.1.8/lib
conftest.c -lsasl2 -lresolv -ldl  -lfl  -ldb-4  -lssl -lcrypto 1>&5
configure:5357: checking for sasl_checkapop in -lsasl2
configure:5376: gcc -o conftest -Wall -g -O2
-I/lb/all/sleepycat/4.1.24/include
-I/lb/all/openssl/0.9.6g-gcc-32bit/ssl/include
-I/lb/all/sleepycat/4.1.24/include -I/lb/all/libsasl/2.1.8/include
-I/lb/include -I/lb/all/openssl/0.9.6g-gcc-32bit/ssl/include
-L/lb/all/libsasl/2.1.8/lib /lb/all/libsasl/2.1.8/lib/libsasl2.a 
-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err
/usr/local/lib/libgssapi_krb5.a /usr/local/lib/libkrb5.a
/usr/local/lib/libk5crypto.a /usr/local/lib/libcom_err.a
-L/lb/all/sleepycat/4.1.24/lib -R/lb/all/sleepycat/4.1.24/lib
-L/lb/all/sleepycat/4.1.24/lib -L/usr/local/lib -R/usr/local/lib
-L/lb/all/openssl/0.9.6g-gcc-32bit/ssl/lib
-L/lb/all/sleepycat/4.1.24/lib -R/lb/all/sleepycat/4.1.24/lib
-L/lb/all/libsasl/2.1.8/lib -R/lb/all/libsasl/2.1.8/lib -L/lb/lib
-L/lb/all/openssl/0.9.6g-gcc-32bit/ssl/lib conftest.c -lsasl2 -ldl 
-lfl  -ldb-4  -lssl -lcrypto 1>&5
gcc: /usr/local/lib/libgssapi_krb5.a: No such file or directory
gcc: /usr/local/lib/libkrb5.a: No such file or directory
gcc: /usr/local/lib/libk5crypto.a: No such file or directory
configure: failed program was:
#line 5365 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char sasl_checkapop();

int main() {
sasl_checkapop()
; return 0; }



Any tips or hints here?


-- 
T. Gordon Marler
gmarler at gmarler.com





More information about the Info-cyrus mailing list