Bug #18295 Updated: failure compile with --openssl : e_os.h don't exist in OpenSSL-0.9.7b
| From: | mmacwing at irisa dot fr | Date: | Fri, 12 Jul 2002 15:29:49 +0000 |
| Subject: | Bug #18295 Updated: failure compile with --openssl : e_os.h don't exist in OpenSSL-0.9.7b | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-13991@lists.php.net to get a copy of this message | ||
ID: 18295
Updated by: mmacwing@irisa.fr
Reported By: mmacwing@irisa.fr
Status: Open
Bug Type: Compile Failure
Operating System: Solaris 2.7
PHP Version: 4.2.1
New Comment:
Forward from Richard Levitte - Member of the OpenSSL development team
:
In message <rt-145-986.2.62055893591906@openssl.org> on Fri, 12 Jul
2002 15:43:08 +0200 (METDST), "Michel Mac Wing via RT" <rt@openssl.org>
said:
e_os.h was never meant to be exported. Starting with 0.9.7, it really
isn't exported any more. It's a mistake for external applications to
try to use it and has always been so.
rt> when I try to compile PHP :
rt>
rt> Making all in openssl
rt> /bin/sh /udd/mmacwing/usr/src/php-4.2.1/libtool --silent
rt> --mode=compile
rt> gcc -I. -I/udd/mmacwing/usr/src/php-4.2.1/ext/openssl
rt> -I/udd/mmacwing/usr/src/php-4.2.1/main
rt> -I/udd/mmacwing/usr/src/php-4.2.1
rt> -I/udd/mmacwing/usr/local/apache_1.3.26/include
rt> -I/udd/mmacwing/usr/src/php-4.2.1/Zend
rt> -I/udd/mmacwing/usr/local/openssl//include
rt> -I/udd/mmacwing/usr/src/php-4.2.1/ext/mysql/libmysql
rt> -I/udd/mmacwing/usr/src/php-4.2.1/ext/xml/expat
rt> -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=270 -DMOD_SSL=208110
-DEAPI
rt> -DSHARED_CORE -DEAPI -I/udd/mmacwing/usr/src/php-4.2.1/TSRM -O2
rt> -I/udd/mmacwing/usr/local/openssl/include
rt> -I/udd/mmacwing/usr/local/openldap/include -DEAPI -prefer-pic
-c
rt> openssl.c
rt> openssl.c:42: openssl/e_os.h: No such file or directory
rt> ^^^^^^^^^^^^^^^^^^^^^^^^
rt> *** Error code 1
rt> make: Fatal error: Command failed for target `openssl.lo'
rt> Current working directory
/udd/mmacwing/usr/src/php-4.2.1/ext/openssl
rt>
rt> *** Error code 1
rt> make: Fatal error: Command failed for target `all-recursive'
rt> Current working directory
/udd/mmacwing/usr/src/php-4.2.1/ext/openssl
rt>
rt> *** Error code 1
rt> make: Fatal error: Command failed for target `all-recursive'
rt> Current working directory /udd/mmacwing/usr/src/php-4.2.1/ext
rt> *** Error code 1
rt> make: Fatal error: Command failed for target `all-recursive'
And what exactly is attempted here?????
--
Richard Levitte \ Spannvägen 38, II \ LeViMS@stacken.kth.se
Redakteur@Stacken \ S-168 35 BROMMA \ T: +46-8-26 52 47
\ SWEDEN \ or +46-708-26 53 44
Procurator Odiosus Ex Infernis -- poei@bofh.se
Member of the OpenSSL development team: http://www.openssl.org/
Unsolicited commercial email is subject to an archival fee of $400.
See <http://www.stacken.kth.se/~levitte/mail/> for
more info.
Previous Comments:
------------------------------------------------------------------------
[2002-07-12 10:35:24] mmacwing@irisa.fr
Hi,
there is the same problem with the latest CVS snapshot ...
./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-openssl=/udd/mmacwing/usr/local/openssl/ --with-mysql
--enable-track-vars --enable-versioning --with-xml
Making all in openssl
/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/ext/openssl
-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//include
-I/udd/mmacwing/usr/src/php-4.2.1/ext/mysql/libmysql
-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/include
-I/udd/mmacwing/usr/local/openldap/include -DEAPI -prefer-pic -c
openssl.c
openssl.c:42: openssl/e_os.h: No such file or directory
*** Error code 1
make: Fatal error: Command failed for target `openssl.lo'
Current working directory /udd/mmacwing/usr/src/php-4.2.1/ext/openssl
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /udd/mmacwing/usr/src/php-4.2.1/ext/openssl
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /udd/mmacwing/usr/src/php-4.2.1/ext
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Thanks for your help.
Michel.
------------------------------------------------------------------------
[2002-07-12 04:34:48] mmacwing@irisa.fr
Sorry ;-)
------------------------------------------------------------------------
[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