two warning on build samba-3.0.15pre2

Дейтер Александр В Дейтер Александр В
Thu Apr 21 18:24:16 GMT 2005


derrell at samba.org writes:

>>/usr/local/include/iconv.h:
>>extern size_t iconv (iconv_t cd, const char* * inbuf, size_t 
>>*inbytesleft, char* * outbuf, size_t *outbytesleft);
> Ugh.  So we need a configure check to determine the type of parameters just to
> avoid compiler warnings?  That's nasty.  All right, let me think about it.

Thanks a lot!

>>struct timeval {
>>        long            tv_sec;         /* seconds (XXX should be 
>>time_t) */

I shall ask about it developers FreeBSD.

> These time function issues are easy to fix, though; we just need to assign the
> value to a local (time_t) variable and pass the address of that instead.  It's
> the differences in prototypes that bug me.  Sigh.

Many thanks!

Sorry, another warnings (build samba-3.0.15pre2 on FreeBSD sparc64):

Compiling smbd/statcache.c
smbd/statcache.c: In function `stat_cache_add':
smbd/statcache.c:139: warning: cast from pointer to integer of different 
size

Compiling smbd/process.c
smbd/process.c: In function `switch_message':
smbd/process.c:893: warning: cast from pointer to integer of different size

Compiling rpc_parse/parse_prs.c
rpc_parse/parse_prs.c: In function `prs_pointer':
rpc_parse/parse_prs.c:603: warning: cast from pointer to integer of 
different size

Compiling rpc_parse/parse_misc.c
rpc_parse/parse_misc.c: In function `smb_io_dom_sid2_p':
rpc_parse/parse_misc.c:290: warning: cast from pointer to integer of 
different size
rpc_parse/parse_misc.c: In function `prs_io_unistr2_p':
rpc_parse/parse_misc.c:997: warning: cast from pointer to integer of 
different size
rpc_parse/parse_misc.c: In function `prs_io_unistr2':
rpc_parse/parse_misc.c:1032: warning: cast from pointer to integer of 
different size

Compiling libsmb/ntlmssp_parse.c
libsmb/ntlmssp_parse.c: In function `msrpc_parse':
libsmb/ntlmssp_parse.c:219: warning: cast to pointer from integer of 
different size
libsmb/ntlmssp_parse.c:247: warning: cast to pointer from integer of 
different size
libsmb/ntlmssp_parse.c:275: warning: cast to pointer from integer of 
different size

Compiling rpc_parse/parse_buffer.c
rpc_parse/parse_buffer.c: In function `prs_rpcbuffer_p':
rpc_parse/parse_buffer.c:109: warning: cast from pointer to integer of 
different size

Compiling passdb/pdb_nds.c
passdb/pdb_nds.c: In function `pdb_nds_get_password':
passdb/pdb_nds.c:672: warning: passing arg 3 of `nmasldap_get_password' 
from incompatible p
passdb/pdb_nds.c: In function `pdb_nds_update_login_attempts':
passdb/pdb_nds.c:798: warning: passing arg 3 of `pdb_nds_get_password' 
from incompatible po

Compiling tdb/tdbutil.c
tdb/tdbutil.c: In function `tdb_unpack':
tdb/tdbutil.c:532: warning: cast to pointer from integer of different size

Compiling utils/profiles.c
utils/profiles.c: In function `main':
utils/profiles.c:619: warning: cast from pointer to integer of different 
size

on i386 smbd -b reports:
Type sizes:
    sizeof(char):    1
    sizeof(int):     4
    sizeof(long):    4
    sizeof(uint8):   1
    sizeof(uint16):  2
    sizeof(uint32):  4
    sizeof(short):   2
    sizeof(void*):   4

on sparc64 smbd -b reports:
Type sizes:
    sizeof(char):    1
    sizeof(int):     4
    sizeof(long):    8
    sizeof(uint8):   1
    sizeof(uint16):  2
    sizeof(uint32):  4
    sizeof(short):   2
    sizeof(void*):   8

Thanks!

-- 
Alex Deiter


More information about the samba-technical mailing list