Compiler Error

Maulik Desai mdesai at Omneon.com
Mon Jan 8 18:14:26 GMT 2001


Gustavo,

I ran across this problem as well when compiling Samba TNG on a RH7.0 box.
(did not see it with RH6.0 gcc)

FYI, this problem has been fixed in the HEAD branch:

$ cvs diff -r1.10 -r1.11 tdbutil.c
Index: tdbutil.c
===================================================================
RCS file: /cvsroot/samba/source/tdb/tdbutil.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -r1.10 -r1.11
143c143
<                       w = va_arg(ap, uint16);
---
>                       w = (uint16)va_arg(ap, int);


-Maulik

> -----Original Message-----
> From: root [mailto:gustavok at cetuc.puc-rio.br]
> Sent: Monday, January 08, 2001 9:56 AM
> To: samba-technical at samba.org
> Subject: Compiler Error
> 
> 
> Hi,
> 
> I am Network Administrator of  Center of Telecommunicatios 
> from PUC/RJ -
> Brazil. I have a Server Machine with RedHat 7.0 (Kernel 
> 2.4.10) and  try
> to install the SAMBA TNG 2.6 version. I execute  ./configure  command
> with no problems, but  when i execute "make"  command the following
> message appear:
> 
> "tdb/tdbutil.c: In Function `tdb_pack' :
>   tdb/tdbutil.c / :119:`short unsigned int' is promoted to `int' when
> password trhough `...'
>    tdb/tdbutil.c/ :119: (so you should pass `int' not `short unsigned
> int' to ' va_arg)
>    make: *** [tdb/tdbutil.lo] Error 1 "
> and  i can't  continue the installation. Please, someone help to me.
> 
> Thanks for Attention,
> Gustavo Klaus Ruziscka.
> 
> P.S: Sorry, for poor english.
> 
> 
> 
> 




More information about the samba-technical mailing list