Unable to compile smbmount from samba using 2.2.0-pre5

Tony Keating (keating@mech.uq.edu.au)
Fri, 8 Jan 1999 14:34:35 +1000


Just compiled and installed 2.2.0-pre5 (after using 2.0.36), found I
couldn't mount smbfs anymore, looked through the manual found I needed to
install smbmount etc. from samba. Got samba-1.9.18p10.tar.gz, did everything
neccessary, tried to compile, it barfed on compiling smbmount. Seems as tho'
something is a miss in smb.h:

Using CFLAGS = -O -DSMBLOGFILE="/var/log/samba/log.smb" -DNMBLOGFILE="/var/log/samba/log.nmb" -DCONFIGFILE="/etc/smb.conf" -DLMHOSTSFILE="/etc/lmhosts" -DWEB_ROOT="/usr" -DLOCKDIR="/var/lock/samba" -DSMBRUN="/usr/bin/smbrun" -DCODEPAGEDIR="/etc/codepages" -DWORKGROUP="WORKGROUP" -DGUEST_ACCOUNT="nobody" -DDRIVERFILE="/etc/printers.def" -DLINUX -DNETGROUP -DALLOW_CHANGE_PASSWORD -DFAST_SHARE_MODES -DNO_ASMSIGNALH -DGLIBC2 -DUSE_PAM -DSMB_PASSWD="/usr/bin/smbpasswd" -DSMB_PASSWD_FILE="/etc/smbpasswd"
Using LIBS = -lnsl -lcrypt -ldl -lpam
Compiling smbmount.c
In file included from /usr/include/linux/smb_fs.h:12,
from smbmount.c:33:
/usr/include/linux/smb.h:30: parse error before `__u16'
/usr/include/linux/smb.h:30: warning: no semicolon at end of struct or union
/usr/include/linux/smb.h:31: warning: data definition has no type or storage class
/usr/include/linux/smb.h:32: parse error before `blocksize'
/usr/include/linux/smb.h:32: warning: data definition has no type or storage class
/usr/include/linux/smb.h:33: parse error before `free'
/usr/include/linux/smb.h:33: `free' redeclared as different kind of symbol
/usr/include/stdlib.h:352: previous declaration of `free'
/usr/include/linux/smb.h:33: warning: data definition has no type or storage class
/usr/include/linux/smb.h:46: parse error before `__u32'
/usr/include/linux/smb.h:46: warning: no semicolon at end of struct or union
/usr/include/linux/smb.h:47: warning: data definition has no type or storage class
/usr/include/linux/smb.h:48: parse error before `tid'
/usr/include/linux/smb.h:48: warning: data definition has no type or storage class
/usr/include/linux/smb.h:51: parse error before `secmode'
/usr/include/linux/smb.h:51: warning: data definition has no type or storage class
/usr/include/linux/smb.h:52: parse error before `maxmux'
/usr/include/linux/smb.h:52: warning: data definition has no type or storage class
/usr/include/linux/smb.h:53: parse error before `maxvcs'
/usr/include/linux/smb.h:53: warning: data definition has no type or storage class
/usr/include/linux/smb.h:54: parse error before `rawmode'
/usr/include/linux/smb.h:54: warning: data definition has no type or storage class
/usr/include/linux/smb.h:55: parse error before `sesskey'
/usr/include/linux/smb.h:55: warning: data definition has no type or storage class
/usr/include/linux/smb.h:58: parse error before `maxraw'
/usr/include/linux/smb.h:58: warning: data definition has no type or storage class
/usr/include/linux/smb.h:59: parse error before `capabilities'
/usr/include/linux/smb.h:59: warning: data definition has no type or storage class
/usr/include/linux/smb.h:60: parse error before `serverzone'
/usr/include/linux/smb.h:60: warning: data definition has no type or storage class
smbmount.c: In function `mount_send_login':
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:244: invalid use of undefined type `struct smb_conn_opt'
smbmount.c:245: 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: sizeof applied to an incomplete type
smbmount.c: At top level:
smbmount.c:34: storage size of `conn_options' isn't known
make: *** [smbmount.o] Error 1

Anyone have any ideas?

Tony.

-- 
Tony Keating <keating@mech.uq.edu.au>
Department of Mechanical Engineering, University of Queensland
PGP Public Key: finger e4321280@student.uq.edu.au

- 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/