|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2009-02-02 14:08 UTC] johntmills at yahoo dot com
Description:
------------
Compilation yields no errors but upon start I get an undefined symbol error.
Reproduce code:
---------------
export LIBPATH=$LIBPATH:/apps/IBMIHS/lib/
export ORACLE_HOME=/apps/oracle/product/10.2/client
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/rdbms/lib:$LD_LIBRARY_PATH
export PATH=/usr/vac/bin:/usr/vacpp/bin:$PATH
export CFLAGS="-I /usr/vac/include -I /usr/vacpp/include -I /usr/include -ma"
export CXXFLAGS="-I /usr/vac/include -I /usr/vacpp/include -I /usr/include -ma"
./configure --with-apxs2=/apps/IBMIHS/bin/apxs --with-libxml-dir=/opt/libxml2/2.6.30 --with-mysql=/opt/mysql/5.0.67 --with-config-file-path=/apps/IBMIHS/conf --enable-maintainer-zts --prefix=/opt/php/5.2.8 --enable-sigchild --with-oci8=/apps/oracle/product/10.2/client
make
make -i install
cp .libs/libphp5.a /apps/IBMIHS/modules/libphp5.a
cp .libs/libphp5.lai /apps/IBMIHS/modules/libphp5.la
cp -p .libs/libphp5.so /apps/IBMIHS/modules/libphp5.so
chmod 755 /apps/IBMIHS/modules/libphp5.so
Expected result:
----------------
Apache restart without errors.
Actual result:
--------------
Syntax error on line 858 of /apps/IBM/WebSphere/CommerceServer60/instances/devcommerce1/httpconf/httpd.conf:
Cannot load /apps/IBMIHS/modules/libphp5.so into server:
rtld: 0712-001 Symbol xmlTextReaderSetup was referenced from module /apps/IBMIHS/modules/libphp5.so(), but a runtime definition of the symbol was not found.
httpd.conf:858:
...
# start PHP config
LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
# ldd /apps/IBMIHS/modules/libphp5.so
/apps/IBMIHS/modules/libphp5.so needs:
/opt/mysql/5.0.67/lib/mysql/libmysqlclient_r.a(libmysqlclient_r.so.15)
/usr/lib/libpthread.a(shr_xpg5.o)
/usr/lib/libiconv.a(shr4.o)
/usr/lib/libdl.a(shr.o)
/usr/lib/libbsd_r.a(shr.o)
/oracle/app/oracle/product/10.2.0/lib32/libclntsh.so
/opt/libxml2/2.6.30/lib/libxml2.a(libxml2.so.2)
/usr/lib/libc.a(shr.o)
/usr/lib/librtl.a(shr.o)
/usr/lib/libpthreads.a(shr_comm.o)
/unix
/usr/lib/libpthreads.a(shr_xpg5.o)
/usr/lib/libodm.a(shr.o)
/usr/lib/libperfstat.a(shr.o)
/usr/lib/libcrypt.a(shr.o)
/usr/lib/libcfg.a(shr.o)
/usr/lib/liblvm.a(shr.o)
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 11 22:00:01 2025 UTC |
./configure --with-apxs2=/apps/apache/httpd-2.2.4/bin/apxs --with-libxml-dir=/opt/libxml2/2.6.30 --with-mysql=/opt/mysql/5.0.67 --with-config-file-path=/apps/apache/conf --enable-maintainer-zts --prefix=/opt/php/5.2.8 --enable-sigchild --with-oci8=/oracle/app/oracle/product/10.2.0 make -i install cp .libs/libphp5.a /apps/IBMIHS/modules/libphp5.a cp .libs/libphp5.lai /apps/IBMIHS/modules/libphp5.la cp -p .libs/libphp5.so /apps/IBMIHS/modules/libphp5.so chmod 755 /apps/IBMIHS/modules/libphp5.so libtool --finish /mnt/php/5.2.8/php-5.2.8_webcomm_aix53_src/libs cd / ; tar -cvf /mnt/php/5.2.8/php-5.2.8_webcomm_aix53.tar ./opt/php ./apps/IBMIHS/modules/libphp* ./apps/IBMIHS/conf/php.ini ; cd - cp -p ./.libs/libphp5.so /apps/apache/httpd-2.2.4/modules/libphp5.so chmod 755 /apps/apache/httpd-2.2.4/modules/libphp5.so libtool --finish /export/packages/php-5.2.8_aix53_src/libs rc.httpd details: start_httpd() { echo "Starting HTTPD..." PID=`cat /apps/apache/logs/httpd.pid 2>/dev/null` if ps -ef | grep httpd | grep -v grep | awk {'print "_" $2 "_"'} | grep "_${PID}_" 1>/dev/null 2>/dev/null then echo "HTTPD is already running..." else PRELIB=$LIBPATH LIBPATH=/apps/apache/httpd-2.2.4/lib:/opt/libxml2/2.6.30/lib export LIBPATH /apps/apache/httpd-2.2.4/bin/apachectl start LIBPATH=$PRELIB export LIBPATH fi } stop_httpd() { # stop daemon echo "Stopping HTTPD..." PID=`cat /apps/apache/logs/httpd.pid 2>/dev/null` if ps -ef | grep httpd | grep -v grep | awk {'print "_" $2 "_"'} | grep "_${PID}_" 1>/dev/null 2>/dev/null then PRELIB=$LIBPATH LIBPATH=/apps/apache/httpd-2.2.4/lib:/opt/libxml2/2.6.30/lib export LIBPATH /apps/apache/httpd-2.2.4/bin/apachectl stop LIBPATH=$PRELIB export LIBPATH else echo "HTTPD is not running..." fiI had a old build I had done of php 5.2.17 I was trying to load - and had the same error about exec(): 0509-036 Cannot load program /data/prj/php-5.2.17/sapi/cli/php because of the following errors: rtld: 0712-001 Symbol xmlTextReaderSetup was referenced from module php(), but a runtime definition of the symbol was not found. By default, AIX (this time 5.3 TL7) has a libxml2.a in /usr/lib, but this is missing the required routine. I have a version of libxml2 that can be installed, and this works without any other dependencies (is how I got it working on my test server). link: http://dl.aixtools.net/tools/aixtools.libxml2.powerpc.2.7.7.I Note: this puts the library in /opt/lib (not /usr/local/lib) as I am trying to stay away from /usr/local in all my packaging. So, you can try my library, download an RPM from someone else, or build it yourself. In any case, it is not a bug in php, nor in IHS, nor anything else. It is a requirement for a higher level than installed by default.