From nobody@FreeBSD.org  Thu Sep 12 10:22:50 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTP id 98FFDA9A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 12 Sep 2013 10:22:50 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 6DACE269F
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 12 Sep 2013 10:22:50 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r8CAMn7t031218
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 12 Sep 2013 10:22:49 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r8CAMnQj031205;
	Thu, 12 Sep 2013 10:22:49 GMT
	(envelope-from nobody)
Message-Id: <201309121022.r8CAMnQj031205@oldred.freebsd.org>
Date: Thu, 12 Sep 2013 10:22:49 GMT
From: Henri Hennebert <hlh@restart.be>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Link error in usr.bin/dig in buildworld if WITH_BIND_XML=yes
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         182029
>Category:       bin
>Synopsis:       Link error in usr.bin/dig in buildworld if WITH_BIND_XML=yes
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 12 10:30:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Fri Sep 13 08:40:00 UTC 2013
>Originator:     Henri Hennebert
>Release:        FreeBSD 9.2-PRERELEASE
>Organization:
Retired old fart
>Environment:
FreeBSD morzine.restart.bel 9.2-BETA2 FreeBSD 9.2-BETA2 #0 r253704M: Sat Jul 27 15:08:00 CEST 2013     root@morzine.restart.bel:/usr/obj/usr/src/sys/MORZINE  i386
>Description:
Dig can't be linked if WITH_BIND_XML=yes is added to /etc/src.conf.

[root@morzine src]# svn info
Path: .
Working Copy Root Path: /usr/src
URL: http://svn.restart.bel/svn-FreeBSD-base/stable/9
Relative URL: ^/stable/9
Repository Root: http://svn.restart.bel/svn-FreeBSD-base
Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Revision: 255473
Node Kind: directory
Schedule: normal
Last Changed Author: des
Last Changed Rev: 255443
Last Changed Date: 2013-09-10 12:07:21 +0200 (Tue, 10 Sep 2013)

[root@morzine src]# make -s buildworld
..
===> usr.bin/dig (all)
/usr/src/usr.bin/dig/../../contrib/bind9/bin/dig/dighost.c:4336:27:
warning: passing 'const char *' to parameter of type 'void *' discards
qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
        isc_buffer_init(&buffer, str, len);
                                 ^~~
/usr/src/usr.bin/dig/../../contrib/bind9/lib/isc/include/isc/buffer.h:225:41:
note: passing argument to parameter 'base' here
isc__buffer_init(isc_buffer_t *b, void *base, unsigned int length);
                                        ^
1 warning generated.
/usr/local/lib/libxml2.a(xzlib.o): In function `__libxml2_xzclose':
xzlib.c:(.text+0x69): undefined reference to `lzma_end'
/usr/local/lib/libxml2.a(xzlib.o): In function `xz_decomp':
xzlib.c:(.text+0x4a6): undefined reference to `lzma_code'
/usr/local/lib/libxml2.a(xzlib.o): In function `xz_make':
xzlib.c:(.text+0x8cd): undefined reference to `lzma_auto_decoder'
xzlib.c:(.text+0xa04): undefined reference to `lzma_properties_decode'
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
*** [dig] Error code 1

Stop in /usr/src/usr.bin/dig.
*** [all] Error code 1

>How-To-Repeat:

>Fix:
Obviuously, remove WITH_BIND_XML=yes from /etc/src.conf

>Release-Note:
>Audit-Trail:

From: Henri Hennebert <hlh@restart.be>
To: bug-followup@FreeBSD.org, hlh@restart.be
Cc:  
Subject: Re: bin/182029: Link error in usr.bin/dig in buildworld if WITH_BIND_XML=yes
Date: Fri, 13 Sep 2013 10:31:11 +0200

 I forget one important information:
 
 [root@morzine ~]# pkg info -g 'libxml*'
 libxml2-2.8.0_2
 
 I will try to update ports and run buildworld one more time
 
>Unformatted:
