[xml/sgml-pkgs] Bug#776724: libxml2: Cannot build asterisk using this version of libxml2

Jon Westgate 0ryn at fsck.tv
Sat Jan 31 18:45:19 UTC 2015


Package: libxml2
Version: 2.9.2+dfsg1-2
Severity: important

Dear Maintainer,

Hi, I'm not sure if this is a libxml2 bug or an asterisk bug.
But put simply if you try to run the ./configure --prefix=/usr script from the asterisk-13 directory I get this error:

checking for xml2-config... /usr/bin/xml2-config
configure: *** The Asterisk menuselect tool requires the 'libxml2' development package.
configure: *** Please install the 'libxml2' development package.

After uninstalling and re-installing the libxml2 (dpkg -P libxml2-dev && apt-get install libxml2-dev) it still didn't fix the problem.  I checked and this same problems also occers with asterisk-12 too.

I did get asterisk to congigure by reverting back to version 2.9.2+dfsg1-1+b1 and this fixed things for me for both *12 and *13.

xml2-config --libs gave -lxml2 in both cases.

I don't really know where to look in order to see how asterisk is testing for libxml2-dev. I could see mention of 2 header files in configure.ac I checked and they are both there in /usr/include/libxml2/

--------------configure.ac snipit----------------
AST_EXT_TOOL_CHECK([LIBXML2], [xml2-config], , ,
        [#include <libxml/tree.h>
	#include <libxml/parser.h>],
	[LIBXML_TEST_VERSION])

if test "${PBX_LIBXML2}" != 1; then
        AC_MSG_NOTICE(*** The Asterisk menuselect tool requires the 'libxml2' development package.)
        AC_MSG_NOTICE(*** Please install the 'libxml2' development package.)
        exit 1
fi
-------End of configure.ac snipit----------------
I tried commenting out the exit 1 and it let the configure script continue
Only for it to end with this:
checking for xml2-config... /usr/bin/xml2-config
configure: error: Could not find required 'Libxml2' development package
Any ideas?


-- System Information:
Debian Release: 8.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.18.5 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libxml2 depends on:
ii  libc6              2.19-13
ii  libicu52           52.1-7
ii  liblzma5           5.1.1alpha+20120614-2+b3
ii  multiarch-support  2.19-13
ii  zlib1g             1:1.2.8.dfsg-2+b1

Versions of packages libxml2 recommends:
ii  xml-core  0.13+nmu2

libxml2 suggests no packages.

-- no debconf information



More information about the debian-xml-sgml-pkgs mailing list