php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7730 unresolved text symbol (s) during final link (php creation)
Submitted: 2000-11-09 12:03 UTC Modified: 2001-07-15 15:09 UTC
From: p dot pastori at acsys dot it Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.3pl1 OS: IRIX 6.5 (6.5.8m)
Private report: No CVE-ID: None
 [2000-11-09 12:03 UTC] p dot pastori at acsys dot it
With mipsPRO 7.2.1 (the C++/C IRIX compiler) it is not possible to declare a function in an header, define this as an __inline in a module (please use the standard C inline declaration instead of a very dangerous #define inline ....) and use the same in another module (this is only possible with some rad which see and compile all code in one step). I experienced some unresolved symbols due to bad inlining policy.
Following there is a list of removed inline (this is neither a definitive list, cos i do not configure all modules, nor the better one, but simply the list of my personal fixes which let me successfully link my first php executable):
ext/standard/scanf.c(1233, scan_set_error_return)
Zend/zend_API.c(186, _array_init)
Zend/zend_API.c(199, _object_init_ex)
Zend/zend_API.c(217, _object_init)
Zend/zend_API.c(230, add_assoc_long)
Zend/zend_API.c(242, add_assoc_unset)
Zend/zend_API.c(252, add_assoc_bool)
Zend/zend_API.c(276, add_assoc_double)
Zend/zend_API.c(288, add_assoc_string)
Zend/zend_API.c(305, add_assoc_stringl)
Zend/zend_API.c(322, add_index_long)
Zend/zend_API.c(334, add_index_unset)
Zend/zend_API.c(345, add_index_bool)
Zend/zend_API.c(369, add_index_double)
Zend/zend_API.c(381, add_index_string)
Zend/zend_API.c(398, add_index_stringl)
Zend/zend_API.c(415, add_next_index_long)
Zend/zend_API.c(427, add_next_index_unset)
Zend/zend_API.c(474, add_next_index_string)
Zend/zend_API.c(491, add_next_index_stringl)
Zend/zend_API.c(542, add_get_index_long)
Zend/zend_API.c(566, add_get_index_string)
Zend/zend_API.c(632, add_property_resource)
Zend/zend_API.c(656, add_property_string)
Zend/zend_API.c(673, add_property_stringl)
Zend/zend_variables.c(36, var_reset)
Zend/zend_ptr_stack.c(35, zend_ptr_stack_push)
Zend/zend_ptr_stack.c(82, zend_ptr_stack_pop)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-23 06:17 UTC] sniper@php.net
Zend problem.

 [2001-07-11 05:21 UTC] zeev@php.net
C doesn't really have a standard inline declaration (well, the old standard doesn't, C9X does, but I don't think it's supported by all compilers yet).

At any rate, I'll take the opportunity to remove the inline declaration from some of the functions.

Jani - BTW - it's not just a Zend problem :)
 [2001-07-15 15:09 UTC] zeev@php.net
PHP should no longer contain any of these bogus inlines, so it should link OK now.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 05:01:28 2024 UTC