smbmount compile error

nazard at dragoninc.on.ca nazard at dragoninc.on.ca
Wed Jan 19 19:19:48 GMT 2000


On 19 Jan, Vladimir Stavrinov wrote:
> 
> Again, smbmount as usual, can't be compiled despite all posted patches:
> 
> Compiling client/smbmount.c
> client/smbmount.c:149: warning: declaration of `fprintf' shadows global declaration
> client/smbmount.c: In function `chkpath':
> client/smbmount.c:150: warning: declaration of `fprintf' shadows global declaration
> client/smbmount.c:163: warning: implicit declaration of function `cli_setup_pkt'
> 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.)
> client/smbmount.c: In function `mount_send_login':
> client/smbmount.c:263: warning: implicit declaration of function `cli_send_login'
> client/smbmount.c: In function `send_fs_socket':
> client/smbmount.c:439: warning: implicit declaration of function `cli_open_sockets'
> client/smbmount.c: At top level:
> client/smbmount.c:527: warning: function declaration isn't a prototype
> client/smbmount.c: In function `process':
> client/smbmount.c:727: warning: implicit declaration of function `cli_send_logout'
> client/smbmount.c:634: warning: unused variable `dbf'
> make: *** [client/smbmount.o] Error 1                                                
> 

I can't reproduce it here. I checked out a fresh tree to be sure. In my
copy, line 149 is the start of chkpath(), not a fprintf call. With my
patch, NR_OPEN should not be an issue. Here's the md5sum of the
original and after my patch

ccc5be49061f34e185c850bdd5808f0d  smbmount.c
7bf33f1c25e20ab23cedc2c1e424fad7  smbmount.c.orig

The freshly checked out try sorta compiles but the issues are to do
with Luke's recent lib changes. 

1)	bin/libsmb.so and bin/libmsrpc.so need $(LDFLAGS)
2)	bin/smbmount, bin/smbmnt, bin/smbumount do not need $(RPCLIB)

Doug




More information about the samba-ntdom mailing list