smbmount.c cannot find smb_fs.h

Brian Roberson brian at bstc.net
Fri Nov 27 20:33:06 GMT 1998


Hi, This question is better served on the samba-technical list, so I am
forwarding it there. smbmount included with 1.9.18px will only work on
linux platforms, I have heard rumors of people developing a smbfs type
implement for solaris though, maybe someone on the technical list will
know more.



Richard Hew wrote:
> 
> I am having problem compiling smbmount.c on my AIX 4.2.1 environment.
> That file was extracted from samba-1.9.18p10  (for AIX4) which was downloaded from /samba.bstc.net/samba/samba.html
> 
> This is the error message I got when I ran the 'make installbin' command :-
> 
> 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" -DAIX -DFAST_SHARE_MODES
>  -DSMB_PASSWD="/usr/local/samba/bin/smbpasswd" -DSMB_PASSWD_FILE="/usr/local/samba/private/smbpasswd"
> Using LIBS =
> Compiling smbmount.c
> "smbmount.c", line 26.10: 1506-296 (S) #include file <linux/version.h> not found.
> "smbmount.c", line 29.2: 1506-205 (S) #error this code will only compile on versions of linux after 2.1.70
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^66
Should have clued you in :)

> "smbmount.c", line 33.10: 1506-296 (S) #include file <linux/smb_fs.h> not found.
> "smbmount.c", line 34.15: 1506-007 (S) "struct smb_conn_opt" is undefined.
> "smbmount.c", line 207.25: 1506-045 (S) Undeclared identifier NR_OPEN.
> "smbmount.c", line 276.33: 1506-045 (S) Undeclared identifier SMB_IOC_NEWCONN.
> make: The error code from the last command is 1.
> 
> Stop.
> 
> I would appreciate very much if you could help me here or at least tell me where I can get the missing include file.
> 
> Thanks.

-- 
~~~~~~ Brian Roberson ~~~~~~~~
~~~ BrainStorm Technologies ~~
~~ Linux Sollution Provider ~~
~~~~~~~~ info at bstc.net ~~~~~~~
~~~~ http://www.bstc.net/ ~~~~
~~~~~~~ (402) 690-7306 ~~~~~~~


More information about the samba-technical mailing list