1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/glibc/2.2.2/glibc-2.1.3-allow-gcc3-sscanf.patch Sat Jun 02 08:13:13 2007 +0000
1.3 @@ -0,0 +1,73 @@
1.4 +http://sources.redhat.com/ml/bug-glibc/2003-08/msg00087.html
1.5 +
1.6 +From: Gernot Hillier <gernot dot hillier at siemens dot com>
1.7 +Organization: Siemens AG
1.8 +To: Jeffrey Bedard <jefbed at e-list dot net>, bug-glibc at gnu dot org
1.9 +Date: Mon, 18 Aug 2003 08:50:03 +0200
1.10 +References: <3F3D0899.6020004@e-list.net>
1.11 +Message-Id: <200308180850.03431.gernot.hillier@siemens.com>
1.12 +Subject: Re: Build Fails with gcc 3.3.1
1.13 +X-BeenThere: bug-glibc@gnu.org
1.14 +
1.15 +Hi!
1.16 +
1.17 +Am Freitag, 15. August 2003 18:21 schrieb Jeffrey Bedard:
1.18 +> gcc sscanf.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes
1.19 +[...]
1.20 +> sscanf.c:31: warning: conflicting types for built-in function `sscanf'
1.21 +> sscanf.c: In function `sscanf':
1.22 +> sscanf.c:37: error: `va_start' used in function with fixed args
1.23 +> .../stdio-common/_itoa.h: At top level:
1.24 +> .../stdio-common/_itoa.h:40: warning: inlining failed in call to
1.25 +> `_itoa_word' .../stdio-common/_itoa.h:76: warning: called from here
1.26 +> make[2]: ***
1.27 +> [/home/jefbed/src/packages/glibc-build/stdio-common/sscanf.o] Error 1
1.28 +
1.29 +You can find the fitting patch in the glibc CVS. You have to replace some
1.30 +function headers.
1.31 +
1.32 +I created a patch for glibc-2.2.5 for the same reason. I don't know if it
1.33 +applies cleanly, but if not it should at least show you what to do...
1.34 +
1.35 +--
1.36 +Bye,
1.37 +
1.38 +Gernot Hillier
1.39 +Siemens AG
1.40 +
1.41 +
1.42 +
1.43 +
1.44 +Content-Disposition: attachment; filename="glibc-2.2.5-gcc-3.3.diff"
1.45 +
1.46 +diff -ur glibc-2.2.5.orig/stdio-common/sprintf.c glibc-2.2.5/stdio-common/sprintf.c
1.47 +--- glibc-2.2.5.orig/stdio-common/sprintf.c 2001-07-06 06:55:41.000000000 +0200
1.48 ++++ glibc-2.2.5/stdio-common/sprintf.c 2003-08-11 13:25:48.000000000 +0200
1.49 +@@ -27,9 +27,7 @@
1.50 + /* Write formatted output into S, according to the format string FORMAT. */
1.51 + /* VARARGS2 */
1.52 + int
1.53 +-sprintf (s, format)
1.54 +- char *s;
1.55 +- const char *format;
1.56 ++sprintf (char *s, const char *format,...)
1.57 + {
1.58 + va_list arg;
1.59 + int done;
1.60 +Only in glibc-2.2.5/stdio-common: sprintf.c.orig
1.61 +Only in glibc-2.2.5/stdio-common: sprintf.c.rej
1.62 +diff -ur glibc-2.2.5.orig/stdio-common/sscanf.c glibc-2.2.5/stdio-common/sscanf.c
1.63 +--- glibc-2.2.5.orig/stdio-common/sscanf.c 2001-07-06 06:55:41.000000000 +0200
1.64 ++++ glibc-2.2.5/stdio-common/sscanf.c 2003-08-11 13:27:58.000000000 +0200
1.65 +@@ -27,9 +27,7 @@
1.66 + /* Read formatted input from S, according to the format string FORMAT. */
1.67 + /* VARARGS2 */
1.68 + int
1.69 +-sscanf (s, format)
1.70 +- const char *s;
1.71 +- const char *format;
1.72 ++sscanf (const char *s, const char *format,...)
1.73 + {
1.74 + va_list arg;
1.75 + int done;
1.76 +