NetBSD Problem Report #53411

From john@hlin.zia.io  Thu Jun 28 19:00:58 2018
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 C4D4F7A152
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 28 Jun 2018 19:00:57 +0000 (UTC)
Message-Id: <201806281900.w5SJ0qJl025446@hlin.zia.io>
Date: Thu, 28 Jun 2018 19:00:52 GMT
From: john@ziaspace.com
Reply-To: john@ziaspace.com
To: gnats-bugs@NetBSD.org
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
>Organization:

>Environment:


System: NetBSD bbk.zia.io 8.0_RC1 NetBSD 8.0_RC1 (BOOBOOKITTY-$Revision: 8.0b $) #0: Sun Jun 24 00:10:42 UTC 2018  john@helena.zia.io:/usr/obj-mac68k/sys/arch/mac68k/compile/BOOBOOKITTY mac68k
Architecture: m68k
Machine: mac68k
>Description:

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

 >How-To-Repeat:
	<code/input/activities to reproduce the problem (multiple lines)>
>Fix:


>Audit-Trail:
From: coypu@sdf.org
To: gnats-bugs@NetBSD.org
Cc: 
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 <kivinen@iki.fi>
To: john@ziaspace.com
Cc: gnats-bugs@NetBSD.org, pkg-manager@NetBSD.org, gnats-admin@NetBSD.org,
        pkgsrc-bugs@NetBSD.org
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 libatomic.so. You do that by adding following patch
 to the net/bind914/options.mk and then adding

 PKG_OPTIONS.bind914=latomic

 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... 


 Index: options.mk
 ===================================================================
 RCS file: /cvsroot/pkgsrc/net/bind914/options.mk,v
 retrieving revision 1.2
 diff -u -u -r1.2 options.mk
 --- options.mk  14 Jun 2019 16:14:05 -0000      1.2
 +++ options.mk  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_SUPPORTED_OPTIONS+= latomic
  PKG_SUGGESTED_OPTIONS+=        readline

  PLIST_VARS+=   dnstap pkcs11
 @@ -139,3 +140,11 @@
  # to be changed so that the two can cooperate.
  CONFIGURE_ENV+=                STD_CDEFINES=-DDIG_SIGCHASE=1
  .endif
 +
 +###
 +### -latomic requires libraries from gcc5-libs
 +###
 +.if !empty(PKG_OPTIONS:Mlatomic)
 +.include "../../lang/gcc5-libs/buildlink3.mk"
 +LDFLAGS+= -L${BUILDLINK_PREFIX.gcc5-libs}/gcc5/${MACHINE_GNU_PLATFORM}/lib ${LINKER_RPATH_FLAG}${BUILDLINK_PREFIX.gcc5-libs}/gcc5/${MACHINE_GNU_PLATFORM}/lib
 +.endif
 -- 
 kivinen@iki.fi

>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.