Subject: Compiling current kernel on sparc
To: None <current-users@netbsd.org>
From: Tamer Ziady <nero@in-design.com>
List: current-users
Date: 08/19/1999 13:54:32
Hello all;
I am new to this list and this OS. Please bare with me. At any
rate, I installed 19990810-snapshot of netbsd on a sun4m. I am trying to
compile a new kernel and it breaks with the following:
cc -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Wno-main -I. -I../../../../arch -I../../../.. -nostdinc
-DSUN4M -DRASTERCONSOLE -DDIRECTED_BROADCAST -DMAXUSERS=132 -D_KERNEL -c
../../../../dev/rasops/rasops8.c
../../../../dev/rasops/rasops8.c: In function `rasops8_makestamp':
../../../../dev/rasops/rasops8.c:183: `ri' undeclared (first use in this
function)
../../../../dev/rasops/rasops8.c:183: (Each undeclared identifier is
reported only once
../../../../dev/rasops/rasops8.c:183: for each function it appears in.)
*** Error code 1
I know this has to do with the wscon and other console items, but I am
unsure of how to remedy this and get a working kernel.
My Config is as follows:
include "arch/sparc/conf/std.sparc"
maxusers 132
options SUN4M # sun4m - SS10, SS20, Classic, etc.
options RASTERCONSOLE # fast rasterop console
config netbsd root on ? type ?
## System call tracing (see ktrace(1)).
options KTRACE
options SYSVMSG # System V message queues
options SYSVSEM # System V semaphores
options SYSVSHM # System V shared memory
## NFS boot options; default on sparc is the bootparam protocol
options UCONSOLE
options COMPAT_43 # 4.3BSD system interfaces
options COMPAT_10 # NetBSD 1.0 binary compatibility
options COMPAT_11 # NetBSD 1.1 binary compatibility
options COMPAT_12 # NetBSD 1.2 binary compatibility
options COMPAT_13 # NetBSD 1.3 binary compatibility
options COMPAT_SUNOS # SunOS 4.x binary compatibility
options COMPAT_SVR4 # SunOS 5.x binary compatibility
#options EXEC_ELF32 # Exec module for SunOS 5.x binaries.
file-system FFS # Berkeley Fast Filesystem
file-system MFS # memory-based filesystem
file-system FDESC # user file descriptor filesystem
file-system PROCFS # /proc
options QUOTA # FFS quotas
options INET # IP (Internet Protocol) v4
options TCP_COMPAT_42 # 4.2BSD IP implementation compatibility
options GATEWAY # packet forwarding ("router switch")
options MROUTING # packet forwarding of multicast packets
options DIRECTED_BROADCAST # allow broadcasts through routers
options NETATALK # AppleTalk (over Ethernet) protocol
options NTP # Network Time Protocol in-kernel support
mainbus0 at root
cpu0 at mainbus0
obio0 at mainbus0 # sun4 and sun4m
iommu0 at mainbus0 # sun4m
sbus0 at iommu0 # sun4m
auxreg0 at obio0 # sun4m
power0 at obio0
clock0 at obio0 # sun4m
memreg0 at obio0 # sun4m
eccmemctl0 at mainbus0 # sun4m
timer0 at obio0 # sun4m
zs0 at obio0 # sun4m
zstty0 at zs0 channel 0 # ttya
zstty1 at zs0 channel 1 # ttyb
zs1 at obio0 # sun4m
kbd0 at zs1 channel 0 # keyboard
ms0 at zs1 channel 1 # mouse
dma0 at sbus0 slot ? offset ? # sun4c/sun4m
esp0 at dma0 flags 0x0000 # sun4m
scsibus* at esp?
sd* at scsibus? target ? lun ? # SCSI disks
pseudo-device vnd 4
ledma0 at sbus0 slot ? offset ? # sun4m on-board
le0 at ledma0 # sun4m on-board
pseudo-device loop
pseudo-device bpfilter 8
pseudo-device ipfilter
tcx0 at sbus? slot ? offset ?
pseudo-device pty 32 # pseudo-ttys (for network, etc.)
pseudo-device rnd
As you can see very simple. Please advise if you see anything wrong.
Thanks
Tamer
"Some people dance to the beat of a different drummer, and some people tango!"