Error during Build of PHP 5.2.14 on Linux

Hello,

I am consistently getting the same error. Below are the configure command and options used and the error that soon follows it.

./configure --prefix=/usr/depot/redhatel4_64/php/5.2.14
–with-oci8=instantclient,/usr/local/instantclient
–with-apxs2=/usr/local/bin/apxs --with-jpeg-dir --with-png-dir --with-gd
–with-xsl --with-ldap --with-freetype-dir=/usr/local --with-curl --with-zlib
–enable-soap --enable-sysvsem --enable-sysvshm --enable-calendar \
–enable-mbstring=all --enable-exif --with-pear
–with-config-file-path=/usr/www/conf/php --with-openssl --enable-bcmath
–with-bz2 --enable-dba --with-mysql --with-pdo-mysql --with-mysqli
–enable-shmop --with-readline --enable-sysvmsg --enable-wddx --enable-sockets
–enable-pcntl --with-gettext --enable-zip --with-libdir=lib64
–with-libxml-dir=/usr/local/lib

make |tee make.log

MAKE ERROR HERE >>>>>>
ext/xmlreader/.libs/php_xmlreader.o(.text+0x1adc): In function zim_xmlreader_setSchema': : undefined reference toxmlTextReaderSchemaValidate’
ext/xmlreader/.libs/php_xmlreader.o(.text+0x1e93): In function zim_xmlreader_XML': : undefined reference toxmlTextReaderSetup’ collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error
MAKE ERROR HERE <<<<<<

It did create a (./libs/libphp5.so) file
But I noticed (ldd ./libs/libphp5.so) result showed the following information on ‘libxml2’
./libphp5.so: /usr/lib64/libxml2.so.2: no version information available (required by ./libphp5.so)
./libphp5.so: /usr/lib64/libxml2.so.2: no version information available (required by ./libphp5.so)
./libphp5.so: /usr/lib64/libxml2.so.2: no version information available (required by ./libphp5.so)

libxml2.so.2 => /usr/lib64/libxml2.so.2 (0x0000002a9a465000)

Please note that I do pass a flag ‘–with-libxml-dir=/usr/local/lib’ to force the usage of that directory.

What can I do to ensure that during the build that it is linking to /usr/local/lib and not /usr/lib64.

SYSTEM INFO:
2.6.9-89.0.28.ELsmp #1 SMP Thu Jul 22 18:14:41 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

ENVIRONMENT:
LD_LIBRARY_PATH=/usr/local/lib:/lib64:/usr/lib:/lib:/usr/X11R6/lib
CFLAGS=-fPIC

LIBXML2 Version 2.7.7

Thank you,
Rosanna.

Sponsor our Newsletter | Privacy Policy | Terms of Service