php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63178 phpize is not linking to php5_common
Submitted: 2012-09-28 13:31 UTC Modified: 2021-06-20 04:22 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (50.0%)
From: dallas at ekkysofware dot com Assigned: cmb (profile)
Status: No Feedback Package: Compile Failure
PHP Version: 5.3.17 OS: Linux x86_64 + x86
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: dallas at ekkysofware dot com
New email:
PHP Version: OS:

 

 [2012-09-28 13:31 UTC] dallas at ekkysofware dot com
Description:
------------
When compiling an extension with phpize, it is not linking to the libphp5_common.so.5.3.0. Had to create a new link and add PHP_ADD_LIBRARY(php5_common, 1, TEXAS_API_SHARED_LIBADD).

This has wasted hours.

Test script:
---------------
1) create test extension:- ./ext_skel --extname=test
2) mode config.m4 to enable:- PHP_ARG_WITH(test, for Texas API support,[  --with-test        Include Test support])
3) run phpize in module directory
4) run ./configure --with-test
5) run make
6) ld modules/test.so

Expected result:
----------------
ld: warning: cannot find entry symbol _start; not setting start address
/usr/lib64/../lib64/libphp5_common.so.5: undefined reference to `php_register_internal_extensions'


Actual result:
--------------
ld: warning: cannot find entry symbol _start; not setting start address
modules/test.so: undefined reference to `_zval_copy_ctor_func'
modules/test.so: undefined reference to `zend_objects_clone_members'
modules/test.so: undefined reference to `zend_hash_get_current_data_ex'
modules/test.so: undefined reference to `OnUpdateString'
modules/test.so: undefined reference to `OnUpdateLong'
modules/test.so: undefined reference to `zend_get_std_object_handlers'
modules/test.so: undefined reference to `zend_hash_exists'
modules/test.so: undefined reference to `zend_ini_string_ex'
modules/test.so: undefined reference to `zend_object_std_dtor'
modules/test.so: undefined reference to `add_assoc_zval_ex'
modules/test.so: undefined reference to `_emalloc'
modules/test.so: undefined reference to `zend_unregister_ini_entries'
modules/test.so: undefined reference to `zend_hash_move_forward_ex'
modules/test.so: undefined reference to `php_info_print_table_header'
modules/test.so: undefined reference to `php_info_print_table_row'
modules/test.so: undefined reference to `zend_object_store_get_object'
modules/test.so: undefined reference to `_ecalloc'
modules/test.so: undefined reference to `add_next_index_long'
modules/test.so: undefined reference to `add_assoc_string_ex'
modules/test.so: undefined reference to `ap_php_snprintf'
modules/test.so: undefined reference to `_zval_ptr_dtor'
modules/test.so: undefined reference to `zend_replace_error_handling'
modules/test.so: undefined reference to `zend_strndup'
modules/test.so: undefined reference to `zend_throw_exception_ex'
modules/test.so: undefined reference to `zend_objects_store_put'
modules/test.so: undefined reference to `php_info_print_table_end'
modules/test.so: undefined reference to `zend_register_ini_entries'
modules/test.so: undefined reference to `php_info_print_table_start'
modules/test.so: undefined reference to `zend_hash_find'
modules/test.so: undefined reference to `zend_hash_internal_pointer_reset_ex'
modules/test.so: undefined reference to `zend_restore_error_handling'
modules/test.so: undefined reference to `zend_declare_class_constant_long'
modules/test.so: undefined reference to `zend_register_internal_class'
modules/test.so: undefined reference to `_zend_hash_init'
modules/test.so: undefined reference to `zend_parse_parameters'
modules/test.so: undefined reference to `add_next_index_zval'
modules/test.so: undefined reference to `zval_add_ref'
modules/test.so: undefined reference to `OnUpdateBool'
modules/test.so: undefined reference to `zval_used_for_init'
modules/test.so: undefined reference to `_efree'
modules/test.so: undefined reference to `add_assoc_stringl_ex'
modules/test.so: undefined reference to `zend_hash_copy'
modules/test.so: undefined reference to `add_assoc_long_ex'
modules/test.so: undefined reference to `_array_init'
modules/test.so: undefined reference to `zend_ini_long'
modules/test.so: undefined reference to `php_sprintf'
modules/test.so: undefined reference to `_safe_malloc'
modules/test.so: undefined reference to `add_assoc_double_ex'
modules/test.so: undefined reference to `display_ini_entries'


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-06-10 12:53 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-06-10 12:53 UTC] cmb@php.net
Is that still an issue with any of the actively supported PHP
versions[1]?

[1] <https://www.php.net/supported-versions.php>
 [2021-06-20 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Oct 14 00:01:27 2024 UTC