From owner-freebsd-current Tue Oct 22 13: 8:36 2002 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 9573537B401; Tue, 22 Oct 2002 13:08:34 -0700 (PDT) Received: from fafoe.dyndns.org (chello212186121237.14.vie.surfer.at [212.186.121.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id E4E6D43E4A; Tue, 22 Oct 2002 13:08:33 -0700 (PDT) (envelope-from stefan@fafoe.dyndns.org) Received: by frog.fafoe (Postfix, from userid 1001) id 3297E2B1; Tue, 22 Oct 2002 22:08:27 +0200 (CEST) Date: Tue, 22 Oct 2002 22:08:27 +0200 From: Stefan Farfeleder To: Terry Lambert Cc: Kris Kennaway , Ruslan Ermilov , current@FreeBSD.ORG, standards@FreeBSD.ORG Subject: Re: libstdc++ does not contain fabsl symbol Message-ID: <20021022200827.GA252@frog.fafoe> References: <20021020025400.GA13776@xor.obsecurity.org> <20021022082241.GG3325@sunbay.com> <20021022184605.GA85779@xor.obsecurity.org> <3DB5A9B6.1C2D1684@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3DB5A9B6.1C2D1684@mindspring.com> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Oct 22, 2002 at 12:40:38PM -0700, Terry Lambert wrote: > Kris Kennaway wrote: > > > > /usr/src/contrib/gperf/src/bool-array.icc:81: warning: rand() does not produce high-quality random numbers and should not generally be used > > > > /usr/obj/usr/src/i386/usr/lib/libstdc++.so: undefined reference to `fabsl' > > > > *** Error code 1 > > > > > > > This is because we lack the > > > > > > long double fabsl(long double); > > > > > > in -lm and . > > > > OK, thanks for tracking it down. This looks like an important > > omission that should be fixed for 5.0-R. > > > Is it? > > What standard defines this thing, which g++ has as a built-in? > > Alternately, the use could avoid adding the "-fno-builtin", and > the problem would go away. ISO C99 7.12.7.2 The fabs functions Synopsis #include double fabs(double x); float fabsf(float x); long double fabsl(long double x); Description The fabs functions compute the absolute value of a floating-point number x. Returns The fabs functions return | x |. Regards, Stefan Farfeleder To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message