Well,
I finally got it to admint to not finding libsasl (see below).
The only place I find libsasl is in the install directory.
./opt/src/LDAP/cyrus-sasl-2.1.15/mac/libsasl/libsasl
(is there supposed to be one in /usr/local/lib/sasl2?)
(if so then the sasl install is not working after all)
I rebuilt sasl and then I included the include & lib paths in
CPPFLAGS and LDFLAGS and added --with-cyrus-sasl to the ./configure line.
CPPFLAGS="-I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include \
-I/usr/local/include/sasl"
LDFLAGS="-L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib \
-L/usr/local/lib/sasl2 -L/usr/lib/sasl2" ./configure --with-threads=no \
--with-cyrus-sasl
I also used openldap2.2.4 this time just to see.
checking for db.h... yes
checking for Berkeley DB link (default)... no
checking for Berkeley DB link (-ldb42)... no
checking for Berkeley DB link (-ldb-42)... no
checking for Berkeley DB link (-ldb-4.2)... yes
checking for Berkeley DB thread support... yes
checking Berkeley DB version for BDB backend... yes
checking for openlog... yes
checking for sasl/sasl.h... yes
checking for sasl.h... yes
checking for sasl_client_init in -lsasl2... no
checking for sasl_client_init in -lsasl... no
configure: error: Could not locate Cyrus SASL
Below is the relevant part of the config.log
----sasl part from config.log----------
configure:20579: gcc -o conftest -g -O2 -I/usr/local/ssl/include
-I/usr/local/BerkeleyDB.4.2/include -I/usr/local/include/sasl
-L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib -L/usr/local/lib/sasl2
-L/usr/lib/sasl2 conftest.c 1>&5
configure:20755: checking for sasl/sasl.h
configure:20765: gcc -E -I/usr/local/ssl/include
-I/usr/local/BerkeleyDB.4.2/include -I/usr/local/include/sasl conftest.c
/dev/null 2>conftest.out
configure:20755: checking for sasl.h
configure:20765: gcc -E -I/usr/local/ssl/include
-I/usr/local/BerkeleyDB.4.2/include -I/usr/local/include/sasl conftest.c
/dev/null 2>conftest.out
configure:20794: checking for sasl_client_init in -lsasl2
configure:20813: gcc -o conftest -g -O2 -I/usr/local/ssl/include
-I/usr/local/BerkeleyDB.4.2/include -I/usr/local/include/sasl
-L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib -L/usr/local/lib/sasl2
-L/usr/lib/sasl2 conftest.c -lsasl2 1>&5
ld: 0711-317 ERROR: Undefined symbol: .DES_ede3_cbc_encrypt
ld: 0711-317 ERROR: Undefined symbol: .DES_key_sched
ld: 0711-317 ERROR: Undefined symbol: .DES_cbc_encrypt
ld: 0711-317 ERROR: Undefined symbol: .gss_display_status
ld: 0711-317 ERROR: Undefined symbol: .gss_release_buffer
ld: 0711-317 ERROR: Undefined symbol: .gss_wrap
ld: 0711-317 ERROR: Undefined symbol: .gss_unwrap
ld: 0711-317 ERROR: Undefined symbol: .gss_release_cred
ld: 0711-317 ERROR: Undefined symbol: .gss_release_name
ld: 0711-317 ERROR: Undefined symbol: .gss_delete_sec_context
ld: 0711-317 ERROR: Undefined symbol: .gss_accept_sec_context
ld: 0711-317 ERROR: Undefined symbol: GSS_C_NT_HOSTBASED_SERVICE
ld: 0711-317 ERROR: Undefined symbol: .gss_import_name
ld: 0711-317 ERROR: Undefined symbol: .gss_acquire_cred
ld: 0711-317 ERROR: Undefined symbol: .gss_display_name
ld: 0711-317 ERROR: Undefined symbol: GSS_C_NT_USER_NAME
ld: 0711-317 ERROR: Undefined symbol: .gss_compare_name
ld: 0711-317 ERROR: Undefined symbol: .gss_init_sec_context
ld: 0711-317 ERROR: Undefined symbol: .gss_inquire_context
ld: 0711-317 ERROR: Undefined symbol: .EVP_DigestInit
ld: 0711-317 ERROR: Undefined symbol: .EVP_DigestUpdate
ld: 0711-317 ERROR: Undefined symbol: .EVP_DigestFinal
ld: 0711-317 ERROR: Undefined symbol: .EVP_get_digestbyname
ld: 0711-317 ERROR: Undefined symbol: .EVP_cleanup
ld: 0711-317 ERROR: Undefined symbol: .db_create
ld: 0711-317 ERROR: Undefined symbol: .db_strerror
ld: 0711-317 ERROR: Undefined symbol: .OpenSSL_add_all_digests
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
collect2: ld returned 8 exit status
configure: failed program was:
#line 20802 "configure"
#include "conf/* 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_client_init();
int main() {
sasl_client_init()
; return 0; }
configure:20832: checking for sasl_client_init in -lsasl
configure:20851: gcc -o conftest -g -O2 -I/usr/local/ssl/include
-I/usr/local/BerkeleyDB.4.2/include -I/usr/local/include/sasl
-L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib -L/usr/local/lib/sasl2
-L/usr/lib/sasl2 conftest.c -lsasl 1>&5
collect2: library libsasl not found
configure: failed program was:
#line 20840 "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_client_init();
int main() {
sasl_client_init()
; return 0; }defs.h"
-----------------------------------------------------
Walter North 406-444-2914
Operating Systems Programmer
wnorth (at) state (dot) mt (dot) us
-----------------------------------------------------