From:             mathieu dot carbonneaux at ch2o dot info
Operating system: HP-UX 11i
PHP version:      4.3.6
PHP Bug Type:     Apache2 related
Bug description:  libphp.so whon't load in apache2...

Description:
------------
have compile apache2, and i tested it separatly...is ok

after have compiled php without probleme... 
the php module has been correctly installed in dir of apache 
and the apache conf have been correctly modify...

but... when i try to start apache with php module(they work fine with
integrated apache module!), 
they can load php module...

when i verify with ldd -d have this result:
        /usr/lib/libc.2 =>      /usr/lib/libc.2
        /usr/lib/libdld.2 =>    /usr/lib/libdld.2
        /usr/lib/libc.2 =>      /usr/lib/libc.2
        /usr/local/lib/libintl.sl =>    /usr/local/lib/libintl.sl
        /usr/lib/libc.2 =>      /usr/lib/libc.2
        /usr/local/lib/libiconv.sl =>   /usr/local/lib/libiconv.sl
        /usr/lib/libc.2 =>      /usr/lib/libc.2
        /usr/local/lib/libxml2.sl =>    /usr/local/lib/libxml2.sl
        /usr/lib/libc.2 =>      /usr/lib/libc.2
        /usr/local/lib/libintl.sl =>    /usr/local/lib/libintl.sl
        /usr/lib/libm.2 =>      /usr/lib/libm.2
        /usr/local/lib/libz.sl =>       /usr/local/lib/libz.sl
        /usr/lib/libpthread.1 =>        /usr/lib/libpthread.1
        /usr/lib/libm.2 =>      /usr/lib/libm.2
        /usr/local/lib/libbz2.sl =>     /usr/local/lib/libbz2.sl
        /usr/local/lib/libdb.sl =>      /usr/local/lib/libdb.sl
        /usr/lib/libc.2 =>      /usr/lib/libc.2
        /usr/local/lib/libxslt.sl =>    /usr/local/lib/libxslt.sl
        /usr/lib/libc.2 =>      /usr/lib/libc.2
        /usr/lib/libm.2 =>      /usr/lib/libm.2
        /usr/local/lib/libintl.sl =>    /usr/local/lib/libintl.sl
        /usr/lib/libpthread.1 =>        /usr/lib/libpthread.1
        /usr/local/lib/libz.sl =>       /usr/local/lib/libz.sl
        /usr/local/lib/libxml2.sl =>    /usr/local/lib/libxml2.sl
        /usr/local/lib/libxsltbreakpoint.sl => 
/usr/local/lib/libxsltbreakpoint.sl
        /usr/lib/libc.2 =>      /usr/lib/libc.2
        /usr/local/lib/libjpeg.sl =>    /usr/local/lib/libjpeg.sl
        /usr/local/lib/libz.sl =>       /usr/local/lib/libz.sl
        /usr/local/lib/libpng.sl =>     /usr/local/lib/libpng.sl
        /usr/local/lib/X11/libXpm.sl => /usr/local/lib/X11/libXpm.sl
        /usr/lib/libX11.3 =>    /usr/lib/libX11.3
        /usr/local/lib/libt1.sl =>      /usr/local/lib/libt1.sl
        /usr/local/lib/libgd.sl =>      /usr/local/lib/libgd.sl
        /usr/lib/libc.2 =>      /usr/lib/libc.2
        /usr/local/lib/libiconv.sl =>   /usr/local/lib/libiconv.sl
        /usr/lib/libm.2 =>      /usr/lib/libm.2
        /usr/local/lib/libz.sl =>       /usr/local/lib/libz.sl
        /usr/local/lib/libpng.sl =>     /usr/local/lib/libpng.sl
        /usr/local/lib/libfreetype.sl =>       
/usr/local/lib/libfreetype.sl
        /usr/lib/libc.2 =>      /usr/lib/libc.2
        /usr/local/lib/libjpeg.sl =>    /usr/local/lib/libjpeg.sl
        /usr/lib/libX11.3 =>    /usr/lib/libX11.3
        /usr/local/lib/X11/libXpm.sl => /usr/local/lib/libXpm.sl
        /usr/lib/libdld.2 =>    /usr/lib/libdld.2
        /usr/lib/libpthread.1 =>        /usr/lib/libpthread.1
        /usr/local/lib/libexpat.sl =>   /usr/local/lib/libexpat.sl
        /usr/lib/libc.2 =>      /usr/lib/libc.2
        /usr/local/apache2/lib/libaprutil-0.sl.9 =>    
/usr/local/apache2/lib/libaprutil-0.sl.9
        /usr/lib/libc.2 =>      /usr/lib/libc.2
        /usr/local/apache2/lib/libapr-0.sl.9 =>
/usr/local/apache2/lib/libapr-0.sl.9
        /usr/lib/libc.2 =>      /usr/lib/libc.2
        /usr/lib/libdld.2 =>    /usr/lib/libdld.2
        /usr/lib/libpthread.1 =>        /usr/lib/libpthread.1
        /usr/lib/libnsl.1 =>    /usr/lib/libnsl.1
        /usr/lib/libxti.2 =>    /usr/lib/libxti.2
        /usr/lib/libm.2 =>      /usr/lib/libm.2
        /usr/lib/libcl.2 =>     /usr/lib/libcl.2
        /usr/lib/libisamstub.1 =>       /usr/lib/libisamstub.1
        /usr/lib/libdld.2 =>    /usr/lib/libdld.2
        symbol not found: _SYSTEM_ID    (/usr/lib/libc.2)
        symbol not found: _end  (/usr/lib/libc.2)
        symbol not found: __dld_loc     (/usr/lib/libdld.2)
        symbol not found: ap_loaded_modules    
(/usr/local/apache2/modules/libphp4.so)
        symbol not found: unixd_config 
(/usr/local/apache2/modules/libphp4.so)
        symbol not found: ap_server_root       
(/usr/local/apache2/modules/libphp4.so)
        symbol not found: _SYSTEM_ID    (/usr/lib/libcl.2)
        symbol not found: __dld_loc     (/usr/lib/libcl.2)

some symbole can be resolve....

have searched this symbole....

and i have found this symbol in httpd binary

#nm httpd | grep ap_server_root
ap_hack_ap_server_root_relative|1073780904|extern|data   |$DATA$
ap_server_root      |1073757188|extern|data   |$DATA$
ap_server_root_relative|    303164|extern|entry  |
ap_server_root_relative|    303216|extern|code   |$CODE$

#nm ./.libs/httpd | grep ap_loaded_modules
ap_loaded_modules   |1073757324|extern|data   |$DATA$

#nm ./.libs/httpd | grep unixd_config
unixd_config        |1073807808|undef |common |$BSS$

seem to be correctly exported by httpd....but unixd_config is
undef...!!???

and the other symbol in hp-ux library....
but before i have a same probleme with other module(mod_auth_ldap from
musquit), but only with the symbole _SYSTEM_ID, _end and __dld_loc, and
have found how to correct this in using "export
LD_PRELOAD=/usr/bin/libcl.sl" or in adding CFLAGS="-lcl" in hp-ux support
site...
but with php they dont work....

i think globale visibility probleme between httpd and loaded librairy
(libphp4.so).

i think that dyn lib can't acces to global export of the binary who have
loaded the library.

have you any idea to correct this!!!!?

how to remplace the use of apache global whith apr like fonction???!!!

Best Regards,
Mathieu


-- 
Edit bug report at http://bugs.php.net/?id=28077&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28077&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28077&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28077&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28077&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28077&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28077&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28077&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28077&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28077&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28077&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28077&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28077&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28077&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28077&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28077&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28077&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28077&r=float

Reply via email to