php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21063 unable to load php with -imap and imap-ssl
Submitted: 2002-12-17 05:47 UTC Modified: 2003-01-08 01:00 UTC
From: rich at hq dot vsaa dot lv Assigned:
Status: No Feedback Package: Apache2 related
PHP Version: 4.2.3 OS: Slackware 8.1
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2002-12-17 05:47 UTC] rich at hq dot vsaa dot lv
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;
    }

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-22 00:57 UTC] iliaa@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip


 [2003-01-08 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over 2 weeks, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 19:01:28 2024 UTC