From:             benjamin dot dupuis at quake dot fr
Operating system: AIX 5.3
PHP version:      5.2.4
PHP Bug Type:     Compile Failure
Bug description:  libxml2 not found

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:
---------------
[EMAIL PROTECTED] 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}



-- 
Edit bug report at http://bugs.php.net/?id=43212&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=43212&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=43212&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=43212&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=43212&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=43212&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=43212&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=43212&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=43212&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=43212&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=43212&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=43212&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=43212&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=43212&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=43212&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=43212&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=43212&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=43212&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=43212&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=43212&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=43212&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=43212&r=mysqlcfg

Reply via email to