krb5-1.9.1 compilation errors on NetBSD

Julien ÉLIE julien at trigofacile.com
Thu Sep 15 13:45:32 EDT 2011


Hi all,

I get a fatal error when I try to build krb5-1.9.1 on NetBSD 5.1 (amd64):

/home/iulius/autobuild/bin/gcc-core-4.6.1/bin/gcc -fPIC -DSHARED -DLIBDIR=\"/home/iulius/autobuild/bin/krb5-1.9.1/lib\"  -I../../../include -I../../../include -I./../os -I../../.. -DKRB5_DEPRECATED=1  -g -O2 -Wall -Wcast-align -Wshadow -Wmissing-prototypes -pedantic -Wno-format-zero-length -Woverflow -Wstrict-overflow -Wmissing-format-attribute -Wmissing-prototypes -Wreturn-type -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wunused-variable -Wunused-value -Wunknown-pragmas -Wsign-compare -Werror=declaration-after-statement -Werror=variadic-macros -Werror-implicit-function-declaration -pthread -c init_ctx.c -o init_ctx.so.o && mv -f init_ctx.so.o init_ctx.so
init_ctx.c: In function 'init_common':
init_ctx.c:134:5: error: implicit declaration of function 'krb5int_initialize_library' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors


I know I can remove the "-Werror-implicit-function-declaration" flag by hand,
but the problem is that it is present in the default build options.
Isn't there something to fix in krb5-1.9.1?




Also, I noticed other few (non-blocking) warnings:

../../include/k5-platform.h: In function 'store_64_be':
../../include/k5-platform.h:594:1: warning: use of C99 long long integer constant [-Wlong-long]
../../include/k5-platform.h: In function 'load_64_be':
../../include/k5-platform.h:639:1: warning: use of C99 long long integer constant [-Wlong-long]
../../include/k5-platform.h: In function 'k5_htonll':
../../include/k5-platform.h:785:23: warning: use of C99 long long integer constant [-Wlong-long]

threads.c: In function 'krb5int_pthread_loaded':
threads.c:139:30: warning: the comparison will always evaluate as 'false' for the address of '__libc_thr_getspecific' will never be NULL [-Waddress]
threads.c:140:33: warning: the comparison will always evaluate as 'false' for the address of '__libc_thr_setspecific' will never be NULL [-Waddress]
threads.c:141:32: warning: the comparison will always evaluate as 'false' for the address of '__libc_thr_keycreate' will never be NULL [-Waddress]
[...]


krb5_decode.c: In function 'decode_krb5_authenticator':
krb5_decode.c:249:7: warning: variable 'taglen' set but not used [-Wunused-but-set-variable]
krb5_decode.c: In function 'decode_krb5_ticket':
krb5_decode.c:288:7: warning: variable 'taglen' set but not used [-Wunused-but-set-variable]
krb5_decode.c: In function 'decode_krb5_encryption_key':
krb5_decode.c:313:7: warning: variable 'taglen' set but not used [-Wunused-but-set-variable]
krb5_decode.c: In function 'decode_krb5_enc_tkt_part':
krb5_decode.c:337:7: warning: variable 'taglen' set but not used [-Wunused-but-set-variable]
krb5_decode.c: In function 'decode_krb5_as_rep':
krb5_decode.c:386:5: warning: variable 'construction' set but not used [-Wunused-but-set-variable]
krb5_decode.c:386:5: warning: variable 'asn1class' set but not used [-Wunused-but-set-variable]
krb5_decode.c:386:5: warning: variable 'tagnum' set but not used [-Wunused-but-set-variable]
[...]


gic_pwd.c: In function 'krb5_get_as_key_password':
gic_pwd.c:65:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

in_tkt_sky.c: In function 'krb5_get_in_tkt_with_skey':
in_tkt_sky.c:87:9: warning: 'krb5_get_in_tkt_with_keytab' is deprecated (declared at ../../../include/krb5/krb5.h:1980) [-Wdeprecated-declarations]


I thought it could be of help to share these results.
(Compilation done on gcc70, in the GCC Compile Farm.)

-- 
Julien ÉLIE

« Sitis licita, etiam potio licita. » 



More information about the krbdev mailing list