emerging netkit-telnetd solved the problem, but I think its not the correct way to go. emerge mit-krb5 -> takes 1.2.8.ebuild but same result with 1.2.7 make[3]: Entering directory `/mnt/data/tmp/portage/mit-krb5-1.2.8/work/krb5-1.2.8/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./.. -march=pentium -mcpu=pentium -O3 -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./.. -march=pentium -mcpu=pentium -O3 -pipe -c commands.c commands.c: In function `call': commands.c:2702: error: parse error before '...' token commands.c:2705: error: storage class specified for parameter `intrtn_t' commands.c:2706: error: parse error before "intrtn_t" commands.c:2705: error: declaration for parameter `intrtn_t' but no such parameter commands.c: At top level: commands.c:2715: warning: parameter names (without types) in function declaration commands.c:2715: warning: conflicting types for built-in function `__builtin_va_end' commands.c:2715: warning: data definition has no type or storage class commands.c:2716: error: parse error before "return" In file included from commands.c:2714: commands.c:2706: warning: passing arg of `call' makes integer from pointer without a cast commands.c:2706: warning: passing arg of `call' from incompatible pointer type In file included from commands.c:2714: commands.c:2706: warning: passing arg of `call' makes integer from pointer without a cast commands.c:2706: warning: passing arg of `call' from incompatible pointer type In file included from commands.c:2714: commands.c:2706: warning: passing arg of `call' makes integer from pointer without a cast commands.c:2706: warning: passing arg of `call' from incompatible pointer type make[3]: *** [commands.o] Error 1 make[3]: Leaving directory `/mnt/data/tmp/portage/mit-krb5-1.2.8/work/krb5-1.2.8/src/appl/telnet/telnet' make[2]: *** [all-recurse] Error 1 make[2]: Leaving directory `/mnt/data/tmp/portage/mit-krb5-1.2.8/work/krb5-1.2.8/src/appl/telnet' make[1]: *** [all-recurse] Error 1 make[1]: Leaving directory `/mnt/data/tmp/portage/mit-krb5-1.2.8/work/krb5-1.2.8/src/appl' make: *** [all-recurse] Error 1 !!! ERROR: app-crypt/mit-krb5-1.2.8 failed. !!! Function src_compile, Line 57, Exitcode 2 !!! (no error message) manually via ./configure make from 1.2.8 sourcetree same options as 1.2.8.ebuild, except without krb4, no CCOPTS, HOST not explicitely set. ../../../include -I./../../../include -I../../../include/krb5 -I./../../../inc lude/krb5 -I.. -I./.. -c utilities.c gcc -L../../../lib -o telnet authenc.o commands.o main.o network.o ring.o sys_ bsd.o telnet.o terminal.o utilities.o ../libtelnet/libtelnet.a -lkrb4 -lkrb5 -ldes425 -lk5crypto -lcom_err -lresolv -lcurses main.o(.text+0x2a3): In function `main': : undefined reference to `dest_realm' main.o(.text+0x2a7): In function `main': : undefined reference to `dst_realm_buf' main.o(.text+0x2b0): In function `main': : undefined reference to `dst_realm_sz' main.o(.text+0x2bc): In function `main': : undefined reference to `dest_realm' collect2: ld returned 1 exit status make[3]: *** [telnet] Error 1 make[3]: Leaving directory `/mnt/data/tmp/portage/mit-krb5-1.2.8/work/krb5-1.2 .8/src/appl/telnet/telnet' make[2]: *** [all-recurse] Error 1 make[2]: Leaving directory `/mnt/data/tmp/portage/mit-krb5-1.2.8/work/krb5-1.2 .8/src/appl/telnet' make[1]: *** [all-recurse] Error 1 make[1]: Leaving directory `/mnt/data/tmp/portage/mit-krb5-1.2.8/work/krb5-1.2 .8/src/appl' make: *** [all-recurse] Error 1 Reproducible: Always Steps to Reproduce: Actual Results: failure Expected Results: success nil mit-krb5 # emerge info Portage 2.0.48_pre6 (, gcc-3.2.2, glibc-2.3.2-r1) ================================================================= System uname: 2.4.20-xfs_pre5 i586 Pentium 75 - 200 GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/confi /usr/kde/3/share/config /opt/tomcat/conf" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/mnt/data/portage" DISTDIR="/mnt/data/distfiles" PKGDIR="/mnt/data/portage/packages" PORTAGE_TMPDIR="/mnt/data/tmp" PORTDIR_OVERLAY="/mnt/data/localportage" USE="x86 apm crypt cups jpeg libg++ mmx ncurses nls png truetype xml2 zlib gdbm rkdb slang readline tcpd pam libwww ssl -mysql -oav python -3dnow acl apache2 -a s -avi debug -encode -gif -gnome -gpm -gtk icc -imlib innodb -java -kde kerberos dap maildir mbox -mikmod -motif -mpeg -oggvorbis -opengl -oss -pdflib perl -qt - icktime ruby samba sasl -sdl slp -spell -svga -X -xmms -xv" COMPILER="gcc3" CHOST="i586-pc-linux-gnu" CFLAGS="-march=pentium -mcpu=pentium -O3 -pipe" CXXFLAGS="-march=pentium -mcpu=pentium -O3 -pipe" ACCEPT_KEYWORDS="x86 ~x86" MAKEOPTS="-j4" AUTOCLEAN="no" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox distcc ccache noauto"
It looks like this is the reason: In file included from commands.c:63: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/include/varargs.h:4:2: #error "GCC no longer implements <varargs.h>." /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/include/varargs.h:5:2: #error "Revise your code to use <stdarg.h>." I then get the following errors when compiling mit-krb5-1.2.8: 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.8/work/krb5-1.2.8/src/appl/telnet/telnet' make[2]: *** [all-recurse] Error 1 make[2]: Leaving directory `/var/tmp/portage/mit-krb5-1.2.8/work/krb5-1.2.8/src/appl/telnet' make[1]: *** [all-recurse] Error 1 make[1]: Leaving directory `/var/tmp/portage/mit-krb5-1.2.8/work/krb5-1.2.8/src/appl' make: *** [all-recurse] Error 1 !!! ERROR: app-crypt/mit-krb5-1.2.8 failed. !!! Function src_compile, Line 57, Exitcode 2 !!! (no error message) It looks as though the sources need to be patched to use stdarg.h instead of varargs.h.
My problem was not solved by emerging netkit-telnetd, so the problems may be unrelated.
David, your error is a different; it is a gcc-3.3 issue covered in Bug #22882
Paul: Is this still an issue with 1.3.1 of the ebuild?
closing as no info is given