ID: 21286 Comment by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Closed Bug Type: IMAP related Operating System: rh 7.3 PHP Version: 4.3.0 New Comment:
i follow your instruction with --with-openssl, configuring now no error, but... i got an error while compile ( make ) it :( i try using from http://snaps.php.net/php4-latest.tar.gz ( php4-200212301430 )they procude same error error given on 4.3.0 and php4-200212301430 : /usr/local/src/imap-2002.RC7/c-client/osdep.c:287: the use of `tmpnam' is dangerous, better use `mkstemp' then prompt to shell config.log from php-4.3.0: .... configure:35413: checking whether IMAP works configure:35446: gcc -o conftest -g -O2 -Wl,-rpath,/usr/local/lib -L/usr/local/lib conftest.c -lcrypto -lssl -lc-client -l crypt -lpam -liconv -lt1 -lttf -lpng -lz -ljpeg -lz -lcrypt -lssl -lcrypto -lresolv -lm -ldl -lnsl -lcrypt 1>&5 /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libc-client.a(osdep.o): In function `ssl_onceonlyinit': /usr/local/src/imap-2002.RC7/c-client/osdep.c:287: the use of `tmpnam' is dangerous, better use `mkstemp' configure:35476: checking for Informix support .... config.log from php4-200212301430: .... configure:37927: checking whether IMAP works configure:37960: gcc -o conftest -g -O2 -Wl,-rpath,/usr/local/lib -L/usr/local/lib conftest.c -lc-client -lssl -lcrypto -l crypt -lpam -liconv -lt1 -lttf -lpng -lz -ljpeg -lz -lcrypt -lssl -lcrypto -lresolv -lm -ldl -lnsl -lcrypt 1>&5 /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libc-client.a(osdep.o): In function `ssl_onceonlyinit': /usr/local/src/imap-2002.RC7/c-client/osdep.c:287: the use of `tmpnam' is dangerous, better use `mkstemp' configure:37990: checking for Informix support configure:38577: checking for Ingres II support .... Previous Comments: ------------------------------------------------------------------------ [2002-12-30 05:49:07] [EMAIL PROTECTED] yeah! work, thanks for your help Derick. i love this answered fast as hell :) ------------------------------------------------------------------------ [2002-12-30 05:44:53] [EMAIL PROTECTED] It's actually a RedHat problem, add --with-openssl to your configure line and it should work fine. Derick ------------------------------------------------------------------------ [2002-12-30 05:41:16] [EMAIL PROTECTED] i put only imap log, or you need all config.log? hope this help for tracking ... configure:35446: gcc -o conftest -g -O2 -Wl,-rpath,/usr/local/lib -L/usr/local/lib conftest.c -lcrypto -lssl -lc-client -lcrypt -lpam -liconv -lt1 -lttf -lpng -lz -ljpeg -lz -lcrypt -lresolv -lm -ldl -lnsl -lcrypt 1>&5 /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libc-client.a(osdep.o): In function `ssl_onceonlyinit': /usr/local/src/imap-2002.RC7/c-client/osdep.c:287: the use of `tmpnam' is dangerous, better use `mkstemp' /usr/local/src/imap-2002.RC7/c-client/osdep.c:300: undefined reference to `RAND_seed' /usr/local/src/imap-2002.RC7/c-client/osdep.c:305: undefined reference to `SSL_library_init' /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libc-client.a(osdep.o): In function `ssl_start_work': /usr/local/src/imap-2002.RC7/c-client/osdep.c:405: undefined reference to `TLSv1_client_method' /usr/local/src/imap-2002.RC7/c-client/osdep.c:405: undefined reference to `SSLv23_client_method' /usr/local/src/imap-2002.RC7/c-client/osdep.c:405: undefined reference to `SSL_CTX_new' /usr/local/src/imap-2002.RC7/c-client/osdep.c:409: undefined reference to `SSL_CTX_ctrl' /usr/local/src/imap-2002.RC7/c-client/osdep.c:413: undefined reference to `SSL_CTX_set_verify' /usr/local/src/imap-2002.RC7/c-client/osdep.c:415: undefined reference to `SSL_CTX_set_default_verify_paths' /usr/local/src/imap-2002.RC7/c-client/osdep.c:417: undefined reference to `SSL_new' /usr/local/src/imap-2002.RC7/c-client/osdep.c:419: undefined reference to `BIO_new_socket' /usr/local/src/imap-2002.RC7/c-client/osdep.c:420: undefined reference to `SSL_set_bio' /usr/local/src/imap-2002.RC7/c-client/osdep.c:421: undefined reference to `SSL_set_connect_state' /usr/local/src/imap-2002.RC7/c-client/osdep.c:422: undefined reference to `SSL_state' /usr/local/src/imap-2002.RC7/c-client/osdep.c:422: undefined reference to `SSL_ctrl' /usr/local/src/imap-2002.RC7/c-client/osdep.c:424: undefined reference to `SSL_write' /usr/local/src/imap-2002.RC7/c-client/osdep.c:429: undefined reference to `SSL_get_peer_certificate' /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libc-client.a(osdep.o): In function `ssl_getdata': /usr/local/src/imap-2002.RC7/c-client/osdep.c:596: undefined reference to `SSL_get_fd' /usr/local/src/imap-2002.RC7/c-client/osdep.c:599: undefined reference to `SSL_pending' /usr/local/src/imap-2002.RC7/c-client/osdep.c:623: undefined reference to `SSL_read' /usr/local/src/imap-2002.RC7/c-client/osdep.c:623: undefined reference to `SSL_get_error' /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libc-client.a(osdep.o): In function `ssl_server_init': /usr/local/src/imap-2002.RC7/c-client/osdep.c:779: undefined reference to `ERR_load_crypto_strings' /usr/local/src/imap-2002.RC7/c-client/osdep.c:780: undefined reference to `SSL_load_error_strings' /usr/local/src/imap-2002.RC7/c-client/osdep.c:786: undefined reference to `TLSv1_server_method' /usr/local/src/imap-2002.RC7/c-client/osdep.c:786: undefined reference to `SSLv23_server_method' /usr/local/src/imap-2002.RC7/c-client/osdep.c:786: undefined reference to `SSL_CTX_new' /usr/local/src/imap-2002.RC7/c-client/osdep.c:792: undefined reference to `SSL_CTX_ctrl' /usr/local/src/imap-2002.RC7/c-client/osdep.c:794: undefined reference to `SSL_CTX_set_cipher_list' /usr/local/src/imap-2002.RC7/c-client/osdep.c:798: undefined reference to `SSL_CTX_use_certificate_chain_file' /usr/local/src/imap-2002.RC7/c-client/osdep.c:802: undefined reference to `SSL_CTX_use_RSAPrivateKey_file' /usr/local/src/imap-2002.RC7/c-client/osdep.c:808: undefined reference to `SSL_CTX_ctrl' /usr/local/src/imap-2002.RC7/c-client/osdep.c:809: undefined reference to `SSL_CTX_set_tmp_rsa_callback' /usr/local/src/imap-2002.RC7/c-client/osdep.c:811: undefined reference to `SSL_new' /usr/local/src/imap-2002.RC7/c-client/osdep.c:815: undefined reference to `SSL_set_fd' /usr/local/src/imap-2002.RC7/c-client/osdep.c:817: undefined reference to `SSL_accept' /usr/local/src/imap-2002.RC7/c-client/osdep.c:838: undefined reference to `ERR_error_string' /usr/local/src/imap-2002.RC7/c-client/osdep.c:838: undefined reference to `ERR_get_error' /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libc-client.a(osdep.o): In function `ssl_genkey': /usr/local/src/imap-2002.RC7/c-client/osdep.c:856: undefined reference to `RSA_generate_key' /usr/local/src/imap-2002.RC7/c-client/osdep.c:860: undefined reference to `ERR_error_string' /usr/local/src/imap-2002.RC7/c-client/osdep.c:860: undefined reference to `ERR_get_error' /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libc-client.a(osdep.o): In function `ssl_server_input_wait': /usr/local/src/imap-2002.RC7/c-client/osdep.c:880: undefined reference to `SSL_get_fd' /usr/local/src/imap-2002.RC7/c-client/osdep.c:883: undefined reference to `SSL_pending' /usr/local/src/imap-2002.RC7/c-client/osdep.c:883: undefined reference to `SSL_read' /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libc-client.a(osdep.o): In function `PFLUSH': /usr/local/src/imap-2002.RC7/c-client/osdep.c:660: undefined reference to `SSL_write' /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libc-client.a(osdep.o): In function `ssl_sout': /usr/local/src/imap-2002.RC7/c-client/osdep.c:660: undefined reference to `SSL_write' /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libc-client.a(osdep.o): In function `ssl_open_verify': /usr/local/src/imap-2002.RC7/c-client/osdep.c:460: undefined reference to `X509_STORE_CTX_get_error' /usr/local/src/imap-2002.RC7/c-client/osdep.c:460: undefined reference to `X509_verify_cert_error_string' /usr/local/src/imap-2002.RC7/c-client/osdep.c:462: undefined reference to `X509_STORE_CTX_get_current_cert' /usr/local/src/imap-2002.RC7/c-client/osdep.c:462: undefined reference to `X509_get_subject_name' /usr/local/src/imap-2002.RC7/c-client/osdep.c:462: undefined reference to `X509_NAME_oneline' /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libc-client.a(osdep.o): In function `ssl_abort': /usr/local/src/imap-2002.RC7/c-client/osdep.c:686: undefined reference to `SSL_shutdown' /usr/local/src/imap-2002.RC7/c-client/osdep.c:687: undefined reference to `SSL_free' /usr/local/src/imap-2002.RC7/c-client/osdep.c:691: undefined reference to `SSL_CTX_free' collect2: ld returned 1 exit status configure: failed program was: #line 35421 "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; } ------------------------------------------------------------------------ [2002-12-30 05:34:48] [EMAIL PROTECTED] What does config.log tell you about imap (should be in the last few lines)? Derick ------------------------------------------------------------------------ [2002-12-30 05:30:31] [EMAIL PROTECTED] i got error while compile with IMAP, they said my IMAP not working ... checking for IMAP support... yes checking for pam_start in -lpam... yes checking for crypt in -lcrypt... (cached) yes checking whether SSL libraries are needed for c-client... /usr/lib checking whether IMAP works... no this is not happen when i try configure with php4.2.3 i use imap-2002.RC7 and this is my configure option ./configure --prefix=/usr --with-exec-dir=/usr/bin --with-apache=../apache_1.3.27 --with-config-file-path=/etc/httpd --with-4-bit-antialias-hack --with-gd --with-ttf --with-t1lib --with-jpeg --with-jpeg-dir=/usr/lib --with-tiff-dir=/usr/lib --with-png-dir=/usr/lib --enable-calendar --with-mm --with-mysql=/usr --with-pgsql --with-gettext --with-zlib --with-gnu-ld --with-pspell --enable-inline-optimization --enable-bcmath --with-imap-ssl --with-imap --enable-xslt --with-xslt-sablot --with-pdflib --with-iconv=/usr/local/lib where is the problem? on my side? or php side? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21286&edit=1