openssh 5.2p1 fails to build on IRIX 5.3

Tim Rice tim at multitalents.net
Thu Mar 19 04:07:26 EST 2009


On Mon, 16 Mar 2009, Tom Christensen wrote:

> The second problem has been around since 4.7p1 and is only present when 
> building with the old SGI compiler:
> cfe: Error: atomicio.c, line 102: Unacceptable operand of == or !=
>          pfd.events = f == readv ? 0x0001  : 0x0004 ;
>          ---------------^
> make: *** [atomicio.o] Error 1
> 
> The code is gibberish to me but since GCC has no issues I assume it's 
> the compiler being difficult and not a problem with the intent of the
> code.
> Is there perhaps another way to write this that the SGI compiler would 
> be more likely to grok?

Does your compiler like this any better?
pfd.events = (f == readv) ? 0x0001  : 0x0004 ;

-- 
Tim Rice				Multitalents	(707) 887-1469
tim at multitalents.net




More information about the openssh-unix-dev mailing list