NetBSD Problem Report #37275

From martin@duskware.de  Sun Nov  4 09:37:37 2007
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 45E5063BA4A
	for <gnats-bugs@gnats.netbsd.org>; Sun,  4 Nov 2007 09:37:37 +0000 (UTC)
Message-Id: <20071104060616.8C24563BA5F@narn.NetBSD.org>
Date: Sun,  4 Nov 2007 06:06:16 +0000 (UTC)
From: hayashi@totalware.gifu.gifu.jp
Reply-To: hayashi@totalware.gifu.gifu.jp
To: netbsd-bugs-owner@NetBSD.org
Subject: bind9.4: some arch does not match configured 'platform.h'
X-Send-Pr-Version: www-1.0

>Number:         37275
>Category:       bin
>Synopsis:       bind9.4: some arch does not match configured 'platform.h'
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 04 09:40:00 +0000 2007
>Closed-Date:    Sun Oct 27 11:39:54 +0000 2019
>Last-Modified:  Sun Oct 27 11:39:54 +0000 2019
>Originator:     Akihiko HAYASHI
>Release:        current (4.99.34)
>Organization:
>Environment:
NetBSD gld198.totalware.gifu.gifu.jp 4.99.34 NetBSD 4.99.34 (HDL_G.nat) #0: Thu Nov  1 12:17:32 JST 2007  hayashi@fomalhaut.totalware.gifu.gifu.jp:/usr/home/hayashi/netbsd/armobj/sys/arch/evbarm/compile/HDL_G.nat evbarm

>Description:
from importing bind9.4, named does not work on evbarm arch.

src/usr.sbin/bind/include/isc/platform.h is configured by 
src/dist/bind/configure.in
> if test "$have_atomic" = "yes"; then
> 	ISC_PLATFORM_HAVEXADD="#define ISC_PLATFORM_HAVEXADD 1"
> 	ISC_PLATFORM_HAVECMPXCHG="#define ISC_PLATFORM_HAVECMPXCHG 1"
> 	ISC_PLATFORM_HAVEATOMICSTORE="#define ISC_PLATFORM_HAVEATOMICSTORE 1"
> else
> 	ISC_PLATFORM_HAVEXADD="#undef ISC_PLATFORM_HAVEXADD"
> 	ISC_PLATFORM_HAVECMPXCHG="#undef ISC_PLATFORM_HAVECMPXCHG"
> 	ISC_PLATFORM_HAVEATOMICSTORE="#undef ISC_PLATFORM_HAVEATOMICSTORE"
> fi

src/usr.sbin/bind/include/isc/platform.h is configured for $have_atomic = "yes" archs(i386, x86_64, sparc, mips...).
but $have_atomic = "no" on some archs.

>How-To-Repeat:
test on evbarm arch
>Fix:
configure bind9.4.1-P1 on evbarm and i386, and check diffs.
I made patch. 
http://world.uraru.net/~a.rin/NetBSD/bind.platform.diff

this patch's macro condition expression is refered src/usr.sbin/bind/include/isc/atomic.h, but I dont check other archs.

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Sun, 27 Oct 2019 11:39:54 +0000
State-Changed-Why:
Stale bug report. Now for the most part we do supply atomics for all platforms. BIND got updated a lot since. Thanks for the report and sorry it was not addressed at the time. Feel free to report if there's still a bug with the existing versions of BIND.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.