AnsweredAssumed Answered

smbmount compile error

Question asked by kenny on Jun 16, 2013
Latest reply on Jun 17, 2013 by kenny

     I want to use smbmount to mount windows share directory, but find i can't compile it successfully.

The error information:

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[3]: *** [smbmount.o] Error 1

 

Can you tell me how to solve it? thanks!

 

Best Rgds

Kenny

Outcomes