Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 425170 - net-dns/bind-9.8.3_p1[xml]: incorrect version check with libxml2 >= 2.8.0
Summary: net-dns/bind-9.8.3_p1[xml]: incorrect version check with libxml2 >= 2.8.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Christian Ruppert (idl0r)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-07 15:41 UTC by Bruno
Modified: 2012-07-28 20:07 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
config.log (see lines around 1682) (config.log,130.94 KB, text/plain)
2012-07-07 15:46 UTC, Bruno
Details
Fix bind configure script to accept libxml2-2.8.x (bind-libxml2.patch,372 bytes, patch)
2012-07-07 16:24 UTC, Bruno
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bruno 2012-07-07 15:41:58 UTC
Bind compiled with USE=xml does not include support of XML-statistics and configure says it did not find libxml2.

Reproducible: Always
Comment 1 Bruno 2012-07-07 15:46:17 UTC
Created attachment 317498 [details]
config.log (see lines around 1682)

configure:15340: checking for libxml2 library
configure:15385: result: no
Comment 2 Bruno 2012-07-07 15:57:56 UTC
Extract from configure, starting at line 15337.

It seems like bind does not like the now stable libxml2-2.8.0 I have installed,
see the xml2-config --version check.



#
# was --with-libxml2 specified?
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2 library" >&5
$as_echo_n "checking for libxml2 library... " >&6; }

# Check whether --with-libxml2 was given.
if test "${with_libxml2+set}" = set; then :
  withval=$with_libxml2; use_libxml2="$withval"
else
  use_libxml2="auto"
fi


case "$use_libxml2" in
        no)
                DST_LIBXML2_INC=""
                ;;
        auto|yes)
                case X`(xml2-config --version) 2>/dev/null` in
                X2.[67].*)
                        libxml2_libs=`xml2-config --libs`
                        libxml2_cflags=`xml2-config --cflags`
                        ;;
                *)
                        libxml2_libs=
                        libxml2_cflags=
                        ;;
                esac
                ;;
        *)
                if test -f "$use_libxml2/bin/xml2-config" ; then
                        libxml2_libs=`$use_libxml2/bin/xml2-config --libs`
                        libxml2_cflags=`$use_libxml2/bin/xml2-config --cflags`
                fi
                ;;
esac

if test "X$libxml2_libs" != "X"
then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        CFLAGS="$CFLAGS $libxml2_cflags"
        LIBS="$LIBS $libxml2_libs"

$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h

else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
Comment 3 Bruno 2012-07-07 16:24:34 UTC
Created attachment 317504 [details, diff]
Fix bind configure script to accept libxml2-2.8.x
Comment 4 Stef Simoens 2012-07-28 12:06:11 UTC
same problem with the the recently stabilized net-dns/bind-9.9.1_p2
Comment 5 Christian Ruppert (idl0r) gentoo-dev 2012-07-28 20:07:21 UTC
This has been fixed in bind-9.9.1_p2-r1. The patch has also been sent to ISC.
Thanks!