Krb5 on Apple OS

Tom Yu tlyu at MIT.EDU
Wed Sep 19 14:10:10 EDT 2012


"Rivera, Manuel CTR Naval Air Warfare Center, USN"
<manuel.rivera2.ctr at navy.mil> writes:

> Hello
> Due to a security issue I am in need to update to KRB5 1.10.3 (currently have 1.10.2).  After running ./Configure, make errors out with the folllwing:
>
> : ../lib/krb5/error_tables/asn1_err.h
> : db.h will be installed by util/db2
> cat ./osconf.hin | sed -e "s+ at KRB5RCTMPDIR+/var/tmp+" -e "s+ at PREFIX+/usr/local+" -e "s+ at EXEC_PREFIX+/usr/local+" -e "s+ at BINDIR+/usr/local/bin+" -e "s+ at LIBDIR+/usr/local/lib+" -e "s+ at SBINDIR+/usr/local/sbin+" -e "s+ at MODULEDIR+/usr/local/lib/krb5/plugins+" -e "s+ at GSSMODULEDIR+/usr/local/lib/gss+" -e 's+ at LOCALSTATEDIR+/usr/local/var+' -e 's+ at SYSCONFDIR+/usr/local/etc+' -e 's+ at DYNOBJEXT+.so+' > osconf.new
> ../config/move-if-changed osconf.new osconf.h
> osconf.h is unchanged
> making all in lib...
> making all in lib/crypto...
> making all in lib/crypto/krb...
> making all in lib/crypto/builtin...
> making all in lib/crypto/builtin/camellia...
> making all in lib/crypto/builtin/des...
> making all in lib/crypto/builtin/aes...
> making all in lib/crypto/builtin/md4...
> making all in lib/crypto/builtin/md5...
> making all in lib/crypto/builtin/sha1...
> making all in lib/crypto/builtin/sha2...
> making all in lib/crypto/builtin/enc_provider...
> making all in lib/crypto/builtin/hash_provider...
> making all in lib/crypto/crypto_tests...
> making all in lib/krb5...
> making all in lib/krb5/error_tables...
> making all in lib/krb5/asn.1...
> making all in lib/krb5/ccache...
> making all in lib/krb5/keytab...
> making all in lib/krb5/krb...
> gcc  -DSHARED -DLIBDIR=\"/usr/local/lib\" -DDYNOBJEXT=\".so\"  -I../../../include -I../../../include -I./../os -I../../.. -DKRB5_DEPRECATED=1 -DKRB5_PRIVATE  -g -O2 -fno-common -Wall -Wcast-align -Wshadow -Wmissing-prototypes -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 -Wnewline-eof -Werror=uninitialized -Werror=declaration-after-statement -Werror=variadic-macros -Werror-implicit-function-declaration  -c deltat.c -o deltat.so.o && mv -f deltat.so.o deltat.so
> x-deltat.y:45: warning: expected [error|warning|ignored] after '#pragma GCC diagnostic'
> deltat.c: In function 'yyparse':
> deltat.c:1198: error: expected ',' or ';' before '=' token

Line 1198 is the declaration "YYSTYPE yylval;".  This implies that the
definition of YYSTYPE (around line 202) is somehow broken.  I don't
think I've seen this before on Mac OS X.  What version of the OS are
you running, and what version of compiler / developer tools?

> deltat.c:1201: warning: ISO C90 forbids mixed declarations and code
> x-deltat.y: At top level:
> x-deltat.y:177: warning: expected [error|warning|ignored] after '#pragma GCC diagnostic'
> make[3]: *** [deltat.so] Error 1
> make[2]: *** [all-recurse] Error 1
> make[1]: *** [all-recurse] Error 1
> make: *** [all-recurse] Error 1
>
> I have two other Apple systems that applied the updates successfully. This one system  cannot take the upgrade. Is there a way to remove KRB5 from Apple OS 10.6 or what is causing this issue? Thanks!

Is the compilation problem on 10.6?  Are the systems where the build
succeeds also running 10.6?


More information about the Kerberos mailing list