When I try to compile Kerberos by emerging it, the compilation breaks. Reproducible: Always Steps to Reproduce: 1. Set the kerberos USE flag. 2. Emerge kerberos. Actual Results: making all in appl/telnet/telnet... make[3]: Entering directory `/var/tmp/portage/mit-krb5-1.2.7/work/krb5-1.2.7/src/appl/telnet/telnet' gcc -DKRB5_DNS_LOOKUP_KDC=1 -DKRB5_DNS_LOOKUP_REALM=1 -DKRB5_DNS_LOOKUP=1 -DSTDC_HEADERS=1 -DHAVE_STRING_H=1 -DHAVE_ARPA_NAMESER_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_ARPA_INET_H=1 -DHAVE_SETUPTERM=1 -DUSE_TERMIO=1 -DPOSIX_SIGNALS=1 -DAUTHENTICATION -DENCRYPTION -DKRB5 -DFORWARD -UNO_LOGIN_F -DLOGIN_CAP_F -DLOGIN_PROGRAM=KRB5_PATH_LOGIN -DLINEMODE -DKLUDGELINEMODE -DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON -I../../../include -I./../../../include -I../../../include/krb5 -I./../../../include/krb5 -I.. -I./.. -O3 -march=pentium4 -mcpu=pentium4 -fprefetch-loop-arrays -fomit-frame-pointer -pipe -c authenc.c gcc -DKRB5_DNS_LOOKUP_KDC=1 -DKRB5_DNS_LOOKUP_REALM=1 -DKRB5_DNS_LOOKUP=1 -DSTDC_HEADERS=1 -DHAVE_STRING_H=1 -DHAVE_ARPA_NAMESER_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_ARPA_INET_H=1 -DHAVE_SETUPTERM=1 -DUSE_TERMIO=1 -DPOSIX_SIGNALS=1 -DAUTHENTICATION -DENCRYPTION -DKRB5 -DFORWARD -UNO_LOGIN_F -DLOGIN_CAP_F -DLOGIN_PROGRAM=KRB5_PATH_LOGIN -DLINEMODE -DKLUDGELINEMODE -DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON -I../../../include -I./../../../include -I../../../include/krb5 -I./../../../include/krb5 -I.. -I./.. -O3 -march=pentium4 -mcpu=pentium4 -fprefetch-loop-arrays -fomit-frame-pointer -pipe -c commands.c In file included from commands.c:63: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/varargs.h:4:2: #error "GCC no longer implements <varargs.h>." /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/varargs.h:5:2: #error "Revise your code to use <stdarg.h>." commands.c:2702: error: syntax error before "va_dcl" commands.c:2703: error: syntax error before '{' token commands.c:2710: warning: parameter names (without types) in function declaration commands.c:2710: warning: data definition has no type or storage class commands.c:2711: error: conflicting types for `routine' commands.c:2706: error: previous declaration of `routine' commands.c:2711: error: `ap' undeclared here (not in a function) commands.c:2711: error: syntax error before "intrtn_t" commands.c:2715: warning: parameter names (without types) in function declaration commands.c:2715: warning: data definition has no type or storage class commands.c:2716: error: syntax error before "return" commands.c:118: warning: `call' used but never defined make[3]: *** [commands.o] Error 1 make[3]: Leaving directory `/var/tmp/portage/mit-krb5-1.2.7/work/krb5-1.2.7/src/appl/telnet/telnet' make[2]: *** [all-recurse] Error 1 make[2]: Leaving directory `/var/tmp/portage/mit-krb5-1.2.7/work/krb5-1.2.7/src/appl/telnet' make[1]: *** [all-recurse] Error 1 make[1]: Leaving directory `/var/tmp/portage/mit-krb5-1.2.7/work/krb5-1.2.7/src/appl' make: *** [all-recurse] Error 1 !!! ERROR: app-crypt/mit-krb5-1.2.7 failed. !!! Function src_compile, Line 59, Exitcode 2 !!! (no error message) Expected Results: The build works. It looks like a different library needs used for gcc 3.3.2 GCC info: Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/specs Configured with: /var/tmp/portage/gcc-3.3.2-r5/work/gcc-3.3.2/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3 --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info --enable-shared --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib --enable-languages=c,c++,f77,objc --enable-threads=posix --enable-long-long --disable-checking --enable-cstdio=stdio --enable-clocale=generic --enable-__cxa_atexit --enable-version-specific-runtime-libs --with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/g++-v3 --with-local-prefix=/usr/local --enable-shared --enable-nls --without-included-gettext --disable-multilib Thread model: posix gcc version 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7)
This also happens on my system. Seems to be a problem with the orginal source code. Notify the devs or update the code maybe?
There's also a 1.3.1 version available - http://web.mit.edu/kerberos/www/krb5-1.3/ The Ebuild is 1.2.7.
Hmmm, maybe we should go ahead and try that 1.3 version :) http://www.gentoo.org/cgi-bin/viewcvs.cgi/*checkout*/app-crypt/mit-krb5/ChangeLog
>>> app-crypt/mit-krb5-1.3.1 merged. :-D
Closing.