*BSD News Article 20626


Return to BSD News archive

Newsgroups: comp.os.386bsd.bugs
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!spool.mu.edu!uwm.edu!cs.utexas.edu!uunet!news.uiowa.edu!news.weeg.uiowa.edu!jboggs
From: jboggs@umaxc.weeg.uiowa.edu (John D. Boggs)
Subject: Re: Serious bug in NetBSD 0.9 floating-point emulator
Message-ID: <1993Sep8.131632.14169@news.weeg.uiowa.edu>
Sender: jboggs@news.weeg.uiowa.edu (John D. Boggs)
Organization: University of Iowa, Iowa City, IA, USA
References: <26jrb8$89i@mudos.pc.cc.cmu.edu>
Date: Wed, 8 Sep 1993 13:16:32 GMT
Lines: 21

From article <26jrb8$89i@mudos.pc.cc.cmu.edu>, by mju@mudos.pc.cc.cmu.edu (Marc Unangst):
> The following program produces incorrect output on my NetBSD 0.9
> machine using floating-point emulation:
> 
> #include <stdio.h>
> #include <math.h>
> 
> main() {
> 	printf("sqrt(2) = %lf\n", sqrt(2));
> }
> 
> On NetBSD 0.9 with the MATH_EMULATE option, it prints "sqrt(2) = 2".

On *my* machine it prints

 "/var/tmp/cc0001971.o: Undefined symbol _sqrt referenced from text segment"

Go figure.
-- 
John D. Boggs     jdb@erato.iowa-city.ia.us
                  or  ...!access1!erato!jdb