NetBSD Problem Report #54170

From john@hlin.zia.io  Tue May  7 04:32:53 2019
Return-Path: <john@hlin.zia.io>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 175D17A169
	for <gnats-bugs@gnats.NetBSD.org>; Tue,  7 May 2019 04:32:53 +0000 (UTC)
Message-Id: <201905070424.x474Oejg014832@hlin.zia.io>
Date: Tue, 7 May 2019 04:24:40 GMT
From: john@ziaspace.com
Reply-To: john@ziaspace.com
To: gnats-bugs@NetBSD.org
Subject: net/bind11 & net/bind12 fail to compile on many archs
X-Send-Pr-Version: 3.95

>Number:         54170
>Category:       pkg
>Synopsis:       net/bind11 & net/bind12 fail to compile on many archs
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 07 04:35:00 +0000 2019
>Closed-Date:    Thu Oct 31 22:49:13 +0000 2019
>Last-Modified:  Thu Oct 31 22:49:13 +0000 2019
>Originator:     John Klos
>Release:        NetBSD 8.0_BETA
>Organization:

>Environment:


System: NetBSD hlin.zia.io 8.0_BETA NetBSD 8.0_BETA (HLIN) #0: Fri Jul 27 17:29:37 UTC 2018 john@helena.zia.io:/usr/netbsd-8_BETA/obj-evbarm/sys/arch/evbarm/compile/HLIN evbarm
Architecture: earmv7hf
Machine: evbarm
>Description:

Compiling net/bind11 fails with:

.libs/client.o: In function `mark_tcp_active':
client.c:(.text+0xf2c): undefined reference to `isc_atomic_xadd'
client.c:(.text+0xf50): undefined reference to `isc_atomic_xadd'
.libs/client.o: In function `client_accept':
client.c:(.text+0x2760): undefined reference to `isc_atomic_xadd'
client.c:(.text+0x27d8): undefined reference to `isc_atomic_xadd'
.libs/client.o: In function `exit_check':
client.c:(.text+0x33bc): undefined reference to `isc_atomic_xadd'
.libs/client.o:client.c:(.text+0x6348): more undefined references to `isc_atomic_xadd' 
follow
*** Error code 1


net/bind12 fails with:

../../lib/ns/.libs/libns.so: undefined reference to `isc_atomic_xadd'
*** Error code 1


This is with or without --disable-atomic on NetBSD ARM, m68k, VAX, 
mips64eb and sparc64, at least.


>How-To-Repeat:

>Fix:


>Release-Note:

>Audit-Trail:
From: Leonardo Taccari <leot@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/54170: net/bind11 & net/bind12 fail to compile on many archs
Date: Fri, 10 May 2019 12:12:05 +0200

 Hello John,

 john@ziaspace.com writes:
 > [...]
 > >Description:
 > 	
 > Compiling net/bind11 fails with:
 >
 > .libs/client.o: In function `mark_tcp_active':
 > client.c:(.text+0xf2c): undefined reference to `isc_atomic_xadd'
 > client.c:(.text+0xf50): undefined reference to `isc_atomic_xadd'
 > .libs/client.o: In function `client_accept':
 > client.c:(.text+0x2760): undefined reference to `isc_atomic_xadd'
 > client.c:(.text+0x27d8): undefined reference to `isc_atomic_xadd'
 > .libs/client.o: In function `exit_check':
 > client.c:(.text+0x33bc): undefined reference to `isc_atomic_xadd'
 > .libs/client.o:client.c:(.text+0x6348): more undefined references to `isc_atomic_xadd' 
 > follow
 > *** Error code 1
 >
 >
 > net/bind12 fails with:
 >
 > ../../lib/ns/.libs/libns.so: undefined reference to `isc_atomic_xadd'
 > *** Error code 1
 >
 >
 > This is with or without --disable-atomic on NetBSD ARM, m68k, VAX, 
 > mips64eb and sparc64, at least.
 > [...]

 I think that probably it's worth to try applying the following
 patches:

  <https://www.mail-archive.com/bind-users@lists.isc.org/msg27479.html>

 (WARNING: I have found link to that discussion in oss-security@
 and have not tried that, sorry!)

State-Changed-From-To: open->feedback
State-Changed-By: triaxx@NetBSD.org
State-Changed-When: Thu, 31 Oct 2019 21:53:06 +0000
State-Changed-Why:
net/bind12 has been removed from pkgsrc and is no more concerned by this PR.
net/bind11 has been updated several times. Is the issue resolved?


From: John Klos <john@ziaspace.com>
To: gnats-bugs@netbsd.org
Cc: pkg-manager@netbsd.org, pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org,
        triaxx@NetBSD.org
Subject: Re: pkg/54170 (net/bind11 & net/bind12 fail to compile on many archs)
Date: Thu, 31 Oct 2019 22:08:19 +0000 (UTC)

 > State-Changed-From-To: open->feedback
 > State-Changed-By: triaxx@NetBSD.org
 > State-Changed-When: Thu, 31 Oct 2019 21:53:06 +0000
 > State-Changed-Why:
 > net/bind12 has been removed from pkgsrc and is no more concerned by this PR.
 > net/bind11 has been updated several times. Is the issue resolved?

 net/bind11 builds on NetBSD/vax and NetBSD/m68k, at minimum. Looks good. 
 Thank you.

State-Changed-From-To: feedback->closed
State-Changed-By: triaxx@NetBSD.org
State-Changed-When: Thu, 31 Oct 2019 22:49:13 +0000
State-Changed-Why:
Updates of net/bind11 fixed the issue.
Thanks!


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.