Subject: port-hp300/2346: problems with /src/sys/arch/hp300/hp300/machdep.c
To: None <gnats-bugs@NetBSD.ORG>
From: Thorsten Frueauf <frueauf@ira.uka.de>
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
>Last-Modified:
>Originator: Thorsten Frueauf
>Organization:
private
>Release: <NetBSD-current source date> NetBSD current 25.04.1996
>Environment:
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
>Description:
Compiling a current kernel on NetBSD/hp300 breaks at
/src/sys/arch/hp300/hp300/machdep.c.
>How-To-Repeat:
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
C -DDEBUG -DDDB -DCOMPAT_HPUX -DCOMPAT_NOLABEL -DUSELEDS -DFPSP -DTCP_COMPAT_42
-DMROUTING -DGATEWAY -DINET -DMFS -DPROCFS -DFDESC -DKERNFS -DUNION -DNFSCLIENT
-DNFSSERVER -DCD9660 -DQUOTA -DFFS -DFIFO -DNKMEMCLUSTERS=1024 -DKTRACE -DSYSVMS
G -DSYSVSEM -DSYSVSHM -DCOMPAT_10 -DCOMPAT_09 -DCOMPAT_44 -DCOMPAT_43 -DDEVPAGER
-DVNODEPAGER -DSWAPPAGER -D_KERNEL -Dmc68020 -Dhp300 -DFPCOPROC -DTIMEZONE=480
-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
eturn
*** Error code 1
>Fix:
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
consinit()
{
extern struct map extiomap[];
For the later warning I have no idea :-(
>Audit-Trail:
>Unformatted:
problems with /src/sys/arch/hp300/hp300/machdep.c