Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Oct 2002 22:08:27 +0200
From:      Stefan Farfeleder <e0026813@stud3.tuwien.ac.at>
To:        Terry Lambert <tlambert2@mindspring.com>
Cc:        Kris Kennaway <kris@obsecurity.org>, Ruslan Ermilov <ru@FreeBSD.ORG>, current@FreeBSD.ORG, standards@FreeBSD.ORG
Subject:   Re: libstdc++ does not contain fabsl symbol
Message-ID:  <20021022200827.GA252@frog.fafoe>
In-Reply-To: <3DB5A9B6.1C2D1684@mindspring.com>
References:  <20021020025400.GA13776@xor.obsecurity.org> <20021022082241.GG3325@sunbay.com> <20021022184605.GA85779@xor.obsecurity.org> <3DB5A9B6.1C2D1684@mindspring.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <math.h>.
> > 
> > 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 <math.h>
    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-standards" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021022200827.GA252>