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

Michael Fuller via RT rt-comment at krbdev.mit.edu
Tue Dec 9 17:41:24 EST 2008


>> bash% tail -100 < ,make-check | head -22      
>> 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 "="
> 
> Does adding an inclusion of <string.h> to the beginning of that file help?

Yes, it does; the above warnings disappear and the test no longer crashes:
[...]
    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 304: warning: argument #2 is incompatible with prototype:
            prototype: pointer to struct _krb5_cc_ops {} : "../../../include/krb5/krb5.h", line 2068
            argument : pointer to const struct _krb5_cc_ops {}
    "t_cc.c", line 309: warning: argument #2 is incompatible with prototype:
            prototype: pointer to struct _krb5_cc_ops {} : "../../../include/krb5/krb5.h", line 2068
            argument : pointer to const struct _krb5_cc_ops {}
    "t_cc.c", line 315: warning: argument #2 is incompatible with prototype:
            prototype: pointer to struct _krb5_cc_ops {} : "../../../include/krb5/krb5.h", line 2068
            argument : pointer to const struct _krb5_cc_ops {}
    "t_cc.c", line 321: warning: argument #2 is incompatible with prototype:
            prototype: pointer to struct _krb5_cc_ops {} : "../../../include/krb5/krb5.h", line 2068
            argument : pointer to const struct _krb5_cc_ops {}
    cc -L../../../lib -R/tmp/krb5-1.6.3-CC/lib -xarch=v9  -o t_cc t_cc.o -lkrb5 -lk5crypto -lcom_err -lkrb5support  -lresolv -lsocket -lnsl 
    KRB5_CONFIG=./t_krb5.conf ; export KRB5_CONFIG ;\
    LD_LIBRARY_PATH=`echo -L../../../lib | sed -e "s/-L//g" -e "s/ /:/g"`; export LD_LIBRARY_PATH;  ./t_cc 
    Testing miscellaneous error conditions
    Starting test on /tmp/cctest.28984
    Test on /tmp/cctest.28984 passed
    Skiping KEYRING: test - unregistered type
    Starting test on MEMORY:/tmp/cctest.28984
    Test on MEMORY:/tmp/cctest.28984 passed
    Starting test on FILE:/tmp/cctest.28984
    Test on FILE:/tmp/cctest.28984 passed
[...]

Thanks;

Regards,
Michael




More information about the krb5-bugs mailing list