NetBSD Problem Report #42998

From www@NetBSD.org  Thu Mar 18 07:42:17 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id BB1BD63B86C
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 18 Mar 2010 07:42:16 +0000 (UTC)
Message-Id: <20100318074216.51F1063B11D@www.NetBSD.org>
Date: Thu, 18 Mar 2010 07:42:16 +0000 (UTC)
From: dennis.c.ferguson@gmail.com
Reply-To: dennis.c.ferguson@gmail.com
To: gnats-bugs@NetBSD.org
Subject: macppc POWERMAC_G5 kernel build fails in powerpc/oea/ofw_consinit.c: failsafe_cons undeclared
X-Send-Pr-Version: www-1.0

>Number:         42998
>Category:       port-macppc
>Synopsis:       macppc POWERMAC_G5 kernel build fails in powerpc/oea/ofw_consinit.c: failsafe_cons undeclared
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-macppc-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 18 07:45:00 +0000 2010
>Closed-Date:    Sat Dec 24 04:42:22 +0000 2016
>Last-Modified:  Sat Dec 24 04:42:22 +0000 2016
>Originator:     Dennis Ferguson
>Release:        macppc 5.99.24
>Organization:
>Environment:
Compile machine is:

Darwin dennislaptop 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov  3 10:35:19 PST 2009; root:xnu-1486.2.11~1/RELEASE_X86_64 x86_64
>Description:
I attempted to do a

    MACHINE=macppc ./build.sh kernel=POWERMAC_G5

and got this result:

    #   compile  POWERMAC_G5/ofw_consinit.o
    ...
    /Users/dennis/NetBSD/5.0-current/src/sys/arch/powerpc/oea/ofw_consinit.c: In function 'cninit':
    /Users/dennis/NetBSD/5.0-current/src/sys/arch/powerpc /oea/ofw_consinit.c:153: error: 'failsafe_cons' undeclared (first use in this function)
    /Users/dennis/NetBSD/5.0-current/src/sys/arch/powerpc/oea/ofw_consinit.c:153: error: (Each undeclared identifier is reported only once
    /Users/dennis/NetBSD/5.0-current/src/sys/arch/powerpc/oea/ofw_consinit.c:153: error: for each function it appears in.)

    *** Failed target:  ofw_consinit.o

The variable 'failsafe_cons' is indeed referenced in
arch/powerpc/oea/ofw_consinit.c in code #ifdef'd by PMAC_G5.
That structure is declared and initialized in
arch/macppc/macppc/failsafe.c, and that file is also compiled
into the kernel, but none of the .h files which ofw_consinit.c
includes (or any .h files in the kernel that I can find,
anywhere) have an extern declaration for it.
>How-To-Repeat:
Try to build a macppc POWERMAC_G5 kernel.  I suspect this
hasn't been done for a while since fixing (i.e. hacking
around) the problem I'm reporting here finds another one
in a source file with a name later in the alphabet.
>Fix:

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: snj@NetBSD.org
State-Changed-When: Sat, 24 Dec 2016 04:42:22 +0000
State-Changed-Why:
Fixed long ago.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.