Bug #18295 Updated: fail to compile --with-openssl=[DIR] (OpenSSL conflict ?)
| From: | mmacwing at irisa dot fr | Date: | Fri, 12 Jul 2002 08:34:48 +0000 |
| Subject: | Bug #18295 Updated: fail to compile --with-openssl=[DIR] (OpenSSL conflict ?) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-13926@lists.php.net to get a copy of this message | ||
ID: 18295
Updated by: mmacwing@irisa.fr
Reported By: mmacwing@irisa.fr
-Status: Bogus
+Status: Closed
Bug Type: Compile Failure
Operating System: Solaris 2.7
PHP Version: 4.2.1
New Comment:
Sorry ;-)
Previous Comments:
------------------------------------------------------------------------
[2002-07-12 04:21:48] sniper@php.net
By searching the bug database you would have save my time and yours as
this has already been reported several times..
But again, this is not any bug in PHP but a 'bug' in openssl. And it's
fixed in OpenSSL 0.9.7.
You can also try the latest CVS snapshot of PHP:
http://snaps.php.net/php4-latest.tar.gz
Which should work also with Openssl 0.9.6 (it has a workaround which
_might_ work in your case too)
------------------------------------------------------------------------
[2002-07-12 04:20:24] mmacwing@irisa.fr
./configure --prefix=/udd/mmacwing/usr/local/php-4.2.1/
--with-config-file-path=/udd/mmacwing/usr/local/php-4.2.1/
--with-apxs=/udd/mmacwing/usr/local/apache/bin/apxs
--with-ldap=/udd/mmacwing/usr/local/openldap-2.0.25/
--with-openssl=/udd/mmacwing/usr/local/openssl-0.9.6d/
--with-mysql --enable-track-vars --enable-versioning --with-xml
Making all in .
/bin/sh /udd/mmacwing/usr/src/php-4.2.1/libtool --silent
--mode=compile
gcc -I. -I/udd/mmacwing/usr/src/php-4.2.1/
-I/udd/mmacwing/usr/src/php-4.2.1/main
-I/udd/mmacwing/usr/src/php-4.2.1
-I/udd/mmacwing/usr/local/apache_1.3.26/include
-I/udd/mmacwing/usr/src/php-4.2.1/Zend
-I/udd/mmacwing/usr/local/openssl-0.9.6d//include
-I/udd/mmacwing/usr/src/php-4.2.1/ext/xml/expat
-D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=270 -DMOD_SSL=208110 -DEAPI
-DSHARED_CORE -DEAPI -I/udd/mmacwing/usr/src/php-4.2.1/TSRM -O2
-I/udd/mmacwing/usr/local/openssl-0.9.6d/include
-I/udd/mmacwing/usr/local/openldap-2.0.25/include -DEAPI -prefer-pic
-c
stub.c
/bin/sh /udd/mmacwing/usr/src/php-4.2.1/libtool --silent --mode=link
gcc
-I. -I/udd/mmacwing/usr/src/php-4.2.1/
-I/udd/mmacwing/usr/src/php-4.2.1/main
-I/udd/mmacwing/usr/src/php-4.2.1
-I/udd/mmacwing/usr/local/apache_1.3.26/include
-I/udd/mmacwing/usr/src/php-4.2.1/Zend
-I/udd/mmacwing/usr/local/openssl-0.9.6d//include
-I/udd/mmacwing/usr/src/php-4.2.1/ext/xml/expat
-D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=270 -DMOD_SSL=208110 -DEAPI
-DSHARED_CORE -DEAPI -I/udd/mmacwing/usr/src/php-4.2.1/TSRM -O2
-I/udd/mmacwing/usr/local/openssl-0.9.6d/include
-I/udd/mmacwing/usr/local/openldap-2.0.25/include -DEAPI -prefer-pic
-R/udd/mmacwing/usr/local/openldap-2.0.25/lib/
-R/udd/mmacwing/usr/local/openssl-0.9.6d/lib/
-L/udd/mmacwing/usr/local/openldap-2.0.25/lib/
-L/udd/mmacwing/usr/local/openssl-0.9.6d/lib/ -o libphp4.la -rpath
/udd/mmacwing/usr/src/php-4.2.1/libs -export-symbols
/udd/mmacwing/usr/src/php-4.2.1/sapi/apache/php.sym -avoid-version
-L/usr/ucblib -L/udd/mmacwing/usr/local/openssl-0.9.6d//lib
-R/udd/mmacwing/usr/local/openldap-2.0.25/lib/
-R/udd/mmacwing/usr/local/openssl-0.9.6d/lib/
-L/udd/mmacwing/usr/local/openldap-2.0.25/lib/
-L/udd/mmacwing/usr/local/openssl-0.9.6d/lib/ -R /usr/ucblib -R
/udd/mmacwing/usr/local/openssl-0.9.6d//lib stub.lo Zend/libZend.la
sapi/apache/libsapi.la main/libmain.la regex/libregex.la
/udd/mmacwing/usr/src/php-4.2.1/ext/ctype/libctype.la
/udd/mmacwing/usr/src/php-4.2.1/ext/openssl/libopenssl.la
/udd/mmacwing/usr/src/php-4.2.1/ext/pcre/libpcre.la
/udd/mmacwing/usr/src/php-4.2.1/ext/posix/libposix.la
/udd/mmacwing/usr/src/php-4.2.1/ext/session/libsession.la
/udd/mmacwing/usr/src/php-4.2.1/ext/standard/libstandard.la
/udd/mmacwing/usr/src/php-4.2.1/ext/xml/libxml.la TSRM/libtsrm.la
-lpam
-lcrypt -lssl -lcrypto -lresolv -lresolv -lm -ldl -lsocket -lsocket
-lcrypt -ldl
/usr/local/gcc-2.95.3/sparc-sun-solaris2.7/bin/ld:
.libs/libphp4.so:
undefined versioned symbol name des_encrypt1@@SUNWprivate_1.1
/usr/local/gcc-2.95.3/sparc-sun-solaris2.7/bin/ld: failed to set
dynamic
section sizes: Bad value
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `libphp4.la'
Current working directory /udd/mmacwing/usr/src/php-4.2.1
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
I have compiled OpenLDAP with-tls (SSL) support and that's why I
need
OpenSSL support to compile PHP. Otherwise PHP's ./configure script
returns :
./configure --prefix=/udd/mmacwing/usr/local/php-4.2.1/
--with-config-file-path=/udd/mmacwing/usr/local/php-4.2.1/
--with-apxs=/udd/mmacwing/usr/local/apache/bin/apxs
--with-ldap=/udd/mmacwing/usr/local/openldap-2.0.25/
--with-mysql --enable-track-vars --enable-versioning --with-xml
The problem here seems to be OpenSSL because when I add
--with-openssl=... the warning message
below disappear :
+--------------------------------------------------------------------+
| *** ATTENTION ***
|
|
|
| Something is likely to be messed up here, because the configure
|
| script was not able to detect a simple feature on your platform.
|
| This is often caused by incorrect configuration parameters. Please
|
| see the file debug.log for error messages.
|
|
|
| If you are unable to fix this, send the file debug.log to the
|
| php-install@lists.php.net mailing list and include appropiate
|
| information about your setup.
|
+--------------------------------------------------------------------+
.... and in the file "debug.log" :
gcc -o conftest -O2 -I/udd/mmacwing/usr/local/openssl/ -DEAPI
-D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=270 -DMOD_SSL=208110 -DEAPI
-DSHARED_CORE -DEAPI -R/usr/ucblib -L/u
sr/ucblib -R/udd/mmacwing/usr/local/openldap//lib
-L/udd/mmacwing/usr/local/openldap//lib conftest.c -lldap -llber
-lcrypt
-lresolv -lresolv -lm -ldl -lsocket -lsocket
-lcrypt 1>&5
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`SSL_CTX_set_tmp_rsa_callback'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`RAND_load_file'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`X509V3_EXT_get'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`RAND_write_file'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`RSA_generate_key'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`SSL_CTX_free'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`X509_free'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`SSL_load_client_CA_file'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`SSL_shutdown'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`X509_NAME_oneline'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`X509_get_ext'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`X509_STORE_CTX_get_error_depth'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`SSL_CTX_set_default_verify_paths'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`SSL_get_error'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`sk_num'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`SSL_read'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`SSL_new'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`SSL_CTX_new'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`SSL_library_init'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`ERR_peek_error'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`SSL_CTX_load_verify_locations'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`X509_NAME_get_text_by_NID'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`SSL_pending'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`SSL_CTX_set_verify'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`SSL_set_bio'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`RAND_egd'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`CRYPTO_free'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`SSL_load_error_strings'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`RAND_file_name'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`ERR_get_error_line'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`SSL_CTX_set_cipher_list'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`X509V3_add_standard_extensions'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`BIO_new'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`sk_value'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`RAND_status'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`X509_get_subject_name'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`ERR_error_string'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`SSL_accept'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`X509_STORE_CTX_get_current_cert'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`EVP_cleanup'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`X509V3_EXT_d2i'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`ASN1_STRING_data'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`ASN1_STRING_length'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`SSL_get_current_cipher'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`SSL_CIPHER_get_bits'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`SSLv23_method'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`X509_get_ext_by_NID'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`SSL_alert_desc_string_long'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`SSL_CTX_use_PrivateKey_file'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`SSL_CTX_check_private_key'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`ERR_free_strings'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`SSL_alert_type_string_long'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`X509_STORE_CTX_get_error'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`SSL_CTX_use_certificate_file'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`SSL_state_string_long'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`SSL_connect'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`X509_get_issuer_name'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`SSL_free'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`SSL_get_peer_certificate'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`SSL_CTX_set_client_CA_list'
/udd/mmacwing/usr/local/openldap//lib/libldap.so: undefined
reference to
`SSL_write'
collect2: ld returned 1 exit status
Michel MAC WING - Expert Engineer R&D
SYMBIOSE Project - GenoGRID - http://www.irisa.fr/symbiose/
IRISA/INRIA Rennes
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/18295
--
Edit this bug report at http://bugs.php.net/?id=18295&edit=1