[prev in list] [next in list] [prev in thread] [next in thread]
List: samba
Subject: Re: error compiling latest cvs 2.2
From: Michael Gerdts <Michael.Gerdts () usa ! alcatel ! com>
Date: 2001-06-29 18:18:51
[Download RAW message or body]
I sent a patch for this earlier today. I have attached it again. You will
probably need gnu patch (from diffutils, I think) to apply it.
Alternatively the change is pretty straightforward.
Mike
On Fri, Jun 29, 2001 at 06:54:40PM +0100, Steve Kennedy wrote:
> Sun cc, Solaris 2.7
>
> Using LIBS = -lsec -lgen -lsocket -lnsl -ldl
> Compiling libsmb/clifile.c
> "libsmb/clifile.c", line 246: warning: argument #1 is incompatible with prototyp
> e:
> prototype: pointer to struct cli_state {int port, int fd, unsigned short
> cnum, unsigned short pid, unsigned short mid, unsigned short vuid, int protocol
> , int sec_mode, int rap_error, int privileges, array[256] of char eff_name, arra
> y[256] of char desthost, array[256] of char user_name, array[256] of char domain
> , array[256] of char server_type, array[256] of char server_os, array[256] of ch
> ar server_domain, array[256] of char share, array[256] of char dev, struct nmb_n
> ame {..} called, struct nmb_name {..} calling, array[256] of char full_dest_host
> _name, struct in_addr {..} dest_ip, struct pwd_info {..} pwd, array[8] of unsign
> ed char cryptkey, unsigned int sesskey, int serverzone, unsigned int servertime,
> int readbraw_supported, int writebraw_supported, int timeout, int max_xmit, int
> max_mux, pointer to char outbuf, pointer to char inbuf, int bufsize, int initia
> lised, int win95, unsigned int capabilities, pointer to struct {..} mem_ctx, un
> signed int nt_error, unsigned short nt_pipe_fnum, array[16] of unsigned char ses
> s_key, array[258] of unsigned char ntlmssp_hash, unsigned int ntlmssp_cli_flgs,
> unsigned int ntlmssp_srv_flgs, unsigned int ntlmssp_seq_num, struct cred_info {.
> .} clnt_cred, array[256] of char mach_acct, array[256] of char srv_name_slash, a
> rray[256] of char clnt_name_slash, unsigned short max_xmit_frag, unsigned short
> max_recv_frag, struct {..} key, unsigned int ntlmssp_flags, int use_oplocks, in
> t use_level_II_oplocks} : "include/proto.h", line 1062
> argument : pointer to char
> "libsmb/clifile.c", line 246: prototype mismatch: 2 args passed, 3 expected
> cc: acomp failed for libsmb/clifile.c
> gmake: *** [libsmb/clifile.o] Error 2
>
> Steve
>
> --
> home steve@gbnet.org * Flat 2, 43 Howitt Road, Belsize Pk, London NW3 4LU
> work steve@thus.net * tel +44-(0)207 483 1169 FAX +44-(0)207 483 2455
> www http://www.gbnet.net/ * Personal DFAX +44 (0)870 1600 842 (fax to email)
> bits steve@gbnet.net * mob +44-(0)7775755503 Epage steve-pager@gbnet.net
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: http://lists.samba.org/mailman/listinfo/samba
Index: libsmb/clifile.c
===================================================================
RCS file: /cvsroot/samba/source/libsmb/clifile.c,v
retrieving revision 1.1.8.12
diff -c -r1.1.8.12 clifile.c
*** libsmb/clifile.c 25 Jun 2001 17:04:45 -0000 1.1.8.12
--- libsmb/clifile.c 29 Jun 2001 13:57:16 -0000
***************
*** 243,249 ****
p = smb_buf(cli->outbuf);
/* this alignment and termination is critical for netapp filers. Don't change */
! p += clistr_align(cli->outbuf, p);
len = clistr_push(cli, p, fname, -1, STR_CONVERT);
p += len;
SSVAL(cli->outbuf,smb_ntcreate_NameLength, len);
--- 243,249 ----
p = smb_buf(cli->outbuf);
/* this alignment and termination is critical for netapp filers. Don't change */
! p += clistr_align(cli, p, STR_CONVERT);
len = clistr_push(cli, p, fname, -1, STR_CONVERT);
p += len;
SSVAL(cli->outbuf,smb_ntcreate_NameLength, len);
--
To unsubscribe from this list go to the following URL and read the
instructions: http://lists.samba.org/mailman/listinfo/samba
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic