smbmount and 2.1.8x kernels

Robert A. Vincent II bobvin at
Tue Mar 17 01:56:58 GMT 1998

Tried compiling latest SAMBA with latest kernel. (2.1.90pre3, glibc version 2.0.6, egcs 1.01)

I had to edit /usr/src/linux/include/linux/smb_fs.h slightly, as follows:

--- smb_fs.h~	Sun Mar 15 22:55:37 1998
+++ smb_fs.h	Mon Mar 16 20:19:27 1998
@@ -9,5 +9,9 @@
 #ifndef _LINUX_SMB_FS_H
 #define _LINUX_SMB_FS_H
+#ifdef __KERNEL__
 #include <linux/dirent.h>
+#include <dirent.h>
 #include <linux/smb.h>

Prolly oughtta modify that to check for
GLIBC version 2, but it works for me!

Also, I had to commount out the 
    #include <sys/wait.h>
    #include <linux/fs.h>

lines in smbmount.c and smbumount.c


Robert A. Vincent II
<robert.vincent at>

More information about the samba-technical mailing list