Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 22353 - patch to compile glibc with gcc 3.3
Summary: patch to compile glibc with gcc 3.3
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-06 12:04 UTC by Travis Tilley (RETIRED)
Modified: 2003-08-02 08:58 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to allow glibc to compile using gcc 3.3 (glibc-gcc-3.3.patch,391 bytes, patch)
2003-06-06 12:06 UTC, Travis Tilley (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.