NetBSD Problem Report #53004

From  Sat Feb 10 18:25:33 2018
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer " CA" (not verified))
	by (Postfix) with ESMTPS id D4CC37A187
	for <>; Sat, 10 Feb 2018 18:25:32 +0000 (UTC)
Message-Id: <>
Date: Sat, 10 Feb 2018 18:25:31 +0000 (UTC)
Subject: Building a kernel with macofcons enabled fails
X-Send-Pr-Version: www-1.0

>Number:         53004
>Category:       port-macppc
>Synopsis:       Building a kernel with macofcons enabled fails
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    sevan
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 10 18:30:00 +0000 2018
>Closed-Date:    Mon Feb 26 23:15:20 +0000 2018
>Last-Modified:  Mon Feb 26 23:15:20 +0000 2018
>Originator:     Sevan Janiyan
>Release:        NetBSD-HEAD
NetBSD 8.99.12 macppc powerpc
due to multiple definitions of cn_tab

#      link  GENERIC/netbsd                                                                                                                            
/usr/src/obj/tooldir.NetBSD-8.99.12-macppc/bin/powerpc--netbsd-ld -Map --cref -N -T netbsd.ldscript -Ttext 0x100000 -e __start -S -o netbsd 
${SYSTEM_OBJ:[@]:Nswapnetbsd.o} ${EXTRA_OBJ} vers.o swapnetbsd.o                                                                                       
ofcons.o:(.data+0x4): multiple definition of `cn_tab'                                                                                                  
cons.o:(.bss+0x0): first defined here 

Removing the inclusion of cons.c from sys/arch/macppc/conf/files.macppc as a test cause more problems.
Build a kernel with
macofcons0 at pci? dev ? function ?


From: "Sevan Janiyan" <>
Subject: PR/53004 CVS commit: src/sys
Date: Mon, 26 Feb 2018 23:09:32 +0000

 Module Name:	src
 Committed By:	sevan
 Date:		Mon Feb 26 23:09:32 UTC 2018

 Modified Files:
 	src/sys/arch/macppc/conf: GENERIC GENERIC_601 MAMBO files.macppc
 	src/sys/dev: DEVNAMES
 Removed Files:
 	src/sys/arch/macppc/dev: ofcons.c

 Log Message:
 Remove support for macofcons(4), it's not actually possible to build a kernel
 with it enabled - See PR port-macppc/53004 and it may have further problems even
 From <macallan>:
 "There is some early console code that uses OF output but it causes problems
 when we get close to MMU setup - I think it can go, it hasn't been enabled in
 any config in at least a decade as far as I know."

 To generate a diff of this commit:
 cvs rdiff -u -r1.343 -r1.344 src/sys/arch/macppc/conf/GENERIC
 cvs rdiff -u -r1.19 -r1.20 src/sys/arch/macppc/conf/GENERIC_601
 cvs rdiff -u -r1.30 -r1.31 src/sys/arch/macppc/conf/MAMBO
 cvs rdiff -u -r1.106 -r1.107 src/sys/arch/macppc/conf/files.macppc
 cvs rdiff -u -r1.29 -r0 src/sys/arch/macppc/dev/ofcons.c
 cvs rdiff -u -r1.300 -r1.301 src/sys/dev/DEVNAMES

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

Responsible-Changed-From-To: port-macppc-maintainer->sevan
Responsible-Changed-When: Mon, 26 Feb 2018 23:15:20 +0000

State-Changed-From-To: open->closed
State-Changed-When: Mon, 26 Feb 2018 23:15:20 +0000
macofcons(4) has been removed.


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD:,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.