error with smbmount.c

Jens Skripczynski jens.skripczynski at igd.fhg.de
Wed Dec 1 00:22:32 EST 1999


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.
-------------- next part --------------
--- smbmount.c	Tue Nov 30 14:18:30 1999
+++ ../../../smbmount.c	Tue Nov 30 14:17:12 1999
@@ -22,6 +22,7 @@
 #define NO_SYSLOG
 
 #include <linux/version.h>
+#include <linux/limits.h>
 #define LVERSION(major,minor,patch) (((((major)<<8)+(minor))<<8)+(patch))
 #if LINUX_VERSION_CODE < LVERSION(2,1,70)
 #error this code will only compile on versions of linux after 2.1.70


More information about the samba-cvs mailing list