Krb5 on Apple OS

ольга крыжановская olga.kryzhanovska at gmail.com
Wed Sep 19 14:45:45 EDT 2012


Rivera, it sounds like your compiler defaults to the C90 standard,
while the warning messages IMO indicate the code is written for C99
(newer standard version of ISO C).

deltat.c:1198: error: expected ',' or ';' before '=' token
deltat.c:1201: warning: ISO C90 forbids mixed declarations and code

I *think* you should check the compiler manual to enforce the use of
C99, like gcc -std=gnu99 (that is ISO C99+GNU extensions).

Olga

On Wed, Sep 19, 2012 at 3:46 PM, Rivera, Manuel CTR Naval Air Warfare
Center, USN <manuel.rivera2.ctr at navy.mil> wrote:
> 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
> 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!
>
> Manuel Rivera
> NAVAIR JBDML/SSI
> Information System Security Officer
> Senior System Administrator
>
> Phone:                       (732) 323-1233
> Cell:                           (732) 600-8744
> Staging Area             (732) 323-4135
> ____________________________________
> "Knowing is not enough we must apply,
> Willing is not enough, we must do"
> -Bruce Lee
> ___________________________________
>
> ________________________________________________
> Kerberos mailing list           Kerberos at mit.edu
> https://mailman.mit.edu/mailman/listinfo/kerberos
>



-- 
      ,   _                                    _   ,
     { \/`o;====-    Olga Kryzhanovska   -====;o`\/ }
.----'-/`-/     olga.kryzhanovska at gmail.com   \-`\-'----.
 `'-..-| /       http://twitter.com/fleyta     \ |-..-'`
      /\/\     Solaris/BSD//C/C++ programmer   /\/\
      `--`                                      `--`



More information about the Kerberos mailing list