From owner-freebsd-current@FreeBSD.ORG Mon Dec 5 22:11:52 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A05C916A41F for ; Mon, 5 Dec 2005 22:11:52 +0000 (GMT) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id 81A9643D94 for ; Mon, 5 Dec 2005 22:11:43 +0000 (GMT) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.13.4/8.13.4) with ESMTP id jB5MBdeP019912 for ; Mon, 5 Dec 2005 14:11:39 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.13.4/8.13.1/Submit) id jB5MBdDE019911 for freebsd-current@freebsd.org; Mon, 5 Dec 2005 14:11:39 -0800 (PST) (envelope-from sgk) Date: Mon, 5 Dec 2005 14:11:39 -0800 From: Steve Kargl To: freebsd-current@freebsd.org Message-ID: <20051205221139.GA14858@troutmask.apl.washington.edu> References: <20051205213255.GA21943@troutmask.apl.washington.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051205213255.GA21943@troutmask.apl.washington.edu> User-Agent: Mutt/1.4.2.1i Subject: Re: Where's ldexpf? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2005 22:11:52 -0000 On Mon, Dec 05, 2005 at 01:32:56PM -0800, Steve Kargl wrote: > > #include > #include > > int main(void) { > float x; > x = ldexpf(2., 2); > printf("%e\n", x); > return 0; > } > > cc -o z ldexpf.c -lm > /mnt1/sgk/tmp/ccoP164Y.o(.text+0x16): In function `main': > undefined reference to `ldexpf' > > Perhpas, we need a weak reference. > > --- /usr/src/lib/msun/src/e_scalbf.c.orig Mon Dec 5 13:29:47 2005 > +++ /usr/src/lib/msun/src/e_scalbf.c Mon Dec 5 13:28:53 2005 > @@ -42,3 +42,5 @@ > return scalbnf(x,(int)fn); > #endif > } > + > +__weak_reference(scalbf, ldexpf); > Can someone commit the above patch? It is needed for all non-i386 architectures. -- Steve