php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43212 libxml2 not found
Submitted: 2007-11-07 13:08 UTC Modified: 2007-11-11 14:56 UTC
From: benjamin dot dupuis at quake dot fr Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.2.4 OS: AIX 5.3
Private report: No CVE-ID: None
 [2007-11-07 13:08 UTC] benjamin dot dupuis at quake dot fr
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}



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-11-11 14:56 UTC] derick@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.

You define XML_DIR but use XML2_DIR.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 18:01:31 2024 UTC