NetBSD Problem Report #43228

From woods@once.weird.com  Thu Apr 29 20:13:08 2010
Return-Path: <woods@once.weird.com>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 883E163B8FE
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 29 Apr 2010 20:13:08 +0000 (UTC)
Message-Id: <m1O7a6b-001C50C@once.weird.com>
Date: Thu, 29 Apr 2010 16:13:05 -0400 (EDT)
From: "Greg A. Woods" <woods@planix.com>
Sender: "Greg A. Woods" <woods@once.weird.com>
Reply-To: "Greg A. Woods" <woods@planix.com>
To: gnats-bugs@gnats.NetBSD.org
Subject: static linking can fail on netbsd-5 due to conflicting definitions of finite() and scalbn()
X-Send-Pr-Version: 3.95

>Number:         43228
>Category:       lib
>Synopsis:       static linking can fail on netbsd-5 due to conflicting definitions of finite() and scalbn()
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 29 20:15:00 +0000 2010
>Closed-Date:    Sat Dec 19 02:38:12 +0000 2015
>Last-Modified:  Sat Dec 19 02:38:12 +0000 2015
>Originator:     Greg A. Woods
>Release:        NetBSD 5.1_RC1 (netbsd-5 2010/04/29)
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Environment:
System: NetBSD 5.1_RC1
Architecture: i386
Machine: i386
>Description:

	static linking can fail on netbsd-5 due to conflicting
	definitions of finite() and scalbn()

	I don't know if there's another PR or not (I can't find one
	searching for the error messages), but there was mention on
	current-users:

	http://mail-index.netbsd.org/current-users/2010/02/27/msg012748.html

>How-To-Repeat:

	observe from a build of netbsd-5 with LDSTATIC=-static:

/rest/build/woods/once/netbsd-5-i386-ppro-destdir/usr/lib/libc.a(compat_ldexp_ieee754.o): In function `finite':
/rest/work/woods/m-NetBSD-5/lib/libc/../libm/src/s_finite.c:28: multiple definition of `finite'
/rest/build/woods/once/netbsd-5-i386-ppro-destdir/usr/lib/libm.a(s_finite.o):/rest/work/woods/m-NetBSD-5/lib/libm/arch/i387/s_finite
.S:(.text+0x0): first defined here
/rest/build/woods/once/netbsd-5-i386-ppro-destdir/usr/lib/libc.a(compat_ldexp_ieee754.o): In function `scalbn':
/rest/work/woods/m-NetBSD-5/lib/libc/../libm/src/s_scalbn.c:36: multiple definition of `scalbn'
/rest/build/woods/once/netbsd-5-i386-ppro-destdir/usr/lib/libm.a(s_scalbn.o):/rest/work/woods/m-NetBSD-5/lib/libm/arch/i387/s_scalbn
.S:(.text+0x0): first defined here
collect2: ld returned 1 exit status

>Fix:

	Pull up the following commit:

		http://mail-index.netbsd.org/source-changes/2010/04/23/msg009151.html

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sat, 19 Dec 2015 02:38:12 +0000
State-Changed-Why:
oops nobody ever did anything about this, but too late now
(-5 is now EOL)


>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.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.