From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040808
Description of problem:
Attempted to rebuild krb5-1.2.7-28.src.rpm using an (upgraded)
gcc-3.3.3 compiler toolchain, but the build failed to complete.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install gcc-3.3.3
2. Rebuild krb5-1.2.7-28.src.rpm
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 -DTERMCAP=1 -DUSE_TERMIO=1
-DPOSIX_SIGNALS=1 -DKRB4=1 -DAUTHENTICATION -DENCRYPTION -DKRB5
-DFORWARD -UNO_LOGIN_F -DLOGIN_CAP_F -DLOGIN_PROGRAM=KRB5_PATH_LOGIN
-DLINEMODE -DKLUDGELINEMODE -DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON
-DKRB5_KRB4_COMPAT -I../../../include -I./../../../include
-I../../../include/krb5 -I./../../../include/krb5 -I.. -I./.. -O2
-march=i386 -mcpu=i686 -D_FILE_OFFSET_BITS=64 -fPIC -c commands.c
In file included from commands.c:63:
"GCC no longer implements <varargs.h>."
"Revise your code to use <stdarg.h>."
Expected Results: It should have built cleanly.
The problem seems to be that inclusion of <varargs.h> is no longer
supported in gcc-3.3.3, and has been replaced by <stdarg.h>.
The attached patch (mostly syntax-related) fixes this and allows a
clean build of krb5-1.2.7-28.src.rpm with gcc-3.3.3 (it should also
work with earlier releases of gcc).
Created attachment 104881 [details]
Patchfile for krb5-1.2.7-28 to allow building with gcc-3.3.3
Added as last patch (#45) in specfile, but the order doesn't really matter - it
only touches one file: krb5-1.2.7/src/appl/telnet/telnet/commands.c
Fixed for RHEL3 in 1.2.7-41.