Bug #47279 [Com]: Symbol xmlTextReaderSetup definition was not found
Edit report at http://bugs.php.net/bug.php?id=47279&edit=1
ID: 47279
Comment by: rodri dot martins at gmail dot com
Reported by: johntmills at yahoo dot com
Summary: Symbol xmlTextReaderSetup definition was not found
Status: Bogus
Type: Bug
Package: Apache2 related
Operating System: AIX537
PHP Version: 5.2.8
Block user comment: N
New Comment:
# gmake -k install
Installing PHP SAPI module: apache2handler
/usr/local/buildforge/apache/build/instdso.sh
SH_LIBTOOL='/usr/local/buildforge/apache/build/libtool' libphp5.la
/usr/local/buildforge/apache/modules
rm -f /usr/local/buildforge/apache/modules/libphp5.so
/usr/local/buildforge/apache/build/libtool --mode=install cp libphp5.la
/usr/local/buildforge/apache/modules/
cp .libs/libphp5.a /usr/local/buildforge/apache/modules/libphp5.a
cp .libs/libphp5.lai /usr/local/buildforge/apache/modules/libphp5.la
libtool: install: warning: remember to run `libtool --finish
/install/update/php-5.2.6/libs'
chmod 755 /usr/local/buildforge/apache/modules/libphp5.so
chmod: /usr/local/buildforge/apache/modules/libphp5.so: A file or
directory in the path name does not exist.
apxs:Error: Command failed with rc=65536
.
gmake: *** [install-sapi] Error 1
Installing PHP CLI binary: /usr/local/buildforge/php/bin/
Installing PHP CLI man page: /usr/local/buildforge/php/man/man1/
Installing shared extensions:
/usr/local/buildforge/php/lib/php/extensions/no-debug-non-zts-20060613/
Installing build environment:
/usr/local/buildforge/php/lib/php/build/
Installing header files:
/usr/local/buildforge/php/include/php/
Installing helper programs: /usr/local/buildforge/php/bin/
program: phpize
program: php-config
Installing man pages: /usr/local/buildforge/php/man/man1/
page: phpize.1
page: php-config.1
Installing PEAR environment: /usr/local/buildforge/php/lib/php/
[PEAR] PEAR - already installed: 1.7.1
Wrote PEAR system config file at:
/usr/local/buildforge/php/etc/pear.conf
You may want to add: /usr/local/buildforge/php/lib/php to your php.ini
include_path
Installing PDO headers:
/usr/local/buildforge/php/include/php/ext/pdo/
gmake: Target `install' not remade because of errors.
# cp .libs/libphp5.a /usr/local/buildforge/apache/modules/libphp5.a
# cp .libs/libphp5.lai /usr/local/buildforge/apache/modules/libphp5.la
# cp .libs/libphp5.so /usr/local/buildforge/apache/modules/libphp5.so
# chmod 755 /usr/local/buildforge/apache/modules/libphp5.so
# chmod 755 /usr/local/buildforge/apache/modules/libphp5.la
# chmod 755 /usr/local/buildforge/apache/modules/libphp5.a
# /usr/local/buildforge/apache/bin/apachectl start
httpd: Syntax error on line 55 of
/usr/local/buildforge/apache/conf/httpd.conf: Cannot load
/usr/local/buildforge/apache/modules/libphp5.so into server: rtld:
0712-001 Symbol xmlTextReaderSetup was referenced\n from module
/usr/local/buildforge/apache/modules/libphp5.so(), but a runtime
definition\n of the symbol was not found.
Previous Comments:
------------------------------------------------------------------------
[2010-04-12 14:36:45] praveen_parim at yahoo dot co dot in
#export LD_LIBRARY_PATH=/usr/local/lib
That's all
------------------------------------------------------------------------
[2009-02-09 13:43:15] johntmills at yahoo dot com
I have confirmed this is a IBMIHS (apache2) issue. I was able to build
the PHP tree versus a vanilla apache binary with no errors and full
functionality. The LD_LIBRARY_PATH that is not being set is the one for
the 'apachectl start' routine, not for the compilation of PHP.
------------------------------------------------------------------------
[2009-02-02 21:24:12] jani@php.net
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
Set your LD_LIBRARY_PATH properly.
------------------------------------------------------------------------
[2009-02-02 14:08:04] 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)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=47279&edit=1
Thread (10 messages)