From: [EMAIL PROTECTED] Operating system: Slackware 8.1 PHP version: 4.2.3 PHP Bug Type: Apache2 related Bug description: unable to load php with -imap and imap-ssl
apache 2.0.43 php 4.2.3 wu imap 2002.332 openssl 0.9.6h ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --with-imap=/root/install/imap-2002 --with-imap-ssl=/usr/local/ssl compiles without any error when trying to use new module : Cannot load /usr/local/apache2/modules/libphp4.so into server: /usr/local/apache2/modules/libphp4.so: undefined symbol: RAND_seed configuring with imap but without imap-ssl works fine, apache loads module without complaints 4.3.0RC3 fails on configure : checking whether SSL libraries are needed for c-client... /usr/local/ssl/lib checking whether IMAP works... no configure: error: build test failed. Please check the config.log for details. root@r:~/install/php-4.3.0RC3# tail -n 92 config.log configure:35246: checking whether SSL libraries are needed for c-client configure:35407: checking whether IMAP works configure:35440: gcc -o conftest -g -O2 -Wl,-rpath,/root/install/imap-2002/c-client -L/root/install/imap-2002/c-client -Wl,-rpath,/usr/local/ssl/lib -L/usr/local/ssl/lib conftest.c -lcrypto -lssl -lc-client -lcrypt -lcrypt -lresolv -lm -ldl -lnsl -lcrypt 1>&5 /root/install/imap-2002/c-client/libc-client.a(osdep.o): In function `ssl_onceonlyinit': /root/install/imap-2002/c-client/osdep.c:268: the use of `tmpnam' is dangerous, better use `mkstemp' /root/install/imap-2002/c-client/osdep.c:281: undefined reference to `RAND_seed' /root/install/imap-2002/c-client/osdep.c:286: undefined reference to `SSL_library_init' /root/install/imap-2002/c-client/libc-client.a(osdep.o): In function `ssl_start_work': /root/install/imap-2002/c-client/osdep.c:388: undefined reference to `TLSv1_client_method' /root/install/imap-2002/c-client/osdep.c:388: undefined reference to `SSLv23_client_method' /root/install/imap-2002/c-client/osdep.c:388: undefined reference to `SSL_CTX_new' /root/install/imap-2002/c-client/osdep.c:391: undefined reference to `SSL_CTX_ctrl' /root/install/imap-2002/c-client/osdep.c:395: undefined reference to `SSL_CTX_set_verify' /root/install/imap-2002/c-client/osdep.c:397: undefined reference to `SSL_CTX_set_default_verify_paths' /root/install/imap-2002/c-client/osdep.c:398: undefined reference to `SSL_new' /root/install/imap-2002/c-client/osdep.c:400: undefined reference to `BIO_new_socket' /root/install/imap-2002/c-client/osdep.c:401: undefined reference to `SSL_set_bio' /root/install/imap-2002/c-client/osdep.c:402: undefined reference to `SSL_set_connect_state' /root/install/imap-2002/c-client/osdep.c:404: undefined reference to `SSL_state' /root/install/imap-2002/c-client/osdep.c:404: undefined reference to `SSL_ctrl' /root/install/imap-2002/c-client/osdep.c:405: undefined reference to `SSL_write' /root/install/imap-2002/c-client/osdep.c:410: undefined reference to `SSL_get_peer_certificate' /root/install/imap-2002/c-client/libc-client.a(osdep.o): In function `ssl_getdata': /root/install/imap-2002/c-client/osdep.c:577: undefined reference to `SSL_get_fd' /root/install/imap-2002/c-client/osdep.c:580: undefined reference to `SSL_pending' /root/install/imap-2002/c-client/osdep.c:604: undefined reference to `SSL_read' /root/install/imap-2002/c-client/osdep.c:604: undefined reference to `SSL_get_error' /root/install/imap-2002/c-client/libc-client.a(osdep.o): In function `ssl_server_init': /root/install/imap-2002/c-client/osdep.c:760: undefined reference to `ERR_load_crypto_strings' /root/install/imap-2002/c-client/osdep.c:762: undefined reference to `SSL_load_error_strings' /root/install/imap-2002/c-client/osdep.c:769: undefined reference to `TLSv1_server_method' /root/install/imap-2002/c-client/osdep.c:769: undefined reference to `SSLv23_server_method' /root/install/imap-2002/c-client/osdep.c:769: undefined reference to `SSL_CTX_new' /root/install/imap-2002/c-client/osdep.c:774: undefined reference to `SSL_CTX_ctrl' /root/install/imap-2002/c-client/osdep.c:771: undefined reference to `SSL_CTX_set_cipher_list' /root/install/imap-2002/c-client/osdep.c:771: undefined reference to `SSL_CTX_use_certificate_chain_file' /root/install/imap-2002/c-client/osdep.c:771: undefined reference to `SSL_CTX_use_RSAPrivateKey_file' /root/install/imap-2002/c-client/osdep.c:789: undefined reference to `SSL_CTX_ctrl' /root/install/imap-2002/c-client/osdep.c:791: undefined reference to `SSL_CTX_set_tmp_rsa_callback' /root/install/imap-2002/c-client/osdep.c:792: undefined reference to `SSL_new' /root/install/imap-2002/c-client/osdep.c:797: undefined reference to `SSL_set_fd' /root/install/imap-2002/c-client/osdep.c:798: undefined reference to `SSL_accept' /root/install/imap-2002/c-client/osdep.c:650: undefined reference to `ERR_error_string' /root/install/imap-2002/c-client/osdep.c:650: undefined reference to `ERR_get_error' /root/install/imap-2002/c-client/libc-client.a(osdep.o): In function `ssl_genkey': /root/install/imap-2002/c-client/osdep.c:837: undefined reference to `RSA_generate_key' /root/install/imap-2002/c-client/osdep.c:841: undefined reference to `ERR_error_string' /root/install/imap-2002/c-client/osdep.c:841: undefined reference to `ERR_get_error' /root/install/imap-2002/c-client/libc-client.a(osdep.o): In function `ssl_server_input_wait': /root/install/imap-2002/c-client/osdep.c:863: undefined reference to `SSL_get_fd' /root/install/imap-2002/c-client/osdep.c:865: undefined reference to `SSL_pending' /root/install/imap-2002/c-client/osdep.c:865: undefined reference to `SSL_read' /root/install/imap-2002/c-client/libc-client.a(osdep.o): In function `PFLUSH': /root/install/imap-2002/c-client/osdep.c:638: undefined reference to `SSL_write' /root/install/imap-2002/c-client/libc-client.a(osdep.o): In function `ssl_sout': /root/install/imap-2002/c-client/osdep.c:638: undefined reference to `SSL_write' /root/install/imap-2002/c-client/libc-client.a(osdep.o): In function `ssl_open_verify': /root/install/imap-2002/c-client/osdep.c:442: undefined reference to `X509_STORE_CTX_get_error' /root/install/imap-2002/c-client/osdep.c:442: undefined reference to `X509_verify_cert_error_string' /root/install/imap-2002/c-client/osdep.c:444: undefined reference to `X509_STORE_CTX_get_current_cert' /root/install/imap-2002/c-client/osdep.c:444: undefined reference to `X509_get_subject_name' /root/install/imap-2002/c-client/osdep.c:444: undefined reference to `X509_NAME_oneline' /root/install/imap-2002/c-client/libc-client.a(osdep.o): In function `ssl_abort': /root/install/imap-2002/c-client/osdep.c:667: undefined reference to `SSL_shutdown' /root/install/imap-2002/c-client/osdep.c:668: undefined reference to `SSL_free' /root/install/imap-2002/c-client/osdep.c:672: undefined reference to `SSL_CTX_free' collect2: ld returned 1 exit status configure: failed program was: #line 35415 "configure" #include "confdefs.h" void mm_log(void){} void mm_dlog(void){} void mm_flags(void){} void mm_fatal(void){} void mm_critical(void){} void mm_nocritical(void){} void mm_notify(void){} void mm_login(void){} void mm_diskerror(void){} void mm_status(void){} void mm_lsub(void){} void mm_list(void){} void mm_exists(void){} void mm_searched(void){} void mm_expunged(void){} char mail_open(); int main() { mail_open(0,"",0); return 0; } -- Edit bug report at http://bugs.php.net/?id=21063&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21063&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21063&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21063&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21063&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21063&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21063&r=support Expected behavior: http://bugs.php.net/fix.php?id=21063&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21063&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21063&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21063&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21063&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21063&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21063&r=isapi