NetBSD Problem Report #1142

From gnats  Tue Jun 20 04:56:52 1995
Received: from pain.lcs.mit.edu (pain.lcs.mit.edu [128.52.46.239]) by sun-lamp.pc.cs.cmu.edu (8.6.11/8.6.10) with ESMTP id EAA25558 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Tue, 20 Jun 1995 04:56:46 -0400
Message-Id: <199506122133.RAA15964@cis-ts3-slip4.cis.brown.edu>
Date: Mon, 12 Jun 1995 17:33:49 -0400
From: Mark_Weaver@brown.edu
Reply-To: Mark_Weaver@brown.edu
To: gnats-bugs@NetBSD.ORG
Subject: Decl in i386/include/float.h not within __BEGIN_DECLS
X-Send-Pr-Version: 3.2

>Number:         1142
>Category:       lib
>Synopsis:       Decl in i386/include/float.h not within __BEGIN_DECLS
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    lib-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   mhw
>Arrival-Date:   Tue Jun 20 05:05:12 +0000 1995
>Closed-Date:    Tue Jun 20 16:43:16 +0000 1995
>Last-Modified:  
>Originator:     Mark Weaver
>Release:        NetBSD-current 6/7/95
>Organization:
Brown University Department of Computer Science
>Environment:
System: NetBSD cis-ts3-slip4.cis.brown.edu 1.0A NetBSD 1.0A (WEAVER) #3: Wed Jun  7 16:51:13 EDT 1995     root@:/usr/src/sys/arch/i386/compile/WEAVER i386

>Description:
	The declaration of __flt_rounds() in i386/include/float.h is
	not within __BEGIN_DECLS and __END_DECLS.  This breaks C++
	programs which try to call __flt_rounds, since they look for
	__flt_rounds__Fv instead.

>How-To-Repeat:
	Include float.h from a C++ program and try to call
	__flt_rounds().

>Fix:
*** src/sys/arch/i386/include/float.h.mhw1	Sat Apr  8 06:00:05 1995
--- src/sys/arch/i386/include/float.h	Mon Jun 12 17:19:48 1995
***************
*** 35,41 ****
--- 35,46 ----
   *	@(#)float.h	7.1 (Berkeley) 5/8/90
   */

+ #include <sys/cdefs.h>
+ 
+ __BEGIN_DECLS
  extern int __flt_rounds();
+ __END_DECLS
+ 
  #define FLT_RADIX	2		/* b */
  #define FLT_ROUNDS	__flt_rounds()

>Release-Note:
>Audit-Trail:

Responsible-Changed-From-To: gnats-admin->lib-bug-people
Responsible-Changed-By: jtc
Responsible-Changed-When: Tue Jun 20 15:59:04 1995
Responsible-Changed-Why:
This bug effects most ports.

State-Changed-From-To: open->analyzed
State-Changed-By: jtc
State-Changed-When: Tue Jun 20 16:00:47 1995
State-Changed-Why:
Effects alpha, m68k, i386, mips, and pc532.   Same patch can be used 
for all of the ports.

State-Changed-From-To: analyzed->closed
State-Changed-By: jtc
State-Changed-When: Tue Jun 20 16:43:16 1995
State-Changed-Why:
Fixed, for all ports.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.