From: ckuehn at uiuc dot edu
Operating system: Solaris 9
PHP version: 5.2.4
PHP Bug Type: OpenSSL related
Bug description: OpenSSL extension fails without HAVE_TM_GMTOFF
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 bug report at http://bugs.php.net/?id=43103&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=43103&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=43103&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=43103&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=43103&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=43103&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=43103&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=43103&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=43103&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=43103&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=43103&r=support
Expected behavior: http://bugs.php.net/fix.php?id=43103&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=43103&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=43103&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=43103&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43103&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=43103&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=43103&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=43103&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=43103&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=43103&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=43103&r=mysqlcfg