NetBSD Problem Report #53411

From  Thu Jun 28 19:00:58 2018
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer " CA" (not verified))
	by (Postfix) with ESMTPS id C4D4F7A152
	for <>; Thu, 28 Jun 2018 19:00:57 +0000 (UTC)
Message-Id: <>
Date: Thu, 28 Jun 2018 19:00:52 GMT
Subject: net/bind910 fails on mac68k
X-Send-Pr-Version: 3.95

>Number:         53411
>Category:       pkg
>Synopsis:       net/bind910 fails on mac68k
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 28 19:05:00 +0000 2018
>Last-Modified:  Fri Nov 01 20:50:01 +0000 2019
>Originator:     John Klos
>Release:        NetBSD 8.0_RC1


System: NetBSD 8.0_RC1 NetBSD 8.0_RC1 (BOOBOOKITTY-$Revision: 8.0b $) #0: Sun Jun 24 00:10:42 UTC 2018 mac68k
Architecture: m68k
Machine: mac68k

Compiling net/bind910 fails on mac68k here:

making all in /usr/pkgsrc/net/bind910/work/bind-9.10.7/lib/dns
gcc -O2 -fno-reorder-blocks -m68040 -D_FORTIFY_SOURCE=2 -I/usr/include 
-I../../lib/isc/include  -I/usr/include -L/usr/lib -Wl,-rpath,/usr/lib -Wl,-R/usr/lib 
-Wl,-R/usr/local/lib -o gen ./gen.c -latomic
ld: cannot find -latomic
*** Error code 1

	<code/input/activities to reproduce the problem (multiple lines)>

Subject: Re: pkg/53411: net/bind910 fails on mac68k
Date: Sat, 30 Jun 2018 12:50:04 +0000

 We can just mark it broken for all netbsd 32bit archs.

From: Tero Kivinen <>
Subject: Re: pkg/53411: net/bind910 fails on mac68k
Date: Fri, 1 Nov 2019 20:53:41 +0200

 This same problem is still present in the net/bind914 on the i386
 (32-bit) environment. On amd64 you will not see it.

 At least on i386 you can make it work by using gcc5-libs package,
 which contains the You do that by adding following patch
 to the net/bind914/ and then adding


 to mk.conf.

 I added separate option for latomic, mostly because I am not sure
 if this problem really is in every 32-bit platform or not, and how to
 perperly test whether this platform is 32-bit or not. Compiling the
 gcc5-libs takes quite a lot of time, so we do not want to do that
 unless it is really needed... 

 RCS file: /cvsroot/pkgsrc/net/bind914/,v
 retrieving revision 1.2
 diff -u -u -r1.2
 ---  14 Jun 2019 16:14:05 -0000      1.2
 +++  1 Nov 2019 18:48:02 -0000
 @@ -5,6 +5,7 @@
  PKG_SUPPORTED_OPTIONS+=        bind-json-statistics-server blacklist
  PKG_SUPPORTED_OPTIONS+=        threads readline mysql pgsql ldap dlz-filesystem
  PKG_SUPPORTED_OPTIONS+=        geoip tuning dnstap # pkcs11
  PKG_SUGGESTED_OPTIONS+=        readline

  PLIST_VARS+=   dnstap pkcs11
 @@ -139,3 +140,11 @@
  # to be changed so that the two can cooperate.
 +### -latomic requires libraries from gcc5-libs
 +.if !empty(PKG_OPTIONS:Mlatomic)
 +.include "../../lang/gcc5-libs/"


NetBSD Home
NetBSD PR Database Search

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