From: neko at nekochan dot net
Operating system: IRIX 6.5.30
PHP version: 5.2.0RC3
PHP Bug Type: Compile Failure
Bug description: Compile failure under IRIX 6.5.30 building php_date.c
Description:
------------
Able to compile up to and including php-5.1.6 without error
(and run in a production environment). My attempt to build
php-5.2.0RC3 dies in php_date.c (an entity with internal
linkage cannot be referenced within an inline function with
external linkage).
IRIX64 Mai 6.5 6.5.30f 07202013 IP35
MIPSpro Compilers: Version 7.4.4m
Reproduce code:
---------------
'./configure'
'--prefix=/usr/nekoware/php5'
'--enable-dba'
'--enable-dbx'
'--enable-calendar'
'--enable-wddx'
'--with-config-file-path=/usr/nekoware/etc/php5'
'--with-apxs2=/usr/nekoware/apache2/bin/apxs'
'--enable-cli'
'--with-libxml-dir=/usr/nekoware'
'--with-expat-dir=/usr/nekoware'
'--with-png-dir=/usr/nekoware'
'--with-jpeg-dir=/usr/nekoware'
'--with-freetype-dir=/usr/nekoware'
'--with-zlib-dir=/usr/nekoware'
'--with-zlib'
'--with-curlwrappers'
'--with-curl=shared,/usr/nekoware'
'--with-openssl=shared,/usr/nekoware'
'--with-mysql=shared,/usr/nekoware/mysql5'
'--with-mysqli=shared,/usr/nekoware/mysql5/bin/mysql_config'
'--with-mhash=shared,/usr/nekoware'
'--with-mcrypt=shared,/usr/nekoware'
'--with-bz2=shared,/usr/nekoware'
'--enable-ftp=shared'
'--enable-sockets=shared'
'--with-gd=shared'
'--enable-sqlite-utf8'
'--with-sqlite=shared'
'--enable-exif=shared'
'--enable-dbase=shared'
'--with-xmlrpc'
'--with-gettext=shared,/usr/nekoware'
'--with-iconv-dir=/usr/nekoware'
Expected result:
----------------
Completed build.
Actual result:
--------------
/bin/sh /opt/build/php-5.2.0RC3/libtool --silent --preserve-
dup-deps --mode=compile c99 -Iext/date/lib -Iext/date/ -I/
opt/build/php-5.2.0RC3/ext/date/ -DPHP_ATOM_INC -I/opt/
build/php-5.2.0RC3/include -I/opt/build/php-5.2.0RC3/main -
I/opt/build/php-5.2.0RC3 -I/usr/nekoware/include/libxml2 -I/
usr/nekoware/include -I/opt/build/php-5.2.0RC3/ext/date/lib
-I/usr/nekoware/include/freetype2 -I/usr/nekoware/mysql5/
include/mysql -I/opt/build/php-5.2.0RC3/TSRM -I/opt/build/
php-5.2.0RC3/Zend -I/usr/nekoware/include -D_XPG_IV -L/usr/
lib32 -I/usr/include -O3 -mips4 -Wl,-rpath -Wl,/usr/
nekoware/lib -I/usr/nekoware/include -
OPT:Olimit=0:roundoff=3 -TARG:platform=IP35:proc=r14000 -c
/opt/build/php-5.2.0RC3/ext/date/php_date.c -o ext/date/
php_date.lo
c-3580 c99: ERROR File = /opt/build/php-5.2.0RC3/ext/date/
php_date.c, Line = 1495
an entity with internal linkage cannot be referenced
within an inline function
with external linkage
retval.handle = zend_objects_store_put(intern,
(zend_objects_store_dtor_t)zend_objects_destroy_object,
(zend_objects_free_object_storage_t)
date_object_free_storage_date, NULL TSRMLS_CC);
^
cc-3580 c99: ERROR File = /opt/build/php-5.2.0RC3/ext/date/
php_date.c, Line = 1496
an entity with internal linkage cannot be referenced
within an inline function
with external linkage
retval.handlers = &date_object_handlers_date;
^
cc-3580 c99: ERROR File = /opt/build/php-5.2.0RC3/ext/date/
php_date.c, Line = 1542
an entity with internal linkage cannot be referenced
within an inline function
with external linkage
retval.handle = zend_objects_store_put(intern,
(zend_objects_store_dtor_t)zend_objects_destroy_object,
(zend_objects_free_object_storage_t)
date_object_free_storage_timezone, NULL TSRMLS_CC);
^
cc-3580 c99: ERROR File = /opt/build/php-5.2.0RC3/ext/date/
php_date.c, Line = 1543
an entity with internal linkage cannot be referenced
within an inline function
with external linkage
retval.handlers = &date_object_handlers_timezone;
^
--
Edit bug report at http://bugs.php.net/?id=38696&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=38696&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=38696&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=38696&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=38696&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=38696&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=38696&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=38696&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=38696&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=38696&r=support
Expected behavior: http://bugs.php.net/fix.php?id=38696&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=38696&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=38696&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=38696&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38696&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=38696&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=38696&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=38696&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=38696&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=38696&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=38696&r=mysqlcfg