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: -
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:
Status: Open Package: Compile Failure
PHP Version: 5.3.17 OS: Linux x86_64 + x86
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
35 - 21 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Sep 16 08:01:26 2019 UTC