With these options, samba 1.9.18 fails to compile smbmount...
FLAGSM = -DLINUX -DSHADOW_PWD -DFAST_SHARE_MODES
MOUNT_PROGS = smbmount smbmnt smbumount
LIBSM = -lshadow
Here are the errors:
Using CFLAGS = -O -DSMBLOGFILE="/usr/local/samba/var/log.smb"
-DNMBLOGFILE="/usr/local/samba/var/log.nmb"
-DCONFIGFILE="/usr/local/samba/lib/smb.conf"
-DLMHOSTSFILE="/usr/local/samba/lib/lmhosts"
-DWEB_ROOT="/usr/local/samba"
-DLOCKDIR="/usr/local/samba/var/locks"
-DSMBRUN="/usr/local/samba/bin/smbrun"
-DCODEPAGEDIR="/usr/local/samba/lib/codepages"
-DWORKGROUP="WORKGROUP" -DGUEST_ACCOUNT="nobody"
-DDRIVERFILE="/usr/local/samba/lib/printers.def" -DLINUX -DSHADOW_PWD
-DFAST_SHARE_MODES -DSMB_PASSWD="/usr/local/samba/bin/smbpasswd"
-DSMB_PASSWD_FILE="/usr/local/samba/private/smbpasswd"
Using LIBS = -lshadow
Compiling smbmount.c
In file included from /usr/include/linux/smb_fs.h:11,
from smbmount.c:27:
/usr/include/linux/smb.h:47: warning: `PVAL' redefined
byteorder.h:130: warning: this is the location of the previous definition
/usr/include/linux/smb.h:76: warning: `smb_base' redefined
smb.h:1885: warning: this is the location of the previous definition
In file included from /usr/include/linux/smb_fs.h:11,
from smbmount.c:27:
/usr/include/linux/smb.h:83: conflicting types for `PROTOCOL_NONE'
smb.h:2050: previous declaration of `PROTOCOL_NONE'
/usr/include/linux/smb.h:84: conflicting types for `PROTOCOL_CORE'
smb.h:2050: previous declaration of `PROTOCOL_CORE'
/usr/include/linux/smb.h:85: conflicting types for `PROTOCOL_COREPLUS'
smb.h:2050: previous declaration of `PROTOCOL_COREPLUS'
/usr/include/linux/smb.h:86: conflicting types for `PROTOCOL_LANMAN1'
smb.h:2050: previous declaration of `PROTOCOL_LANMAN1'
/usr/include/linux/smb.h:87: conflicting types for `PROTOCOL_LANMAN2'
smb.h:2050: previous declaration of `PROTOCOL_LANMAN2'
/usr/include/linux/smb.h:89: conflicting types for `PROTOCOL_NT1'
smb.h:2050: previous declaration of `PROTOCOL_NT1'
/usr/include/linux/smb.h:93: conflicting types for `CASE_LOWER'
smb.h:2063: previous declaration of `CASE_LOWER'
/usr/include/linux/smb.h:95: conflicting types for `CASE_UPPER'
smb.h:2063: previous declaration of `CASE_UPPER'
smbmount.c: In function `mount_send_login':
smbmount.c:231: invalid use of undefined type `struct smb_conn_opt'
smbmount.c:232: invalid use of undefined type `struct smb_conn_opt'
smbmount.c:233: invalid use of undefined type `struct smb_conn_opt'
smbmount.c:234: invalid use of undefined type `struct smb_conn_opt'
smbmount.c:235: invalid use of undefined type `struct smb_conn_opt'
smbmount.c:236: invalid use of undefined type `struct smb_conn_opt'
smbmount.c:237: invalid use of undefined type `struct smb_conn_opt'
smbmount.c:238: invalid use of undefined type `struct smb_conn_opt'
smbmount.c:239: invalid use of undefined type `struct smb_conn_opt'
smbmount.c:240: invalid use of undefined type `struct smb_conn_opt'
smbmount.c:241: invalid use of undefined type `struct smb_conn_opt'
smbmount.c:242: invalid use of undefined type `struct smb_conn_opt'
smbmount.c:243: invalid use of undefined type `struct smb_conn_opt'
smbmount.c: In function `send_fs_socket':
smbmount.c:273: invalid use of undefined type `struct smb_conn_opt'
smbmount.c:275: invalid use of undefined type `struct smb_conn_opt'
smbmount.c:276: `SMB_IOC_NEWCONN' undeclared (first use this function)
smbmount.c:276: (Each undeclared identifier is reported only once
smbmount.c:276: for each function it appears in.)
smbmount.c: At top level:
smbmount.c:28: storage size of `conn_options' isn't known
make: *** [smbmount.o] Error 1
Otherwise everything was OK.
Regards
Rudi
--
Rudi Heitbaum Ph: +61-3-9822 1216
Managing Director Fax: +61-3-9822 1728
DARX Consulting Pty Ltd http://www.darx.com.au/
mailto:rudi@darx.com.au http://www.vsg.edu.au/