Compile - libxml2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I've opened a bug report on bug.php.net,
Compiling PHP in 5.2.2 is working with my libxml2, but not in 5.2.4 (and 5.2.5)

but developpers say me that's not a bug : I must use XML2_DIR instead of XML_DIR,

But when using configure, it say me : use libxml-dir for libxml2
using libxml2-dir is not working, in 5.2.2 and 5.2.4
using libxml-dir is working in 5.2.2 but no 5.2.4

libxml2-dir isn't an existing variable in the configuration script.


Best regards,


http://bugs.php.net/bug.php?id=43212

Description:
------------
Compilation work with PHP 5.2.2 but not 5.2.4

In 5.2.2 :
checking libxml2 install dir...
checking for xml2-config path... (cached)
/opt/freeware/libxml2/libxml2/bin/xml2-config
checking whether libxml build works... (cached) yes

In 5.2.4 :
checking for xml2-config path...
configure: error: xml2-config not found. Please check your libxml2
installation.

My xml2-config is in /opt/freeware/libxml2/2.6.30/bin

Reproduce code:
---------------
inudupb@R2$ more .envcommun
LADATE=$(date +%Y%m%d%H%M)

PATH=/opt/freeware/gcc/gcc/bin:${PATH}
export PATH

ZLIB_VERSION=1.2.3
CURL_VERSION=7.17.1
MYSQL_VERSION=4.1.18
OPENSSL_VERSION=0.9.8g
OPENLDAP_VERSION=2.3.39
APACHE_VERSION=2.0.61
FREETYPE_VERSION=2.3.5
GD_VERSION=2.0.35
JPEG_VERSION=6b
PNG_VERSION=1.2.22
XML_VERSION=2.6.30
PHP_VERSION=5.2.2

ZLIB_DIR=/opt/freeware/zlib/${ZLIB_VERSION}
CURL_DIR=/opt/freeware/curl/${CURL_VERSION}
MYSQL_DIR=/ibp/uti/msq/${MYSQL_VERSION}
OPENSSL_DIR=/opt/freeware/openssl/${OPENSSL_VERSION}
OPENLDAP_DIR=/opt/freeware/openldap/${OPENLDAP_VERSION}
APACHE_DIR=/opt/freeware/apache/${APACHE_VERSION}
FREETYPE_DIR=/opt/freeware/freetype2/${FREETYPE_VERSION}
GD_DIR=/opt/freeware/gd/${GD_VERSION}
JPEG_DIR=/opt/freeware/jpeg/${JPEG_VERSION}
PNG_DIR=/opt/freeware/libpng/${PNG_VERSION}
XML_DIR=/opt/freeware/libxml2/${XML_VERSION}
PHP_DIR=/ibp/uti/php/${PHP_VERSION}
DATADIRECT_DIR=/ibp/uti/ddt/datadirect

#####

cd php-${PHP_VERSION}

LDFLAGS="-L${FREETYPE_DIR}/lib"
CPPFLAGS="-I${DATADIRECT_DIR}/include -I${FREETYPE_DIR}/include"
CUSTOM_ODBC_LIBS="-L${DATADIRECT_DIR}/lib -lodbc -lodbcinst"
PATH=/opt/freeware/freetype2/freetype2/bin:${PATH}
export LDFLAGS CPPFLAGS CUSTOM_ODBC_LIBS PATH

make clean
../configure \
--prefix=${PHP_DIR} \
--with-config-file-path=${PHP_DIR} \
--with-apxs2=${APACHE_DIR}/bin/apxs \
--enable-safe-mode \
--enable-mbstring=all \
--enable-mbstr-enc-trans \
--enable-mbregex \
--disable-ipv6 \
--enable-libgcc \
--with-openssl=shared,${OPENSSL_DIR} \
--with-openssl-dir=${OPENSSL_DIR} \
--with-zlib=shared,${ZLIB_DIR} \
--with-zlib-dir=${ZLIB_DIR} \
--with-ldap=shared,${OPENLDAP_DIR} \
--with-libxml-dir=${XML2_DIR} \
--with-custom-odbc=${DATADIRECT_DIR} \
--enable-simplexml \
--enable-bcmath \
--enable-calendar=shared \
--enable-ctype \
--enable-tokenizer \
--enable-session \
--with-ldap=${OPENLDAP_DIR} \
--with-curl=${CURL_DIR} \
--with-mysql=${MYSQL_DIR} \
--with-mysqli=${MYSQL_DIR}/bin/mysql_config \
--enable-ftp \
--with-jpeg-dir=${JPEG_DIR} \
--with-png-dir=${PNG_DIR} \
--with-gd=shared \
--enable-gd-native-ttf \
--with-freetype-dir=${FREETYPE_DIR}

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux