Subject: port-next68k/16792: GENERIC kernel fails to link
To: None <gnats-bugs@gnats.netbsd.org>
From: None <chris@Pin.LU>
List: netbsd-bugs
Date: 05/14/2002 00:40:51
>Number:         16792
>Category:       port-next68k
>Synopsis:       GENERIC kernel fails to link
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-next68k-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 13 16:21:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Christian Limpach
>Release:        current (as of May 14 2002)
>Organization:
	
>Environment:
	
System: NetBSD clapper 1.5ZC NetBSD 1.5ZC (CLAPPER) #46: Mon May 13 20:51:50 CEST 2002     root@marble:/devel/netbsd/src-current/sys/arch/next68k/compile/CLAPPER next68k


>Description:
	
	The GENERIC kernel doesn't include the FFS file-system but includes
	the QUOTA and SOFTDEP options.  This causes the following error.

/devel/netbsd/tools-next68k/bin/m68k--netbsdelf-ld -n -Ttext 0 -e start -S -o netbsd ${SYSTEM_OBJ} vers.o
vfs_bio.o: In function `brelse':
vfs_bio.o(.text+0x72c): undefined reference to `bioops'
vfs_bio.o(.text+0x7bc): undefined reference to `bioops'
vfs_bio.o: In function `getnewbuf':
vfs_bio.o(.text+0xd66): undefined reference to `bioops'
vfs_bio.o: In function `biodone':
vfs_bio.o(.text+0xea2): undefined reference to `bioops'
vfs_syscalls.o: In function `sys_fsync':
vfs_syscalls.o(.text+0x334e): undefined reference to `bioops'
spec_vnops.o(.text+0x7d0): more undefined references to `bioops' follow
*** Error code 1

Stop.

>How-To-Repeat:
	
	build the GENERIC kernel on next68k

>Fix:
	
	The following patch undefines QUOTA and SOFTDEP.  These options
	should be re-enabled once the SCSI driver and FFS are enabled.

Index: arch/next68k/conf/GENERIC
===================================================================
RCS file: /cvsroot/syssrc/sys/arch/next68k/conf/GENERIC,v
retrieving revision 1.55
diff -u -r1.55 GENERIC
--- GENERIC	2002/04/25 15:06:34	1.55
+++ GENERIC	2002/05/13 23:08:08
@@ -102,8 +102,8 @@
 file-system 	UNION		# union file system
 
 options 	NFSSERVER	# nfs server support
-options 	QUOTA		# FFS quotas
-options 	SOFTDEP		# FFS soft updates support.
+#options 	QUOTA		# FFS quotas
+#options 	SOFTDEP		# FFS soft updates support.
 #options 	EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
 				# immutable) behave as system flags.
 
>Release-Note:
>Audit-Trail:
>Unformatted: