error with smbmount.c

Luke Leighton lkcl at samba.org
Wed Dec 1 04:21:01 EST 1999


you will need to add $(RPC_PARSE_OBJ) to the linker line of bin/smbmount.
compare to other linking lines to get it correct.

On Wed, 1 Dec 1999, Jens Skripczynski wrote:

> Hi,
> 
> smbmount.c fails to compile as NR_OPEN is undeffined:
> ---------
> Compiling client/smbmount.c
> client/smbmount.c: In function `close_our_files':
> client/smbmount.c:242: `NR_OPEN' undeclared (first use in this function)
> client/smbmount.c:242: (Each undeclared identifier is reported only once
> client/smbmount.c:242: for each function it appears in.)
> make: *** [client/smbmount.o] Error 1
> ---------
> In the new Linux Kernel this constant is deffind in
> /usr/include/linux/limits.h (found with "grep NR_OPEN *").
> 
> So could someone add the line:
> #include <linux/limits.h>
> after line 24 ?
> (I will attach a diff file)
> 
> ---------------------------------------------
> But still smbmount fails to compile:
> Linking bin/smbmount
> libsmb/clientgen.o: In function `cli_establish_connection':
> libsmb/clientgen.o(.text+0x54fa): undefined reference to `prs_init'
> libsmb/clientgen.o(.text+0x55f7): undefined reference to `prs_link'
> libsmb/clientgen.o(.text+0x56a4): undefined reference to `prs_mem_free'
> libsmb/smbencrypt.o: In function `create_ntlmssp_resp':
> libsmb/smbencrypt.o(.text+0xc4d): undefined reference to
> `make_rpc_auth_ntlmssp_resp'
> libsmb/smbencrypt.o(.text+0xc61): undefined reference to
> `smb_io_rpc_auth_ntlmssp_resp'
> collect2: ld returned 1 exit status
> make: *** [bin/smbmount] Error 1
> -------------------------------------------
> Can someone care for the second error ?
> I'm stuck with that (at least I am not skilled enough).
> 
> Ciao
> 
> Jens Skripczynski
> --
> 
> E-Mail: skripi at igd.fhg.de
> 
> Computers are like airconditioners: They stop working 
> properly if you open windows.
> 



More information about the samba-cvs mailing list