NetBSD Problem Report #45524

From kre@munnari.OZ.AU  Wed Oct 26 11:06:58 2011
Return-Path: <kre@munnari.OZ.AU>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 9411163B86B
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 26 Oct 2011 11:06:58 +0000 (UTC)
Message-Id: <201110261106.p9QB6lOA006518@jade.coe.psu.ac.th>
Date: Wed, 26 Oct 2011 18:06:47 +0700 (ICT)
From: kre@munnari.OZ.AU
To: gnats-bugs@gnats.NetBSD.org
Subject: sysutils/9base link failures (and/or possible distinfo problem)
X-Send-Pr-Version: 3.95

>Number:         45524
>Category:       pkg
>Synopsis:       sysutils/9base link failures (and/or possible distinfo problem)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    ryoon
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 26 11:10:01 +0000 2011
>Closed-Date:    Thu Oct 27 09:59:36 +0000 2011
>Last-Modified:  Thu Oct 27 10:00:13 +0000 2011
>Originator:     Robert Elz
>Release:        NetBSD 5.0  (pkgsrc current 2011-10-26)
>Organization:
	Prince of Songkla University
>Environment:
System: NetBSD jade.coe.psu.ac.th 5.1 NetBSD 5.1 (JADE-1.12-20101117) #5: Wed Nov 17 05:30:55 ICT 2010 kre@jade.coe.psu.ac.th:/usr/obj/5.1/kernels/i386/JADE i386
Architecture: i386
Machine: i386
>Description:
	Attempting to link "hoc" from sysutils/9base fails with multiply
	defined symbols "finite" and "scalbn" (both found in libm.a)

	Before that, the package building ignores 2 patch files because
	they have no checksums in the distinfo file (patches/patch-b[bc])

	Possibly those patches were intended to be rmeoved, explaining why
	they're missing from the distinfo (but the cvs rm was never done
	or something) in which case that they were ignored is as it should
	be, and the misisng "cvs rm" just needs to be done sometime.

	Alternatively, missing applying those patches might be what caused
	the link errors.

>How-To-Repeat:
	Attempting "make package" (in a NetBSD 5.0 release environment,
	using pkg_comp with libkver installed) results in ...

===> Patching for 9base-20100604
=> Applying pkgsrc patches for 9base-20100604
**************************************
Ignoring patch file /usr/pkgsrc/sysutils/9base/patches/patch-bb: no checksum found
**************************************
**************************************
Ignoring patch file /usr/pkgsrc/sysutils/9base/patches/patch-bc: no checksum found
**************************************

	And then later ...

LD hoc
/usr/lib/libc.a(compat_ldexp_ieee754.o): In function `finite':
compat_ldexp_ieee754.c:(.text+0x0): multiple definition of `finite'
/usr/lib/libm.a(s_finite.o):/release/5/usr/src/lib/libm/arch/i387/s_finite.S:(.text+0x0): first defined here
/usr/lib/libc.a(compat_ldexp_ieee754.o): In function `scalbn':
compat_ldexp_ieee754.c:(.text+0x18): multiple definition of `scalbn'
/usr/lib/libm.a(s_scalbn.o):/release/5/usr/src/lib/libm/arch/i387/s_scalbn.S:(.text+0x0): first defined here
*** Error code 1

Stop.
make: stopped in /pkg_comp/obj/pkgsrc/sysutils/9base/5/9base-6/hoc
*** Error code 1

Stop.

>Fix:
	??

>Release-Note:

>Audit-Trail:
From: Ryo ONODERA <ryo_on@yk.rim.or.jp>
To: gnats-bugs@NetBSD.org, kre@munnari.OZ.AU
Cc: 
Subject: Re: pkg/45524: sysutils/9base link failures (and/or possible
 distinfo problem)
Date: Wed, 26 Oct 2011 20:26:43 +0900 (JST)

 Hi,

 distinfo problem is my fault.
 And I will add workaround for build on 5.0 later.

 --
 Ryo ONODERA // ryo_on@yk.rim.or.jp
 PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


Responsible-Changed-From-To: pkg-manager->ryoon
Responsible-Changed-By: ryoon@NetBSD.org
Responsible-Changed-When: Wed, 26 Oct 2011 11:33:14 +0000
Responsible-Changed-Why:
This is my fault.


State-Changed-From-To: open->feedback
State-Changed-By: ryoon@NetBSD.org
State-Changed-When: Wed, 26 Oct 2011 11:33:14 +0000
State-Changed-Why:
Fixed? Thank you.


From: "Ryo ONODERA" <ryoon@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/45524 CVS commit: pkgsrc/sysutils/9base
Date: Wed, 26 Oct 2011 11:31:13 +0000

 Module Name:	pkgsrc
 Committed By:	ryoon
 Date:		Wed Oct 26 11:31:13 UTC 2011

 Modified Files:
 	pkgsrc/sysutils/9base: Makefile distinfo
 	pkgsrc/sysutils/9base/patches: patch-bc

 Log Message:
 Fix PR pkg/45524
 * Fix typo in patch-bc (fix build on any platform).
 * Add workaround for NetBSD 5.0 build (dynamic link)
 * Add some missing distrile lines (regen distinfo).


 To generate a diff of this commit:
 cvs rdiff -u -r1.12 -r1.13 pkgsrc/sysutils/9base/Makefile
 cvs rdiff -u -r1.6 -r1.7 pkgsrc/sysutils/9base/distinfo
 cvs rdiff -u -r1.2 -r1.3 pkgsrc/sysutils/9base/patches/patch-bc

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Robert Elz <kre@munnari.OZ.AU>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: PR/45524 CVS commit: pkgsrc/sysutils/9base
Date: Wed, 26 Oct 2011 18:44:42 +0700 (ICT)

 Thanks for the speedy resolution, I'll test it as soon as your
 fixes filter through to my local cvs repository copy (probably sometime
 overnight)

 kre

From: Robert Elz <kre@munnari.OZ.AU>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45524 (sysutils/9base link failures (and/or possible distinfo problem))
Date: Wed, 26 Oct 2011 23:57:03 +0700

     Date:        Wed, 26 Oct 2011 11:33:14 +0000 (UTC)
     From:        ryoon@NetBSD.org
     Message-ID:  <20111026113314.EEA8F63B86B@www.NetBSD.org>

   | Fixed?

 Yes, that works, thanks.  However, unless you have some reason to
 believe that NetBSD 5.2 (should it ever appear) will be different
 than 5.0 and 5.1, and currently I see no reason to suppose that
 will be true, then I think I'd replace ...

 .if !empty(MACHINE_PLATFORM:MNetBSD-5.0*) || !empty(MACHINE_PLATFORM:MNetBSD-5.1*)

 with

 .if !empty(MACHINE_PLATFORM:MNetBSD-5.[0-8]*)

 and be done with it (leaving just 5.9* - which we can presume to be 5.99.*,
 I can't see us ever getting to an actual NetBSD 5.9 release...)

 kre


State-Changed-From-To: feedback->closed
State-Changed-By: ryoon@NetBSD.org
State-Changed-When: Thu, 27 Oct 2011 09:59:36 +0000
State-Changed-Why:
Confirmed fixed.


From: "Ryo ONODERA" <ryoon@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/45524 CVS commit: pkgsrc/sysutils/9base
Date: Thu, 27 Oct 2011 09:58:44 +0000

 Module Name:	pkgsrc
 Committed By:	ryoon
 Date:		Thu Oct 27 09:58:44 UTC 2011

 Modified Files:
 	pkgsrc/sysutils/9base: Makefile

 Log Message:
 Conver to use MACHINE_PLATFORM:MNetBSD-5.[0-8]* for NetBSD 5.2 or later.
 Ponted out in PR pkg/45524


 To generate a diff of this commit:
 cvs rdiff -u -r1.13 -r1.14 pkgsrc/sysutils/9base/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.