[Home]

Summary:ASTERISK-25060: configure - libxml2 not found
Reporter:Javier Sixto (javyer)Labels:
Date Opened:2015-05-05 06:44:02Date Closed:
Priority:CriticalRegression?
Status:Open/NewComponents:General
Versions:13.18.4 Frequency of
Occurrence
Constant
Related
Issues:
is related toASTERISK-25459 New dependency on libxml2
Environment:Debian 7 i386Attachments:( 0) config.log
Description:Basically building asterisk 13, with libxml2(mandatory now)

cd /home/javier/src/libxml2-2.9.2
./configure --without-zlib --with-pic --with-python=no --prefix=/tmp/usr
make && make install

cd /home/javier/src/asterisk-13.3.2
./configure --without-pri --disable-xmldoc --with-jansson=/tmp/usr --with-libxml2=/tmp/usr
make makeopts main/version.c include/asterisk/version.h include/asterisk/build.h include/asterisk/buildopts.h defaults.h makeopts.embed_rules

checking for jansson.h... yes
checking for xml2-config... /tmp/usr/bin/xml2-config
configure: *** The Asterisk menuselect tool requires the 'libxml2' development package.
configure: *** Please install the 'libxml2' development package.
(wheezy-i386)javier@aureus:~/src/asterisk-13.3.2$ vim config.log

from config.log:
...
LIBS=''
LIBXML2_DIR='/tmp/usr'
LIBXML2_INCLUDE='-I/tmp/usr/tmp/usr/include/libxml2'
LIBXML2_LIB='-L/tmp/usr/tmp/usr/lib -lxml2 -lm -ldl'
LIBXSLT_CLEANUP_DIR=''
...

libxml2-config and libxmldir are concatenated at checking cflags...
The prepend changes comes from this :
https://github.com/asterisk/asterisk/commit/1a6db55404907b937fc2258b46ab3a7d08b732e6

Comments: