NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
undefined symbols


Joined: 20 Oct 2004
Posts: 3
Location: Scotland
Reply with quote
Apache terminates with the error

dyld: /usr/sbin/httpd Undefined symbols:
_OnUpdateInt
_OnUpdateString
__array_init
__convert_to_string
__efree
__emalloc
__erealloc
__estrdup
__estrndup
__php_stream_open_wrapper_as_file
__zend_bailout
__zval_copy_ctor
__zval_dtor
_compiler_globals
_convert_to_boolean
_convert_to_long
_display_ini_entries
_executor_globals
_get_active_function_name
_php_info_print_table_end
_php_info_print_table_row
_php_info_print_table_start
_php_printf
_sapi_add_header_ex
_sapi_globals
_sapi_module
_zend_error_cb
_zend_eval_string
_zend_extensions
_zend_get_compiled_filename
_zend_get_compiled_lineno
_zend_get_executed_filename
_zend_get_executed_lineno
_zend_get_extension
_zend_get_parameters
_zend_get_parameters_ex
_zend_hash_add_or_update
_zend_hash_destroy
_zend_hash_find
_zend_hash_get_current_data_ex
_zend_hash_get_current_key_ex
_zend_hash_index_update_or_next_insert
_zend_hash_init
_zend_hash_internal_pointer_reset_ex
_zend_hash_move_forward_ex
_zend_hash_num_elements
_zend_ini_boolean_disp
View user's profileFind all posts by ewanSend private message


Joined: 20 Oct 2004
Posts: 3
Location: Scotland
Reply with quote
running on Apache/1.3.31 (Darwin) PHP/4.3.9
Followed the install instructs, no error messages making the module.
Change php.ini and server fails while loading it...

If anybody has had similar problems or knows how to fix it your help would be much appreciated.
View user's profileFind all posts by ewanSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
it may happen if you use pre-compiled modules with stripped down exports. In this case you'd try another distribution of php binaries or compile it yourself.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 20 Oct 2004
Posts: 3
Location: Scotland
Reply with quote
Have been using:

./configure --with-zlib-dir=/usr/local \
--with-libjpeg=/sw \
--with-libtiff=/sw \
--with-libpng=/sw \
--with-gd \
--with-pgsql=/usr/local \
--with-mysql=/usr/local/mysql \
--with-xml \
--with-dom=/sw \
--with-apxs

to configure php,

./configure --enable-module=all --enable-shared=max

to configure apache.

Any suggestions on what needs done?

cheers..
View user's profileFind all posts by ewanSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
well, please post there configuration options and loading statement for dbg.so library (all relevant lines from httpd.conf and php.ini)

BTW, all the symbols are supposed to be available from php module... So check if the symbols are really exported by the php4 shared library.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 14 Nov 2004
Posts: 3
Reply with quote
I am having a similar problem on OS X with Apache/1.3.31 (Darwin), and PHP/5.0.2. In the apache error_log:

dyld: /usr/sbin/httpd Undefined symbols:
_OnUpdateLong
_OnUpdateString
__array_init
__convert_to_string
__efree
__emalloc
__erealloc
__estrdup
__estrndup
__php_stream_open_wrapper_as_file
etc.

In php.ini, I have:
extension=dbg.so

[debugger]
debugger.enabled = true
debugger.profiler_enabled = true
debugger.JIT_host = clienthost
debugger.JIT_port = 7869


In httpd.conf, I have:
LoadModule php5_module libexec/httpd/libphp5.so

AddModule mod_php5.c

According to 'nm libphp5.so', the supposedly missing symbols are there...

Any ideas?
View user's profileFind all posts by weetSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
not sure it is involved, but you may try to update ld cache (namely ld.so.cache).
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 14 Nov 2004
Posts: 3
Reply with quote
ddmitrie wrote:
not sure it is involved, but you may try to update ld cache (namely ld.so.cache).

I don't think this applies on Darwin.

Now, the module is loading just fine when php is called from the command line. It also loads fine (though it's not enabled) if called by dl('dbg.so') in a php file run through apache.

So all signs point to an Apache/Darwin problem. Googling has turned up plenty of other people with similar issues with other php modules, mod_perl, etc. Unfortunately, there don't seem to be clear solutions... If anyone else has any ideas, please share!
View user's profileFind all posts by weetSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
I didn't encounter such problems when compiled php from the official sources. If you don't like the idea of compiling yourself, please contact company you took the php distribution from.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 14 Nov 2004
Posts: 3
Reply with quote
ddmitrie wrote:
I didn't encounter such problems when compiled php from the official sources.


This is what I have been doing.

I'm starting to think the problem is with DYLD on Darwin. At the bottom of



step 5 seems to describe what is happening. Unfortunately, the given workaround there does not seem to help. Beyond that, I've run out of things to try myself.

Anyway, I appreciate your work and your attempt to help with this issue. If there's anything else I can do to help track down the problem, please let me know.
View user's profileFind all posts by weetSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
Again, I did compile PHP myself under Darwin and did not experience any problems. It looks like the commonly distributed php binaries are not capable to load extensions (stripped tables or so I do not know). If you compile php yourself you'll get everything okay, I believe.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 30 Jul 2005
Posts: 1
Reply with quote
Has anyone been able to figure this out? It's now mid-2006 and I still get this on Darwin 7.9 and php 4.3.11. It seems to happen when php_admin_flag or php_admin_value is used in the httpd.conf file.
View user's profileFind all posts by ssevennmSend private message
undefined symbols
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 2  

  
  
 Reply to topic