NetBSD Problem Report #4669
Received: (qmail 9883 invoked from network); 11 Dec 1997 17:31:21 -0000
Message-Id: <199712111712.CAA01400@pppp.ap.so-net.or.jp>
Date: Fri, 12 Dec 1997 02:12:24 +0900 (JST)
From: SUNAGAWA Keiki <kei_sun@ba2.so-net.or.jp>
Reply-To: SUNAGAWA Keiki <kei_sun@ba2.so-net.or.jp>
To: gnats-bugs@gnats.netbsd.org
Subject: libc compiling failure on port-powerpc
X-Send-Pr-Version: 3.95
>Number: 4669
>Category: port-powerpc
>Synopsis: libc and libkvm compile fails on port-powerpc
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: lib-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Dec 11 09:35:01 +0000 1997
>Closed-Date: Wed Jun 16 15:28:25 +0000 1999
>Last-Modified: Wed Jun 16 15:29:34 +0000 1999
>Originator: SUNAGAWA Keiki
>Release: Dec 12 1997
>Organization:
individual
>Environment:
Host machine:
Linux version 2.1.57 (cort@cerebus.cs.nmt.edu) (gcc version 2.7.2.1-ppclinux) #316 Sat Oct 11 14:57:51 MDT 1997
binutils-2.8.1-powerpc-elf-netbsd
gcc-2.7.2.3-powerpc-elf-netbsd
Target machine:
NetBSD 1.3_BETA (GENERIC) #0: Thu Dec 11 07:46:58 JST 1997
This source was supped on Dec 04 1997.
>Description:
When I cross-compiled the library sources under linux/ppc on
the PowerMac clone, some warnings occured and it failed.
flt_rounds.c:12: warning: function declaration isn't a prototype
kvm_powerpc.c:40: vm/vm.h: No such file or directory
kvm_powerpc.c:44: kvm.h: No such file or directory
>How-To-Repeat:
See above.
>Fix:
Apply following diffs. It adds required includes.
--- ./libc/arch/powerpc/gen/flt_rounds.c.orig Sun Mar 30 10:42:59 1997
+++ ./libc/arch/powerpc/gen/flt_rounds.c Fri Dec 12 00:34:45 1997
@@ -1,11 +1,15 @@
/* $NetBSD: flt_rounds.c,v 1.1 1997/03/29 20:55:55 thorpej Exp $ */
+#include <sys/types.h>
+
static const int map[] = {
1, /* round to nearest */
0, /* round to zero */
2, /* round to positive infinity */
3 /* round to negative infinity */
};
+
+int __flt_rounds __P((void));
int
__flt_rounds()
--- ./libkvm/kvm_powerpc.c.orig Fri Sep 19 20:13:08 1997
+++ ./libkvm/kvm_powerpc.c Fri Dec 12 00:39:58 1997
@@ -35,6 +35,7 @@
* PowerPC machine dependent routines for kvm.
*/
+#include <stdlib.h>
#include <sys/param.h>
#include <vm/vm.h>
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: danw
State-Changed-When: Wed Jun 16 08:28:25 PDT 1999
State-Changed-Why:
old bug report: this was fixed on 1998-02-03 by mycroft
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.