Bug 134909 - krb5-1.2.7-28 build from SRPM fails with gcc-3.3.3
Summary: krb5-1.2.7-28 build from SRPM fails with gcc-3.3.3
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: krb5
Version: 3.0
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Nalin Dahyabhai
QA Contact: Brian Brock
Depends On:
TreeView+ depends on / blocked
Reported: 2004-10-07 04:53 UTC by Sivasankar Chander
Modified: 2007-11-30 22:07 UTC (History)
0 users

Clone Of:
Last Closed: 2005-09-15 21:29:53 UTC

Attachments (Terms of Use)
Patchfile for krb5-1.2.7-28 to allow building with gcc-3.3.3 (1.46 KB, patch)
2004-10-07 05:01 UTC, Sivasankar Chander
no flags Details | Diff

Description Sivasankar Chander 2004-10-07 04:53:51 UTC
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):

How reproducible:

Steps to Reproduce:
1. Install gcc-3.3.3
2. Rebuild krb5-1.2.7-28.src.rpm


Actual Results: 
-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:
/usr/lib/gcc-lib/i386-redhat-linux/3.3.3/include/varargs.h:4:2: #error
"GCC no longer implements <varargs.h>."
/usr/lib/gcc-lib/i386-redhat-linux/3.3.3/include/varargs.h:5:2: #error
"Revise your code to use <stdarg.h>."

Expected Results:  It should have built cleanly.

Additional info:

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).

Comment 1 Sivasankar Chander 2004-10-07 05:01:25 UTC
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

Comment 2 Nalin Dahyabhai 2005-09-15 21:29:53 UTC
Fixed for RHEL3 in 1.2.7-41.

Note You need to log in before you can comment on or make changes to this bug.