So no suggestions on this? =/ I'm definitely stuck.
--tom ----- Thomas C. Meggs Assistant UNIX System Administrator Physics and Astronomy Network Infrastructure and Computing UNC Chapel Hill http://www.panic.unc.edu/ ---------- Forwarded message ---------- Date: Thu, 15 Nov 2001 16:21:27 -0500 (EST) From: Thomas C. Meggs <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: problem compiling cyrus-imapd-2.0.16 w/ cyrus-sasl-1.5.27 Here is what I'm using: SunOS servername 5.8 Generic_108528-11 sun4u sparc SUNW,Sun-Blade-100 cyrus-sasl-1.5.27 cyrus-imapd-2.0.16 afs 3.6-2.26 krb4-1.0.8 db-3.3.11 cyrus-sasl was configured and made with: ./configure --enable-gssapi=no --enable-anon=no --enable-krb4 \ --enable-plain --prefix=/usr/local/sasl --with-dbpath=/usr/local/sasl/db \ --with-plugindir=/usr/local/sasl/lib --with-dblib=berkeley It had errors, to get it to work I had to execute the following so the configure script could do its configuring. [; setenv CPPFLAGS "-I/usr/software/krb4/include -I/usr/software/db/include" setenv LDFLAGS "-L/usr/software/krb4/lib -L/usr/software/db/lib" setenv LIBS "-lkrb -lnsl -ldes" At any rate though, libsasl compiled without a hitch, although I haven't actually tested the binaries. I assume that they work. I ran into my problem with compiling cyrus-imapd which I have yet to resolve. Again, I had problems with the configure script breaking. Here is what I executed: ./configure --prefix=/usr/local/cyrus --with-krb=/usr/software/krb4 \ --with-openssl=/usr/software/openssl --with-afs=/usr/afsws \ --with-sasl=/usr/local/sasl --with-dbdir=/usr/software/db Here is where it bails: checking for sasl.h... yes checking for sasl_getprop in -lsasl... no configure: error: Cannot continue without libsasl. Get it from ftp://ftp.andrew.cmu.edu:/pub/cyrus-mail/. However, libsasl is installed. I figured out most of the libraries it needed to get it the libsasl checking routine working, which for the sake of including it is: -- begin test -- char sasl_getprop(); int main() { sasl_getprop() ; return 0; } -- end test -- So, after some playing around I settled on these environment variables: setenv CPPFLAGS "-I/usr/software/krb4/include -I/usr/software/db/include" setenv LDFLAGS "-L/usr/software/openssl/lib -L/usr/software/krb4/lib \ -L/usr/software/db/lib -L/usr/afsws/lib" setenv LIBS "-lkdb -lkrb -lsocket -lnsl -lresolv -lcrypto -lafsauthent" The configure works with this, but make fails. Here is the snipping of the output around where the compile breaks: ranlib libimap.a gcc -L/usr/software/db/lib -L/usr/software/db/lib -L/usr/local/lib -L/usr/software/openssl/lib -L/usr/software/krb4/lib -L/usr/software/db/lib -L/usr/afsws/lib -L/usr/software/openssl/lib -g -O2 -I/usr/afsws/include -o imapd \ ../master/service.o pushstats.o imapd.o index.o tls.o libimap.a ../acap/libacap.a ../lib/libcyrus.a -L/usr/local/sasl/lib -lsasl -ldb-3 -lkdb -lkrb -lsocket -lnsl -lresolv -lcrypto -lafsauthent -lssl -lcrypto -lcom_err libimap.a(imap_err.o): In function `initialize_imap_error_table': /usr/local/builds/cyrus-imapd-2.0.16/imap/imap_err.c:51: undefined reference to `add_to_error_table' ../acap/libacap.a(acap_err.o): In function `initialize_acap_error_table': /usr/local/builds/cyrus-imapd-2.0.16/acap/acap_err.c:26: undefined reference to `add_to_error_table' collect2: ld returned 1 exit status make[1]: *** [imapd] Error 1 make[1]: Leaving directory `/usr/local/builds/cyrus-imapd-2.0.16/imap' make: *** [all] Error 1 Any suggestions on how to get it to compile? [; Thanks in advance (and afterwards). Regards, Tom