Bug #18295 Updated: failure compile with --openssl : e_os.h don't exist in OpenSSL-0.9.7b

From: Date: Fri, 12 Jul 2002 19:48:46 +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-14015@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: Thanks and excuse me for the others duplicated messages bugs... Ok I will try this patch this monday. Michel. Previous Comments: ------------------------------------------------------------------------ [2002-07-12 15:12:17] sander@php.net The patch below fixes the problem (against CVS HEAD, but should work on 4.2.1 too), but I'm not sure if this is the right way to fix it. OPENSSL_CONF is only defined in e_os.h, so I just grabbed it's value. Any hints/ideas are appreciated. Index: openssl.c =================================================================== RCS file: /repository/php4/ext/openssl/openssl.c,v retrieving revision 1.49 diff -u -r1.49 openssl.c --- openssl.c 13 Jun 2002 19:41:21 -0000 1.49 +++ openssl.c 12 Jul 2002 19:10:14 -0000 @@ -39,7 +39,6 @@ #include <openssl/pem.h> #include <openssl/err.h> #include <openssl/conf.h> -#include <openssl/e_os.h> #include <openssl/rand.h> #define DEFAULT_KEY_LENGTH 512 @@ -579,7 +578,7 @@ if (config_filename == NULL) { snprintf(default_ssl_conf_filename, sizeof(default_ssl_conf_filename), "%s/%s", X509_get_default_cert_area(), - OPENSSL_CONF); + "openssl.cnf"); } else strncpy(default_ssl_conf_filename, config_filename, sizeof(default_ssl_conf_filename)); ------------------------------------------------------------------------ [2002-07-12 11:29:48] mmacwing@irisa.fr 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. ------------------------------------------------------------------------ [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) ------------------------------------------------------------------------ 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

« previous php.bugs (#14015) next »