Subject: _softdep_reinitialize referenced from text segment
To: None <current-users@netbsd.org>
From: Petri Tapio Koistinen <pkoistin@cs.stadia.fi>
List: current-users
Date: 09/16/2001 18:04:29
Hi!

I got link editor error: "ffs_vfsops.o: Undefined symbol `_softdep_reinitialize'
referenced from text segment" when I tried to compile kernel without
SOFTDEP option. Following patch solved the problem, should it be used?

Petri

Index: ffs_vfsops.c
===================================================================
RCS file: /cvsroot/syssrc/sys/ufs/ffs/ffs_vfsops.c,v
retrieving revision 1.87
diff -u -r1.87 ffs_vfsops.c
--- ffs_vfsops.c	2001/09/15 20:36:42	1.87
+++ ffs_vfsops.c	2001/09/16 14:15:39
@@ -1208,7 +1208,9 @@
 	if (ffs_initcount++ > 0)
 		return;
 
+#ifdef SOFTDEP
 	softdep_initialize();
+#endif /* !SOFTDEP */
 	ufs_init();
 
 	pool_init(&ffs_inode_pool, sizeof(struct inode), 0, 0, 0, "ffsinopl",
@@ -1218,7 +1220,9 @@
 void
 ffs_reinit()
 {
+#ifdef SOFTDEP
 	softdep_reinitialize();
+#endif /* !SOFTDEP */
 	ufs_reinit();
 }