[imp] Problem compiling PHP 4.3.3 w/ imap support
Drew J. Como
dcomo at bascom.com
Mon Sep 15 07:25:49 PDT 2003
I am trying to compile PHP 4.3.3 with the latest
version of imap-2002e. The configure line that I
am using is the following:
./configure --with-mysql \
--with-apache=../../apache/apache_1.3.28 \
--with-imap=/usr/src/packages/imap/imap-2002e \
--with-gettext=../../gettext/gettext-0.11.2
It starts, however when it tries to compile in IMAP support,
the following error appears:
checking whether IMAP works... no
configure: error: build test failed. Please check the config.log for
details.
Checking the config.log file shows the following:
configure:40034: checking whether IMAP works
configure:40067: gcc -o conftest -g -O2
-Wl,-rpath,/usr/src/packages/imap/imap-2002e/c-client
-L/usr/src/packages/imap/imap-2002e/
c-client conftest.c -lc-client -lcrypt -lresolv -lm -ldl -lnsl 1>&5
/usr/src/packages/imap/imap-2002e/c-client/libc-client.a(osdep.o): In
function `ssl_onceonlyinit':
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:267: the use of `tmpnam'
is dangerous, better use `mkstemp'
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:280: undefined reference
to `RAND_seed'
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:285: undefined reference
to `SSL_library_init'
/usr/src/packages/imap/imap-2002e/c-client/libc-client.a(osdep.o): In
function `ssl_start_work':
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:385: undefined reference
to `TLSv1_client_method'
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:385: undefined reference
to `SSLv23_client_method'
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:385: undefined reference
to `SSL_CTX_new'
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:389: undefined reference
to `SSL_CTX_ctrl'
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:393: undefined reference
to `SSL_CTX_set_verify'
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:395: undefined reference
to `SSL_CTX_set_default_verify_paths'
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:397: undefined reference
to `SSL_new'
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:399: undefined reference
to `BIO_new_socket'
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:400: undefined reference
to `SSL_set_bio'
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:401: undefined reference
to `SSL_set_connect_state'
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:402: undefined reference
to `SSL_state'
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:402: undefined reference
to `SSL_ctrl'
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:404: undefined reference
to `SSL_write'
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:409: undefined reference
to `SSL_get_peer_certificate'
/usr/src/packages/imap/imap-2002e/c-client/libc-client.a(osdep.o): In
function `ssl_getdata':
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:576: undefined reference
to `SSL_get_fd'
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:579: undefined reference
to `SSL_pending'
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:603: undefined reference
to `SSL_read'
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:603: undefined reference
to `SSL_get_error'
/usr/src/packages/imap/imap-2002e/c-client/libc-client.a(osdep.o): In
function `ssl_server_init':
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:759: undefined reference
to `ERR_load_crypto_strings'
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:760: undefined reference
to `SSL_load_error_strings'
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:772: undefined reference
to `TLSv1_server_method'
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:772: undefined reference
to `SSLv23_server_method'
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:772: undefined reference
to `SSL_CTX_new'
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:778: undefined reference
to `SSL_CTX_ctrl'
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:780: undefined reference
to `SSL_CTX_set_cipher_list'
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:784: undefined reference
to `SSL_CTX_use_certificate_chain_file'
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:788: undefined reference
to `SSL_CTX_use_RSAPrivateKey_file'
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:794: undefined reference
to `SSL_CTX_ctrl'
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:795: undefined reference
to `SSL_CTX_set_tmp_rsa_callback'
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:797: undefined reference
to `SSL_new'
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:801: undefined reference
to `SSL_set_fd'
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:803: undefined reference
to `SSL_accept'
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:824: undefined reference
to `ERR_error_string'
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:824: undefined reference
to `ERR_get_error'
/usr/src/packages/imap/imap-2002e/c-client/libc-client.a(osdep.o): In
function `ssl_genkey':
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:842: undefined reference
to `RSA_generate_key'
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:846: undefined reference
to `ERR_error_string'
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:846: undefined reference
to `ERR_get_error'
/usr/src/packages/imap/imap-2002e/c-client/libc-client.a(osdep.o): In
function `ssl_server_input_wait':
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:866: undefined reference
to `SSL_get_fd'
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:869: undefined reference
to `SSL_pending'
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:869: undefined reference
to `SSL_read'
/usr/src/packages/imap/imap-2002e/c-client/libc-client.a(osdep.o): In
function `PFLUSH':
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:640: undefined reference
to `SSL_write'
/usr/src/packages/imap/imap-2002e/c-client/libc-client.a(osdep.o): In
function `ssl_sout':
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:640: undefined reference
to `SSL_write'
/usr/src/packages/imap/imap-2002e/c-client/libc-client.a(osdep.o): In
function `ssl_open_verify':
/usr/src/packages/imap/imap-2002e/c-client/libc-client.a(osdep.o): In
function `ssl_open_verify':
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:440: undefined reference
to `X509_STORE_CTX_get_error'
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:440: undefined reference
to `X509_verify_cert_error_string'
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:442: undefined reference
to `X509_STORE_CTX_get_current_cert'
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:442: undefined reference
to `X509_get_subject_name'
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:442: undefined reference
to `X509_NAME_oneline'
/usr/src/packages/imap/imap-2002e/c-client/libc-client.a(osdep.o): In
function `ssl_abort':
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:666: undefined reference
to `SSL_shutdown'
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:667: undefined reference
to `SSL_free'
/usr/src/packages/imap/imap-2002e/c-client/osdep.c:671: undefined reference
to `SSL_CTX_free'
collect2: ld returned 1 exit status
What could be the problem?
============================================
Drew J. Como Phone: 631-434-6600
Systems Administrator Fax: 631-434-7800
dcomo at bascom.com Web: www.bascom.com
BASCOM Global Internet Services, Inc.
--------------------------------------------
"When quality is the goal,
winning is guaranteed."
More information about the imp
mailing list