patches/glibc/2.2.2/glibc-2.1.3-allow-gcc3-sscanf.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Feb 24 11:00:05 2007 +0000 (2007-02-24)
changeset 1 eeea35fbf182
permissions -rw-r--r--
Add the full crosstool-NG sources to the new repository of its own.
You might just say: 'Yeah! crosstool-NG's got its own repo!".
Unfortunately, that's because the previous repo got damaged beyond repair and I had no backup.
That means I'm putting backups in place in the afternoon.
That also means we've lost history... :-(
     1 http://sources.redhat.com/ml/bug-glibc/2003-08/msg00087.html
     2 
     3 From: Gernot Hillier <gernot dot hillier at siemens dot com>
     4 Organization: Siemens AG
     5 To: Jeffrey Bedard <jefbed at e-list dot net>, bug-glibc at gnu dot org
     6 Date: Mon, 18 Aug 2003 08:50:03 +0200
     7 References: <3F3D0899.6020004@e-list.net>
     8 Message-Id: <200308180850.03431.gernot.hillier@siemens.com>
     9 Subject: Re: Build Fails with gcc 3.3.1
    10 X-BeenThere: bug-glibc@gnu.org
    11 
    12 Hi!
    13 
    14 Am Freitag, 15. August 2003 18:21 schrieb Jeffrey Bedard:
    15 > gcc sscanf.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes
    16 [...]
    17 > sscanf.c:31: warning: conflicting types for built-in function `sscanf'
    18 > sscanf.c: In function `sscanf':
    19 > sscanf.c:37: error: `va_start' used in function with fixed args
    20 > .../stdio-common/_itoa.h: At top level:
    21 > .../stdio-common/_itoa.h:40: warning: inlining failed in call to
    22 > `_itoa_word' .../stdio-common/_itoa.h:76: warning: called from here
    23 > make[2]: ***
    24 > [/home/jefbed/src/packages/glibc-build/stdio-common/sscanf.o] Error 1
    25 
    26 You can find the fitting patch in the glibc CVS. You have to replace some 
    27 function headers. 
    28 
    29 I created a patch for glibc-2.2.5 for the same reason. I don't know if it 
    30 applies cleanly, but if not it should at least show you what to do...
    31 
    32 -- 
    33 Bye,
    34 
    35 Gernot Hillier
    36 Siemens AG
    37 
    38 
    39 
    40 
    41 Content-Disposition: attachment; filename="glibc-2.2.5-gcc-3.3.diff"
    42 
    43 diff -ur glibc-2.2.5.orig/stdio-common/sprintf.c glibc-2.2.5/stdio-common/sprintf.c
    44 --- glibc-2.2.5.orig/stdio-common/sprintf.c	2001-07-06 06:55:41.000000000 +0200
    45 +++ glibc-2.2.5/stdio-common/sprintf.c	2003-08-11 13:25:48.000000000 +0200
    46 @@ -27,9 +27,7 @@
    47  /* Write formatted output into S, according to the format string FORMAT.  */
    48  /* VARARGS2 */
    49  int
    50 -sprintf (s, format)
    51 -     char *s;
    52 -     const char *format;
    53 +sprintf (char *s, const char *format,...)
    54  {
    55    va_list arg;
    56    int done;
    57 Only in glibc-2.2.5/stdio-common: sprintf.c.orig
    58 Only in glibc-2.2.5/stdio-common: sprintf.c.rej
    59 diff -ur glibc-2.2.5.orig/stdio-common/sscanf.c glibc-2.2.5/stdio-common/sscanf.c
    60 --- glibc-2.2.5.orig/stdio-common/sscanf.c	2001-07-06 06:55:41.000000000 +0200
    61 +++ glibc-2.2.5/stdio-common/sscanf.c	2003-08-11 13:27:58.000000000 +0200
    62 @@ -27,9 +27,7 @@
    63  /* Read formatted input from S, according to the format string FORMAT.  */
    64  /* VARARGS2 */
    65  int
    66 -sscanf (s, format)
    67 -     const char *s;
    68 -     const char *format;
    69 +sscanf (const char *s, const char *format,...)
    70  {
    71    va_list arg;
    72    int done;
    73