Hi As a grateful recipient of help from this list in the path, I'm back with a new problem :( - one that I've spent about 3 days on now...
I am running debian I downloaded the source of courier-imap-4.2.1 I unpacked it as a user All commands that I've run to date have been as non-root I am using these flags CPPFLAGS="-I/usr/include/openssl -I/usr/local/include/openssl" LDFLAGS="-L/usr/local/ssl/lib -L/usr/lib/ -L/usr/local/lib" export CPPFLAGS export LDFLAGS /usrinclude/openssl is a sym-link of /usr/local/ssl/include/openssl/ which solved the problem I seem to facing (advice was from this mailing-list archive, here --> http://www.mail-archive.com/[email protected]/msg07863.html My ./configure command ./configure --prefix=/usr/local/courier --with-mysql-libs=/usr/lib/mysql --with-mysql-includes=/usr/include/mysql/ --with-authmysql --with-authmysql=yes --with-authchangepwdir --enable-mimecharset=utf-8 --enable-workarounds-for-imap-client-bugs "make" sometimes works, sometimes doesn't "make check" never works Here is the error I'm getting consistently now (during "make" - the above link didn't change it one iota). 28/.libs/librandom128.a ../numlib/.libs/libnumlib.a ../liblock/.libs/liblock.a ../soxwrap/libsoxwrap.a /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_func': dso_dlfcn.c:(.text+0x27d): undefined reference to `dlsym' dso_dlfcn.c:(.text+0x2f9): undefined reference to `dlerror' /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_var': dso_dlfcn.c:(.text+0x36d): undefined reference to `dlsym' dso_dlfcn.c:(.text+0x3e1): undefined reference to `dlerror' /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_unload': dso_dlfcn.c:(.text+0x44c): undefined reference to `dlclose' /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_load': dso_dlfcn.c:(.text+0x4f5): undefined reference to `dlopen' dso_dlfcn.c:(.text+0x546): undefined reference to `dlclose' dso_dlfcn.c:(.text+0x56f): undefined reference to `dlerror' ./.libs/libcouriertls.a(libcouriertls.o): In function `get_func': /home/lydiard/src/courier-imap-4.2.1/tcpd/libcouriertls.c:695: undefined reference to `d2i_SSL_SESSION' ./.libs/libcouriertls.a(libcouriertls.o): In function `cache_add': /home/lydiard/src/courier-imap-4.2.1/tcpd/libcouriertls.c:605: undefined reference to `i2d_SSL_SESSION' /home/lydiard/src/courier-imap-4.2.1/tcpd/libcouriertls.c:622: undefined reference to `i2d_SSL_SESSION' ./.libs/libcouriertls.a(libcouriertls.o): In function `process_dhcertfile': /home/lydiard/src/courier-imap-4.2.1/tcpd/libcouriertls.c:299: undefined reference to `SSL_CTX_use_certificate_chain_file' /home/lydiard/src/courier-imap-4.2.1/tcpd/libcouriertls.c:328: undefined reference to `SSL_CTX_use_PrivateKey_file' ./.libs/libcouriertls.a(libcouriertls.o): In function `process_rsacertfile': /home/lydiard/src/courier-imap-4.2.1/tcpd/libcouriertls.c:274: undefined reference to `SSL_CTX_use_certificate_chain_file' /home/lydiard/src/courier-imap-4.2.1/tcpd/libcouriertls.c:280: undefined reference to `SSL_CTX_use_RSAPrivateKey_file' ./.libs/libcouriertls.a(libcouriertls.o): In function `rsa_callback': /home/lydiard/src/courier-imap-4.2.1/tcpd/libcouriertls.c:216: undefined reference to `RSA_generate_key' ./.libs/libcouriertls.a(libcouriertls.o): In function `tls_create': /home/lydiard/src/courier-imap-4.2.1/tcpd/libcouriertls.c:405: undefined reference to `SSL_load_error_strings' /home/lydiard/src/courier-imap-4.2.1/tcpd/libcouriertls.c:406: undefined reference to `SSL_library_init' /home/lydiard/src/courier-imap-4.2.1/tcpd/libcouriertls.c:419: undefined reference to `SSLv2_method' /home/lydiard/src/courier-imap-4.2.1/tcpd/libcouriertls.c:419: undefined reference to `SSLv23_method' /home/lydiard/src/courier-imap-4.2.1/tcpd/libcouriertls.c:419: undefined reference to `TLSv1_method' /home/lydiard/src/courier-imap-4.2.1/tcpd/libcouriertls.c:419: undefined reference to `SSLv3_method' collect2: ld returned 1 exit status make[3]: *** [couriertls] Error 1 make[3]: Leaving directory `/home/lydiard/src/courier-imap-4.2.1/tcpd' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/lydiard/src/courier-imap-4.2.1/tcpd' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/lydiard/src/courier-imap-4.2.1' make: *** [all] Error 2 Now, I did have a lot of trouble getting openssl to install (I was having compile errors with Apache) - I tried both apt-get and compiling from source. However, that finally succeeded and apache is installed and SSL-happy. I really need Courier to do the same :) Oh - I also tried the advice here --> http://www.phparchitecture.com/howto_show.php?id=2&showall "Now here is where I ran into a problem, Courier IMAP wouldn't compile with SSL support (in the log it was complaining about couriertls not being found). For some reason it wasn't finding the SSL libraries. However, here is a quick fix that I found in a mail list (thanks to Michael Carmack). $ cd <courier-source-dir>/tcpd $ make distclean $ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/ssl/lib $ export LD_RUN_PATH=${LD_RUN_PATH}:/usr/local/ssl/lib $ export C_INCLUDE_PATH=${C_INCLUDE_PATH}:/usr/local/ssl/lib $ export LDFLAGS="${LDFLAGS} -L/usr/local/ssl/lib -Wl,--rpath=/usr/local/ssl/lib" $ export CC="gcc -L/usr/local/ssl/lib -Wl,--rpath=/usr/local/ssl/lib" $ ./configure $ make couriertls $ cp ./couriertls /usr/local/courier/bin (as root) " Further down that page someone suggest making sure that libssl.so.VERSION is present - it is: -rw-r--r-- 1 root root 248K 2007-09-28 21:49 /usr/lib/libssl.so.0.9.8 Thanks. Lydiard ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
