undefined symbols |
|
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. |
||||||||||||
|
Site Admin
|
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.
|
||||||||||||
|
|
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.. |
||||||||||||
|
Site Admin
|
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. |
||||||||||||
|
|
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? |
||||||||||||
|
Site Admin
|
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! |
||||||||||||||
|
Site Admin
|
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.
|
||||||||||||
|
|
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. |
||||||||||||||
|
Site Admin
|
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.
|
||||||||||||
|
|
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.
|
||||||||||||
|
undefined symbols |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by