NFS root partition compile error (2.3.99-pre3).

From: Paul Schulz (pauls@caemrad.com.au)
Date: Sun Apr 09 2000 - 21:11:45 EST


I get the following error when compiling 2.3.99-pre3,
with the 'root partition mounted via NFS' option..

gcc -D__KERNEL__ -I/home/paul/sources/linux-2.3.99-pre3/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing
-pipe -march=i486 -c -o nfsroot.o nfsroot.c
nfsroot.c:148: `NFS_MOUNT_LOCK' undeclared here (not in a function)
nfsroot.c:148: initializer element for `root_bool_opts[10].and_mask'
is not constant

In order to get the kernel to compile, I made the following changes..
---------------------------------------------------------------------
diff -r -u linux-2.3.99-pre3/include/linux/nfs_mount.h linux-2.3.99-pre3ps/include/linux/nfs_mount.h
--- linux-2.3.99-pre3/include/linux/nfs_mount.h Tue Apr 8 04:05:31 1997
+++ linux-2.3.99-pre3ps/include/linux/nfs_mount.h Sun Apr 9 15:41:55 2000
@@ -49,5 +49,6 @@
 #define NFS_MOUNT_VER3 0x0080 /* 3 */
 #define NFS_MOUNT_KERBEROS 0x0100 /* 3 */
 #define NFS_MOUNT_NONLM 0x0200 /* 3 */
-
+#define NFS_MOUNT_LOCK 0x0400 /* ? - hack-alert */
+#define NFS_MOUNT_NONLM 0x0800 /* ? - hack-alert */
 #endif

-------------------------------------------------------------------------
The kernel can be compiled, and it starts to boot, but gets as far as
invoking init and then just reboots..
.. I'd like to know if the above is valid before I continue.

Thnaks in advance,
PaulS

-- 
Paul Schulz(pauls@caemrad.com.au)                             SysAdmin
CAE MRad, Innovation House West, First Avenue, TECHNOLOGY PARK SA 5095
-..-.----_...._--..._---_.-----.....---___.,-..----.-,---.-.--__._....

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Apr 15 2000 - 21:00:13 EST