Subject: Re: dig(1) broken on sparc netbsd-3?
To: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
From: Rick Kelly <rmk@toad.rmkhome.com>
List: port-sparc
Date: 10/21/2006 13:28:39
Hauke Fath said:
>
>after I have upgraded my ss10 (2x SM71) userland from a Juneish netbsd-3
>installation to NetBSD 3.1RC4, dig(1) gives me
>
>[hauke@pizza] ~ > ksh
>$ dig pizza.causeuse.org. @193.155.17.9 1>/dev/null ; echo $?
>Terminated
>143
>$
>
>- breaking my dyn-dns setup.
>
>dig(1) returns the same result on a single-SM51 ss20 running 3.1RC3; it
>works fine on i386 and mac68k. The mac68k and sparc 3.1RC4 snapshots were
>both cross-built on  an i386 machine.
>
>Does anybody else see this? Would building bind9 without pthreads support
>help? Should I send-pr?

From looking on line at src/usr.sbin/bin:

Makefile.inc

.if (${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64")
NAMED_USE_PTHREADS?=no
.else
NAMED_USE_PTHREADS?=yes
.endif

I found on my DNS server, which is 3.0 sparc64, that building bind without
pthreads results in that "Terminated" message for all named related commands.
Seems that bind doesn't work correctly without threads.

-- 
Rick Kelly	rmk@rmkhome.com
		<http://www.rmkhome.com/>
		<http://rkba.rmkhome.com/>