ID: 43103
Updated by: [EMAIL PROTECTED]
Reported By: ckuehn at uiuc dot edu
-Status: Open
+Status: Feedback
Bug Type: OpenSSL related
Operating System: Solaris 9
PHP Version: 5.2.4
New Comment:
Well, time.h should actually have that in it. So it's more likely that
you're including the wrong time.h..maybe it's in the sys/time.h ?
Previous Comments:
------------------------------------------------------------------------
[2007-10-25 14:42:36] ckuehn at uiuc dot edu
Adding the include line doesn't seem to have changed anything.
Adding:
long timezone;
...within the asn1_time_to_time_t function allows the build to proceed
without the error, but I'm pretty sure that's not an appropriate fix :)
------------------------------------------------------------------------
[2007-10-25 14:14:10] [EMAIL PROTECTED]
Try adding this to ext/openssl/openssl.c, around line 50:
#include <time.h>
------------------------------------------------------------------------
[2007-10-25 13:45:46] ckuehn at uiuc dot edu
Sorry for the omission. I'm using GCC 3.1.
------------------------------------------------------------------------
[2007-10-25 11:49:56] [EMAIL PROTECTED]
You didn't mention what compiler you use. If you're using Sun's cc,
make sure /opt/SUNWspro/bin/cc is used instead of /usr/ucb/cc
------------------------------------------------------------------------
[2007-10-24 22:15:26] ckuehn at uiuc dot edu
Description:
------------
The OpenSSL extension fails to build because of an undeclared variable
(timezone) in the !HAVE_TM_GMTOFF case of asn1_time_to_time_t() in
ext/openssl/openssl.c
Reproduce code:
---------------
./configure \
--prefix="/usr/local/encap/php-5.2.4" \
--sysconfdir="/usr/local/encap/php-5.2.4/etc" \
--enable-cgi \
--enable-fastcgi \
--enable-discard-path \
--with-config-file-path="/usr/local/encap/php-5.2.4/etc" \
--enable-xml \
--with-pear \
--with-mysql \
--with-pgsql \
--with-mcrypt \
--with-openssl \
--disable-shared \
--enable-static
make
Expected result:
----------------
Clean compilation.
Actual result:
--------------
/services/scratch/php-5.2.4/ext/openssl/openssl.c: In function
`asn1_time_to_time_t':
/services/scratch/php-5.2.4/ext/openssl/openssl.c:393: `timezone'
undeclared (first use in this function)
/services/scratch/php-5.2.4/ext/openssl/openssl.c:393: (Each undeclared
identifier is reported only once
/services/scratch/php-5.2.4/ext/openssl/openssl.c:393: for each
function it appears in.)
*** Error code 1
make: Fatal error: Command failed for target `ext/openssl/openssl.lo'
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43103&edit=1