[krbdev.mit.edu #6297] "make check" fails due to rb5_cc_new_unique() on 64-bit Solaris SPARC under Sun Studio

Ken Raeburn via RT rt-comment at krbdev.mit.edu
Tue Dec 9 16:46:11 EST 2008


On Dec 8, 2008, Michael Fuller wrote:
> making check in lib/krb5/ccache...
> cc   -I../../../include -I./../../../include -I./ccapi   - 
> DKRB5_DEPRECATED=1 -DKRB5_PRIVATE=1   -xarch=v9 -D_REENTRANT -c t_cc.c
> "t_cc.c", line 140: warning: implicit function declaration: strdup
> "t_cc.c", line 140: warning: improper pointer/integer combination:  
> op "="

In 64-bit mode, where the implicit "int" return type is a 32-bit value  
and the real return value is a 64-bit value, yes, this will cause  
problems.

In the string.h header on my system, defining _REENTRANT appears to be  
one of the ways to get the declaration for strdup() to be used.  I'm  
using:

cc: Sun C 5.9 SunOS_sparc 2007/05/03

What does it take under 5.8?

Ken





More information about the krb5-bugs mailing list