James Carlson wrote:
> Neale Ferguson writes:
>> In gssapi.h the gss_buffer_desc structure looks like:
>>
>> typedef struct gss_buffer_desc_struct {
>>         size_t length;
>>         void *value;
>> } gss_buffer_desc, *gss_buffer_t;
>>
>> In ssh/sshd/auth2-gss.c a call to packet_get_string() is made using the 
>> length field of this structure. This requires a uint_t parameter. Now for 
>> sparc/i386 in 32-bit mode this is what size_t is. However, for other 
>> platforms and for the 64-bit world size_t may be unsigned long. Thus, 
>> compilation of auth2-gss.c results in a warning which, because of the 
>> -Werror flag, results in the warning being treated as an error and we fail.
> 
> You're right that when compiling in ILP32, size_t is 32 bits and when
> in LP64, it's 64 bits, but where are you seeing a warning or error?
> 
> That code doesn't seem to fail on our existing 64-bit plaforms.

We don't compile ssh as a 64 bit binary for SPARC or x86 though.

-- 
Darren J Moffat
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to