Subject: undefines symbols in minimal-kernel
To: None <amiga-dev@sun-lamp.cs.berkeley.edu>
From: Hubert Feyrer <Hubert.Feyrer@rz.uni-regensburg.de>
List: amiga-dev
Date: 07/25/1994 20:21:41
When trying to build a minimal kernel for a A2091-equipped A2k, I got
the following linker errors:

init_sysent.o: Undefined symbol _nfssvc referenced from data segment
init_sysent.o: Undefined symbol _getfh referenced from data segment
kern_acct.o: Undefined symbol _lease_check referenced from text segment
kern_sig.o: Undefined symbol _lease_check referenced from text segment  
kern_time.o: Undefined symbol _lease_updatetime referenced from text segment
uipc_usrreq.o: Undefined symbol _lease_check referenced from text segment
vfs_syscalls.o: Undefined symbol _lease_check referenced from text segment
vfs_syscalls.o: Undefined symbol _lease_check referenced from text segment
vfs_syscalls.o: Undefined symbol _lease_check referenced from text segment
vfs_syscalls.o: Undefined symbol _lease_check referenced from text segment
vfs_syscalls.o: Undefined symbol _lease_check referenced from text segment
vfs_syscalls.o: Undefined symbol _lease_check referenced from text segment
vfs_syscalls.o: More undefined symbol _lease_check refs follow
sbic.o: Undefined symbol _DCFL referenced from text segment
sbic.o: Undefined symbol _DCFL referenced from text segment

Occurently, NFSSERVER needs to be defined, don't know about the other
symbols. Here's are the changes that I did to the GENERIC-file:

*** DOOM	Sun Jul 24 19:44:02 1994
--- GENERIC	Mon Jul 18 10:49:17 1994
***************
*** 8,23 ****
  
  include "std.amiga"
  
! maxusers	2
  options		TIMEZONE=300, DST=1
  
  #
  # processors this kernel should support
  #
! #options		"M68040"	# support for 040
! #options		FPSP		# MC68040 floating point support
  options		"M68030"	# support for 030
! #options		"M68020"	# support for 020/851
  options		FPCOPROC	# Support for MC6888[12] (Required)
  
  options		SWAPPAGER	# Pager for processes (Required)
--- 8,23 ----
  
  include "std.amiga"
  
! maxusers	8
  options		TIMEZONE=300, DST=1
  
  #
  # processors this kernel should support
  #
! options		"M68040"	# support for 040
! options		FPSP		# MC68040 floating point support
  options		"M68030"	# support for 030
! options		"M68020"	# support for 020/851
  options		FPCOPROC	# Support for MC6888[12] (Required)
  
  options		SWAPPAGER	# Pager for processes (Required)
***************
*** 33,48 ****
  #options	CCITT		# CCITT X.25
  #options	NS		# Xerox XNS
  #options	EON		# ISO CLNL over IP
! options	GATEWAY		# Packet forwarding
  #options	DIRECTED_BROADCAST	# Broadcast across subnets
  #options	NSIP		# XNS over IP
  
  #
  # File system related options
  #
! #options		QUOTA		# Disk quotas for local disks
! #options		NFSSERVER	# Network File System server side code
! #options		NFSCLIENT	# Network File System client side code
  
  #
  # File systems
--- 33,48 ----
  #options	CCITT		# CCITT X.25
  #options	NS		# Xerox XNS
  #options	EON		# ISO CLNL over IP
! #options	GATEWAY		# Packet forwarding
  #options	DIRECTED_BROADCAST	# Broadcast across subnets
  #options	NSIP		# XNS over IP
  
  #
  # File system related options
  #
! options		QUOTA		# Disk quotas for local disks
! options		NFSSERVER	# Network File System server side code
! options		NFSCLIENT	# Network File System client side code
  
  #
  # File systems
***************
*** 63,73 ****
  #
  # Compatability options for various existing systems
  #
! #options		"COMPAT_09"	# compatability with older NetBSD release
! #options		"COMPAT_43"	# 4.3 BSD compatible system calls
! #options		COMPAT_SUNOS	# Support to run Sun (m68k) executables
! #options		"TCP_COMPAT_42"	# Use 4.2 BSD style TCP
! #options		"COMPAT_NOMID"	# allow nonvalid machine id executables
  #options	COMPAT_HPUX	# HP300 compatability
  
  #
--- 63,73 ----
  #
  # Compatability options for various existing systems
  #
! options		"COMPAT_09"	# compatability with older NetBSD release
! options		"COMPAT_43"	# 4.3 BSD compatible system calls
! options		COMPAT_SUNOS	# Support to run Sun (m68k) executables
! options		"TCP_COMPAT_42"	# Use 4.2 BSD style TCP
! options		"COMPAT_NOMID"	# allow nonvalid machine id executables
  #options	COMPAT_HPUX	# HP300 compatability
  
  #
***************
*** 100,106 ****
  #
  # Amiga specific options
  #
! #options		RETINACONSOLE	# enable code to allow retina to be console
  options		GRF_ECS		# Enhanced Chip Set
  options		GRF_NTSC	# NTSC
  options		GRF_PAL		# PAL
--- 100,106 ----
  #
  # Amiga specific options
  #
! options		RETINACONSOLE	# enable code to allow retina to be console
  options		GRF_ECS		# Enhanced Chip Set
  options		GRF_NTSC	# NTSC
  options		GRF_PAL		# PAL
***************
*** 109,153 ****
  #options	"KFONT_8X11"	# 8x11 font
  
  grfcc0		at mainbus0		# custom chips
! #grfrt0		at ztwobus0		# retina II
! #grfrh0		at zthreebus0		# retina III
  
  grf0		at grfcc0
! #grf1		at grfrt0
! #grf2		at grfrh0
  
  ite0		at grf0			# terminal emulators for grf's
! #ite1		at grf1			# terminal emulators for grf's
! #ite2		at grf2			# terminal emulators for grf's
  
! #le0		at ztwobus0		# Lance ethernet.
! #ed0		at ztwobus0		# dp8390 ethernet
  
  # scsi stuff, all possible
! #gvpbus0		at ztwobus0
! #gtsc0		at gvpbus0		# GVP series II scsi
! #ahsc0		at mainbus0		# A3000 scsi
  atzsc0		at ztwobus0
! #wstsc0		at ztwobus0		# Wordsync II scsi
! #ivsc0		at ztwobus0		# IVS scsi
! #mlhsc0		at ztwobus0		# Hacker scsi
! #otgsc0		at ztwobus0		# 12 gauge scsi
! #zssc0		at ztwobus0		# Zeus scsi
! #mgnsc0		at ztwobus0		# Magnum scsi
! #wesc0		at zthreebus0		# Warp Engine scsi
! #idesc0		at mainbus0		# A4000(A1200?) IDE
  
! #scsibus0	at gtsc0
! #scsibus1	at ahsc0
  scsibus2	at atzsc0
! #scsibus2	at wstsc0
! #scsibus3	at ivsc0
! #scsibus4	at mlhsc0
! #scsibus5	at otgsc0
! #scsibus6	at zssc0
! #scsibus7	at mgnsc0
! #scsibus8	at wesc0
! #scsibus9	at idesc0
  
  #
  # compat.
--- 109,153 ----
  #options	"KFONT_8X11"	# 8x11 font
  
  grfcc0		at mainbus0		# custom chips
! grfrt0		at ztwobus0		# retina II
! grfrh0		at zthreebus0		# retina III
  
  grf0		at grfcc0
! grf1		at grfrt0
! grf2		at grfrh0
  
  ite0		at grf0			# terminal emulators for grf's
! ite1		at grf1			# terminal emulators for grf's
! ite2		at grf2			# terminal emulators for grf's
  
! le0		at ztwobus0		# Lance ethernet.
! ed0		at ztwobus0		# dp8390 ethernet
  
  # scsi stuff, all possible
! gvpbus0		at ztwobus0
! gtsc0		at gvpbus0		# GVP series II scsi
! ahsc0		at mainbus0		# A3000 scsi
  atzsc0		at ztwobus0
! wstsc0		at ztwobus0		# Wordsync II scsi
! ivsc0		at ztwobus0		# IVS scsi
! mlhsc0		at ztwobus0		# Hacker scsi
! otgsc0		at ztwobus0		# 12 gauge scsi
! zssc0		at ztwobus0		# Zeus scsi
! mgnsc0		at ztwobus0		# Magnum scsi
! wesc0		at zthreebus0		# Warp Engine scsi
! idesc0		at mainbus0		# A4000(A1200?) IDE
  
! scsibus0	at gtsc0
! scsibus1	at ahsc0
  scsibus2	at atzsc0
! scsibus2	at wstsc0
! scsibus3	at ivsc0
! scsibus4	at mlhsc0
! scsibus5	at otgsc0
! scsibus6	at zssc0
! scsibus7	at mgnsc0
! scsibus8	at wesc0
! scsibus9	at idesc0
  
  #
  # compat.
***************
*** 173,179 ****
  
  pseudo-device	sl			# slip
  pseudo-device	ppp			# ppp
! pseudo-device	view 5			# views
  pseudo-device	pty 16			# pseudo terminals
  pseudo-device	loop			# network loopback
  
--- 173,179 ----
  
  pseudo-device	sl			# slip
  pseudo-device	ppp			# ppp
! pseudo-device	view 10			# views
  pseudo-device	pty 16			# pseudo terminals
  pseudo-device	loop			# network loopback
  


Can anyone resolve this? :->


Hubert

=============== Hubert Feyrer ============================================
      Weekdays: Rennerstr. 19, D-93053 Regensburg,  Tel. 0941/701788
      Weekends: Bachstr. 40,   D-84066 Mallersdorf, Tel. 08772/6084
      Internet: hubert.feyrer@rz.uni-regensburg.de == IRC: hubertf
==========================================================================
    Click here.

------------------------------------------------------------------------------