#38125 [Opn->Csd]: undefined reference to spl_dual_it_free_storage
| From: | helly@php.net | Date: | Mon, 17 Jul 2006 21:16:23 +0000 |
| Subject: | #38125 [Opn->Csd]: undefined reference to spl_dual_it_free_storage | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-99550@lists.php.net to get a copy of this message | ||
ID: 38125
Updated by: helly@php.net
Reported By: thekevinday at gmail dot com
-Status: Open
+Status: Closed
Bug Type: Compile Failure
Operating System: Hardened Linux From ScratchBased
PHP Version: 5.1.4
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2006-07-17 19:03:47] thekevinday at gmail dot com
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 this bug report at http://bugs.php.net/?id=38125&edit=1