I recently switched from samba back to nfs. nfs-utils-1.1.4
worked on a LFS-6.3 built from the livecd with an upgraded kernel.
I'm not sure of the kernel version now ; all I  could say for sure
is that it wasn't the version from the cd. When trying to build on
to build on SVN-20101118  with kernel linux-2.6.35.2 it fails: 

/usr/src/nfs-utils-1.1.4/utils/exportfs/exportfs.c:400: undefined 
reference to `S_ISDIR'
/usr/src/nfs-utils-1.1.4/utils/exportfs/exportfs.c:400: undefined 
reference to `S_ISREG'
collect2: ld returned 1 exit status
make[2]: *** [exportfs] Error 1
 
 I googled and found a patch, but the format was alien, so I
diffed my own that added  #include <sys/stat.h> in 3 files.
Not sure if it's kernel related or what, but this patch works
for me.

--- Mike H. ---- 
diff -Naur nfs-utils-1.1.4//utils/exportfs/exportfs.c 
nfs-utils-1.1.4.hacked//utils/exportfs/exportfs.c
--- nfs-utils-1.1.4//utils/exportfs/exportfs.c  2008-10-17 10:20:09.000000000 
-0400
+++ nfs-utils-1.1.4.hacked//utils/exportfs/exportfs.c   2011-02-02 
14:22:52.000000000 -0500
@@ -19,6 +19,7 @@
 #include <stdarg.h>
 #include <getopt.h>
 #include <netdb.h>
+#include <sys/stat.h>
 #include <errno.h>
 #include "xmalloc.h"
 #include "misc.h"
diff -Naur nfs-utils-1.1.4//utils/mount/mount.c 
nfs-utils-1.1.4.hacked//utils/mount/mount.c
--- nfs-utils-1.1.4//utils/mount/mount.c        2008-10-17 10:20:09.000000000 
-0400
+++ nfs-utils-1.1.4.hacked//utils/mount/mount.c 2011-02-02 14:25:10.000000000 
-0500
@@ -32,14 +32,13 @@
 #include <getopt.h>
 #include <mntent.h>
 #include <pwd.h>
-
+#include <sys/stat.h>
 #include "fstab.h"
 #include "xcommon.h"
 #include "nls.h"
 #include "mount_constants.h"
 #include "nfs_paths.h"
 #include "nfs_mntent.h"
-
 #include "nfs_mount.h"
 #include "nfs4_mount.h"
 #include "mount.h"
diff -Naur nfs-utils-1.1.4//utils/mount/network.c 
nfs-utils-1.1.4.hacked//utils/mount/network.c
--- nfs-utils-1.1.4//utils/mount/network.c      2008-10-17 10:20:09.000000000 
-0400
+++ nfs-utils-1.1.4.hacked//utils/mount/network.c       2011-02-02 
14:27:07.000000000 -0500
@@ -33,14 +33,13 @@
 #include <errno.h>
 #include <netdb.h>
 #include <time.h>
-
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <rpc/rpc.h>
 #include <rpc/pmap_prot.h>
 #include <rpc/pmap_clnt.h>
-
+#include <sys/stat.h>
 #include "xcommon.h"
 #include "mount.h"
 #include "nls.h"
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to