Announcement

Collapse
No announcement yet.

smbmount compile errors

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • smbmount compile errors

    Hello,

    I am using an XPORT PRO with Linux SDK 2.0.0.0
    I am trying to include SAMBA/CIFS client support in it.
    I select SAMBA.CIFs network file system in kernel and SMBMOUNT in user applications.

    When compiling, i get the following errors:
    [QUOTE]
    [make[4]: Entering directory `/home/be/LinuxSDK/linux/user/smbmount'
    ucfront-gcc m68k-uclinux-gcc -mcpu=5208 -DCONFIG_COLDFIRE -Os -g -fomit-frame-pointer -pipe -fno-common -fno-builtin -Wall -DEMBED -fno-dwarf2-cfi-asm -msep-data -Dlinux -D__linux__ -Dunix -D__uClinux__ -DVERSION=\"2.0.1\" -c -o smbmount.o smbmount.c
    smbmount.c: In function 'parse_args':
    smbmount.c:106: error: 'struct smb_mount_data' has no member named 'addr'
    smbmount.c:109: error: 'struct smb_mount_data' has no member named 'server_name'
    smbmount.c:116: error: 'struct smb_mount_data' has no member named 'server_name'
    smbmount.c:119: error: 'struct smb_mount_data' has no member named 'client_name'
    smbmount.c:125: error: 'struct smb_mount_data' has no member named 'client_name'
    smbmount.c:128: error: 'struct smb_mount_data' has no member named 'username'
    smbmount.c:134: error: 'struct smb_mount_data' has no member named 'username'
    smbmount.c:144: error: 'struct smb_mount_data' has no member named 'domain'
    smbmount.c:150: error: 'struct smb_mount_data' has no member named 'domain'
    smbmount.c:194: error: 'struct smb_mount_data' has no member named 'max_xmit'
    smbmount.c:197: error: 'struct smb_mount_data' has no member named 'password'
    smbmount.c:202: error: 'struct smb_mount_data' has no member named 'password'
    smbmount.c: In function 'fullpath':
    smbmount.c:333: warning: unused variable 'path'
    smbmount.c: In function 'main':
    smbmount.c:538: error: 'struct smb_mount_data' has no member named 'service'
    smbmount.c:539: error: 'struct smb_mount_data' has no member named 'service'
    smbmount.c:541: error: 'struct smb_mount_data' has no member named 'root_path'
    smbmount.c:544: error: 'struct smb_mount_data' has no member named 'username'
    smbmount.c:545: error: 'struct smb_mount_data' has no member named 'username'
    smbmount.c:548: error: 'struct smb_mount_data' has no member named 'username'
    smbmount.c:550: error: 'struct smb_mount_data' has no member named 'username'
    smbmount.c:551: error: 'struct smb_mount_data' has no member named 'username'
    smbmount.c:554: error: 'struct smb_mount_data' has no member named 'max_xmit'
    smbmount.c:561: error: 'struct smb_mount_data' has no member named 'addr'
    smbmount.c:562: error: 'struct smb_mount_data' has no member named 'addr'
    smbmount.c:562: error: 'SMB_PORT' undeclared (first use in this function)
    smbmount.c:562: error: (Each undeclared identifier is reported only once
    smbmount.c:562: error: for each function it appears in.)
    smbmount.c:564: error: 'struct smb_mount_data' has no member named 'domain'
    smbmount.c:580: error: 'struct smb_mount_data' has no member named 'addr'
    smbmount.c:584: warning: implicit declaration of function 'inet_aton'
    smbmount.c:584: error: 'struct smb_mount_data' has no member named 'addr'
    smbmount.c:589: error: 'struct smb_mount_data' has no member named 'addr'
    smbmount.c:595: error: 'struct smb_mount_data' has no member named 'fd'
    smbmount.c:596: error: 'struct smb_mount_data' has no member named 'fd'
    smbmount.c:629: error: 'struct smb_mount_data' has no member named 'password'
    smbmount.c:632: error: 'struct smb_mount_data' has no member named 'server_name'
    smbmount.c:634: error: 'struct smb_mount_data' has no member named 'server_name'
    smbmount.c:641: error: 'struct smb_mount_data' has no member named 'server_name'
    smbmount.c:642: error: 'struct smb_mount_data' has no member named 'server_name'
    smbmount.c:646: error: 'struct smb_mount_data' has no member named 'client_name'
    smbmount.c:648: error: 'struct smb_mount_data' has no member named 'client_name'
    smbmount.c:655: error: 'struct smb_mount_data' has no member named 'client_name'
    smbmount.c:656: error: 'struct smb_mount_data' has no member named 'client_name'
    smbmount.c:664: error: 'struct smb_mount_data' has no member named 'fd'
    smbmount.c:670: error: 'struct smb_mount_data' has no member named 'fd'
    smbmount.c:469: warning: unused variable 'mtab'
    smbmount.c:451: warning: unused variable 'fd'
    make[4]: *** [smbmount.o] Error 1
    make[4]: Leaving directory `/home/be/LinuxSDK/linux/user/smbmount'
    make[3]: *** [smbmount] Error 2
    make[3]: Leaving directory `/home/be/LinuxSDK/linux/user'
    make[2]: *** [all] Error 2
    make[2]: Leaving directory `/home/be/LinuxSDK/linux/user'
    make[1]: *** [subdirs] Error 1
    make[1]: Leaving directory `/home/be/LinuxSDK/linux'
    make: *** [build] Error 2
    /QUOTE]

    It seems there is a discrepancy in version number between smbmount.c and smb_mount.h : smbmount.c refers to data struct members which are defined in linux2.0.x version of smb_mount.h and not in linux 2.6.x version of the same file.

    Do you know if this bug is fixed in latest LinuxSDK (2.0.0.3) ?

    Thanks in advance for your help

  • #2
    Originally posted by be@interlab15.com View Post
    Hello,
    I select SAMBA.CIFs network file system in kernel and SMBMOUNT in user applications.
    I believe that I found the correct answer :
    I do not need to select option SMBMOUNT in user application options.
    It is an old option.
    Selecting Samba/CIFS network file system is enough.
    I also had to enable "-t cifs" option to the mount command from Busybox.
    by selecting the appropriate option in: Customize application/BusyBox/Linux system utilities/mount

    Now, i am able to run a "mount" command:

    mount -t cifs //192.168.111.53/Users /usr/local/test -o username=be,password=abcdef
    The server is on Windows 8.
    When I remove the password from the command line, I can get this command line working from my Linux host: the computer then prompts for a password.

    This is not the case when running the same command from XPORT. I get an error.
    Last edited by be@interlab15.com; 02-23-2015, 05:51 PM. Reason: add information

    Comment

    Working...
    X