bin/182029: Link error in usr.bin/dig in buildworld if WITH_BIND_XML=yes

Henri Hennebert hlh at
Thu Sep 12 10:30:00 UTC 2013

>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
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 12 10:30:00 UTC 2013
>Originator:     Henri Hennebert
>Release:        FreeBSD 9.2-PRERELEASE
Retired old fart
FreeBSD morzine.restart.bel 9.2-BETA2 FreeBSD 9.2-BETA2 #0 r253704M: Sat Jul 27 15:08:00 CEST 2013     root at morzine.restart.bel:/usr/obj/usr/src/sys/MORZINE  i386
Dig can't be linked if WITH_BIND_XML=yes is added to /etc/src.conf.

[root at 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 at morzine src]# make -s buildworld
===> usr.bin/dig (all)
warning: passing 'const char *' to parameter of type 'void *' discards
qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
        isc_buffer_init(&buffer, str, len);
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
*** [dig] Error code 1

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


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


More information about the freebsd-bugs mailing list