|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38125 undefined reference to spl_dual_it_free_storage
Submitted: 2006-07-17 19:03 UTC Modified: 2006-07-17 21:16 UTC
From: thekevinday at gmail dot com Assigned: helly (profile)
Status: Closed Package: Compile Failure
PHP Version: 5.1.4 OS: *
Private report: No CVE-ID: None
 [2006-07-17 19:03 UTC] thekevinday at gmail dot com
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'


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-07-17 21:16 UTC]
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
Thank you for the report, and for helping us make PHP better.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Sep 17 06:03:36 2021 UTC