#38125 [NEW]: undefined reference to spl_dual_it_free_storage
| From: | thekevinday at gmail dot com | Date: | Mon, 17 Jul 2006 19:03:47 +0000 |
| Subject: | #38125 [NEW]: undefined reference to spl_dual_it_free_storage | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-99543@lists.php.net to get a copy of this message | ||
From: thekevinday at gmail dot com
Operating system: Hardened Linux From ScratchBased
PHP version: 5.1.4
PHP Bug Type: Compile Failure
Bug description: undefined reference to spl_dual_it_free_storage
Description:
------------
Also tried with php-5.2CVS (200607091430), with same results.
Also falls into "SPL Related" type of bug.
Host System: PIC based, no static files, uClibc-0.9.28, gcc-4.1.1, and
binutils 2.16.1 (also tried binutils-2.17, with same results), SSP
currently disabled.
I managed to get this to compile by removing "inline" from the code
below:
Line: #1253
File: php-5.1.4/ext/spl/spl_iterators.c
static inline void spl_dual_it_free_storage(void *_object TSRMLS_DC)
Found related bug ID's:
#35796 = old & claimed to be fixed in an old CVS
Reproduce code:
---------------
Line: #1295
File: php-5.1.4/ext/spl/spl_iterators.c
retval.handle = zend_objects_store_put(intern,
(zend_objects_store_dtor_t)zend_objects_destroy_object,
(zend_objects_free_object_storage_t) spl_dual_it_free_storage, NULL
TSRMLS_CC);
Expected result:
----------------
Successful Linking/Compilation
Actual result:
--------------
ext/spl/spl_iterators.o: in function `spl_dual_it_new':
spl_iterators.c:(.text+0x2dbd): undefined reference to
`spl_dual_it_free_storage'
--
Edit bug report at http://bugs.php.net/?id=38125&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38125&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38125&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38125&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=38125&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=38125&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=38125&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=38125&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=38125&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=38125&r=support
Expected behavior: http://bugs.php.net/fix.php?id=38125&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=38125&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=38125&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=38125&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38125&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=38125&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=38125&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=38125&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=38125&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=38125&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=38125&r=mysqlcfg