Compile error

Jos Backus josb at cncdsl.com
Tue Mar 12 17:11:50 EST 2002


On Mon, Mar 11, 2002 at 08:45:44PM -0800, Jennifer Lu wrote:
> I tried to compile rsync2.5.3 on Solaris5.7, and I still
> got the same errors as Solaris5.8, can you please help 
> me to look at the problem? I got error messages:
> 
> Configure was run successfully, then I ran make, 
> I got:
> 
> "batch.c", line 408: operands have incompatible types:
>          pointer to unsigned long ":" pointer to unsigned int
> cc: acomp failed for batch.c
> *** Error code 2
> make: Fatal error: Command failed for target `batch.o'

Does this patch help?

Index: batch.c
===================================================================
RCS file: /cvsroot/rsync/batch.c,v
retrieving revision 1.13
diff -u -r1.13 batch.c
--- batch.c     6 Feb 2002 21:20:48 -0000   1.13
+++ batch.c     12 Mar 2002 06:16:49 -0000
@@ -396,7 +396,7 @@
                   struct sum_struct *s)
 {
     size_t i;
-    unsigned int int_zero = 0;
+    size_t int_zero = 0;
     extern int csum_length;
 
     fdb_open = 1;

-- 
Jos Backus                 _/  _/_/_/        Santa Clara, CA
                          _/  _/   _/
                         _/  _/_/_/             
                    _/  _/  _/    _/
josb at cncdsl.com     _/_/   _/_/_/            use Std::Disclaimer;




More information about the rsync mailing list