php.net |  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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: thekevinday at gmail dot com
New email:
PHP Version: OS:

 

 [2006-07-17 19:03 UTC] 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'

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-07-17 21:16 UTC] helly@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 14:01:29 2024 UTC