Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 22353

Summary: patch to compile glibc with gcc 3.3
Product: Gentoo Linux Reporter: Travis Tilley (RETIRED) <lv>
Component: [OLD] Core systemAssignee: Martin Schlemmer (RETIRED) <azarah>
Status: RESOLVED WONTFIX    
Severity: normal CC: cretin, drobbins
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch to allow glibc to compile using gcc 3.3

Description Travis Tilley (RETIRED) gentoo-dev 2003-06-06 12:04:41 UTC
The following patch allows glibc 2.3.1 and 2.3.2 both to compile using gcc 3.3, which otherwise 
would refuse to do so. 
 
 
--- stdio-common/sscanf.c.old   2003-06-06 11:12:15.000000000 -0400 
+++ stdio-common/sscanf.c       2003-06-06 11:13:35.000000000 -0400 
@@ -27,9 +27,7 @@ 
 /* Read formatted input from S, according to the format string FORMAT.  */ 
 /* VARARGS2 */ 
 int 
-sscanf (s, format) 
-     const char *s; 
-     const char *format; 
+sscanf (const char *s, const char *format, ...) 
 { 
   va_list arg; 
   int done; 
 

Reproducible: Always
Steps to Reproduce:
Comment 1 Travis Tilley (RETIRED) gentoo-dev 2003-06-06 12:06:46 UTC
Created attachment 12883 [details, diff]
patch to allow glibc to compile using gcc 3.3
Comment 2 Travis Tilley (RETIRED) gentoo-dev 2003-06-25 18:25:15 UTC
mentioned this on irc after the day of the accidental unmasking of glibc 2.3.2. adding drobbins to cc.

I dont know if there is any reason to stick with glibc 2.3.1 on amd64 but this at least allows it to compile with gcc 3.3. it is apparently the same patch used currently for glibc 2.3.2, only without patching the copyright notice to add the year 2003 (eh?).
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2003-08-02 08:58:57 UTC
I rather have this as a wontfix.  If you need to use gcc-3.3, then rather
use glibc-2.3.2.