Bug #18295 Updated: failure compile with --openssl : e_os.h don't exist in OpenSSL-0.9.7b
| From: | sniper@php.net | Date: | Sat, 13 Jul 2002 21:02:37 +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-14091@lists.php.net to get a copy of this message | ||
ID: 18295
Updated by: sniper@php.net
Reported By: mmacwing@irisa.fr
-Status: Open
+Status: Assigned
Bug Type: Compile Failure
Operating System: Solaris 2.7
PHP Version: 4.2.1
-Assigned To:
+Assigned To: sniper
Previous Comments:
------------------------------------------------------------------------
[2002-07-13 14:55:21] sander@php.net
My patch actually wasn't the right way to fix it.
(see http://marc.theaimsgroup.com/?l=php-cvs&m=102658634714044&w=2)
Reopening...
------------------------------------------------------------------------
[2002-07-12 17:46:40] sniper@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a
documentation
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.
------------------------------------------------------------------------
[2002-07-12 15:48:45] mmacwing@irisa.fr
Thanks and excuse me for the others duplicated messages bugs...
Ok I will try this patch this monday.
Michel.
------------------------------------------------------------------------
[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.
------------------------------------------------------------------------
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