Subject: port-hp300/2346: problems with /src/sys/arch/hp300/hp300/machdep.c
To: None <gnats-bugs@NetBSD.ORG>
From: Thorsten Frueauf <>
List: netbsd-bugs
Date: 04/26/1996 18:57:54
>Number:         2346
>Category:       port-hp300
>Synopsis:       problems with /src/sys/arch/hp300/hp300/machdep.c
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 26 15:20:02 1996
>Originator:     Thorsten Frueauf
>Release:        <NetBSD-current source date> NetBSD current 25.04.1996
NetBSD cybersil 1.1B NetBSD 1.1B (Milano) #7: Mon Apr 22 20:04:23 MET DST 1996     milano@cybersil:/amd/src/sys/arch/hp300/compile/Milano hp300

Compiling a current kernel on NetBSD/hp300 breaks at

Try to compile a current kernel on hp300 and watch:

cc  -O2 -Werror -msoft-float -I. -I../../../../arch -I../../../.. -DMILANO -DHP3
80 -DHP375 -DHP370 -DHP360 -DHP350 -DHP340 -DHP330 -DHP320 -DGENERIC -DDIAGNOSTI
 -DDST=1 -DMAXUSERS=32 -c ../../../../arch/hp300/hp300/machdep.c
../../../../arch/hp300/hp300/machdep.c:142: conflicting types for `consinit'
../../../../sys/systm.h:206: previous declaration of `consinit'
cc1: warnings being treated as errors
../../../../arch/hp300/hp300/machdep.c: In function `boot':
../../../../arch/hp300/hp300/machdep.c:1183: warning: `noreturn' function does r
*** Error code 1

The first conflict can be avoided with the following patch:

*** machdep.c-orig      Fri Mar 15 17:24:35 1996
--- machdep.c   Fri Apr 26 18:57:00 1996
*** 138,143 ****
--- 138,144 ----
   * before vm init or startup.  Do enough configuration
   * to choose and initialize a console.
+ void
        extern struct map extiomap[];

For the later warning I have no idea :-(
problems with /src/sys/arch/hp300/hp300/machdep.c