Bug #63178 [Fbk->NoF]: phpize is not linking to php5_common

From: Date: Sun, 20 Jun 2021 04:22:13 +0000
Subject: Bug #63178 [Fbk->NoF]: phpize is not linking to php5_common
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-234536@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=63178&edit=1 ID: 63178 Updated by: php-bugs@lists.php.net Reported by: dallas at ekkysofware dot com Summary: phpize is not linking to php5_common -Status: Feedback +Status: No Feedback Type: Bug Package: Compile Failure Operating System: Linux x86_64 + x86 PHP Version: 5.3.17 Assigned To: cmb Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2021-06-10 12:53:42] 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> ------------------------------------------------------------------------ [2012-09-28 13:31:17] 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' ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=63178&edit=1

« previous php.bugs (#234536) next »