Error building CVS on Tru64 UNIX

2002-02-21 Thread Albert Chin

Latest CVS gives the following error with the Compaq C compiler on
Tru64 UNIX:
  cc -I. -I. -O2 -std1 -DHAVE_CONFIG_H -I./popt -c batch.c -o batch.o
  cc: Error: batch.c, line 408: In this statement, a common type could
  not be determined for the 2nd and 3rd operands (s-count and
  int_zero) of a conditional operator. (badcondit)
  write_batch_csums_file(s ? s-count : int_zero, sizeof(int));
  ---^
  gmake: *** [batch.o] Error 1

If I case s-count to (unsigned int *), then it compiles.

-- 
albert chin ([EMAIL PROTECTED])

-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html



Re: Error building CVS on Tru64 UNIX

2002-02-21 Thread Jos Backus

On Thu, Feb 21, 2002 at 05:49:03PM -0600, Albert Chin wrote:
 If I case s-count to (unsigned int *), then it compiles.

How about casting to size_t * (since s-count has type size_t)?

(Btw, I'll try the configure patch tomorrow and let you know).

-- 
Jos Backus _/  _/_/_/Santa Clara, CA
  _/  _/   _/
 _/  _/_/_/ 
_/  _/  _/_/
[EMAIL PROTECTED] _/_/   _/_/_/use Std::Disclaimer;

-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html