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 <[email protected]> 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+@KRB5RCTMPDIR+/var/tmp+" -e 
> "s+@PREFIX+/usr/local+" -e "s+@EXEC_PREFIX+/usr/local+" -e 
> "s+@BINDIR+/usr/local/bin+" -e "s+@LIBDIR+/usr/local/lib+" -e 
> "s+@SBINDIR+/usr/local/sbin+" -e "s+@MODULEDIR+/usr/local/lib/krb5/plugins+" 
> -e "s+@GSSMODULEDIR+/usr/local/lib/gss+" -e 
> 's+@LOCALSTATEDIR+/usr/local/var+' -e 's+@SYSCONFDIR+/usr/local/etc+' -e 
> 's+@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           [email protected]
> https://mailman.mit.edu/mailman/listinfo/kerberos
>



-- 
      ,   _                                    _   ,
     { \/`o;====-    Olga Kryzhanovska   -====;o`\/ }
.----'-/`-/     [email protected]   \-`\-'----.
 `'-..-| /       http://twitter.com/fleyta     \ |-..-'`
      /\/\     Solaris/BSD//C/C++ programmer   /\/\
      `--`                                      `--`

________________________________________________
Kerberos mailing list           [email protected]
https://mailman.mit.edu/mailman/listinfo/kerberos

Reply via email to