yann@1: http://sources.redhat.com/ml/bug-glibc/2003-08/msg00087.html yann@1: yann@1: From: Gernot Hillier yann@1: Organization: Siemens AG yann@1: To: Jeffrey Bedard , bug-glibc at gnu dot org yann@1: Date: Mon, 18 Aug 2003 08:50:03 +0200 yann@1: References: <3F3D0899.6020004@e-list.net> yann@1: Message-Id: <200308180850.03431.gernot.hillier@siemens.com> yann@1: Subject: Re: Build Fails with gcc 3.3.1 yann@1: X-BeenThere: bug-glibc@gnu.org yann@1: yann@1: Hi! yann@1: yann@1: Am Freitag, 15. August 2003 18:21 schrieb Jeffrey Bedard: yann@1: > gcc sscanf.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes yann@1: [...] yann@1: > sscanf.c:31: warning: conflicting types for built-in function `sscanf' yann@1: > sscanf.c: In function `sscanf': yann@1: > sscanf.c:37: error: `va_start' used in function with fixed args yann@1: > .../stdio-common/_itoa.h: At top level: yann@1: > .../stdio-common/_itoa.h:40: warning: inlining failed in call to yann@1: > `_itoa_word' .../stdio-common/_itoa.h:76: warning: called from here yann@1: > make[2]: *** yann@1: > [/home/jefbed/src/packages/glibc-build/stdio-common/sscanf.o] Error 1 yann@1: yann@1: You can find the fitting patch in the glibc CVS. You have to replace some yann@1: function headers. yann@1: yann@1: I created a patch for glibc-2.2.5 for the same reason. I don't know if it yann@1: applies cleanly, but if not it should at least show you what to do... yann@1: yann@1: -- yann@1: Bye, yann@1: yann@1: Gernot Hillier yann@1: Siemens AG yann@1: yann@1: yann@1: yann@1: yann@1: Content-Disposition: attachment; filename="glibc-2.2.5-gcc-3.3.diff" yann@1: yann@1: diff -ur glibc-2.2.5.orig/stdio-common/sprintf.c glibc-2.2.5/stdio-common/sprintf.c yann@1: --- glibc-2.2.5.orig/stdio-common/sprintf.c 2001-07-06 06:55:41.000000000 +0200 yann@1: +++ glibc-2.2.5/stdio-common/sprintf.c 2003-08-11 13:25:48.000000000 +0200 yann@1: @@ -27,9 +27,7 @@ yann@1: /* Write formatted output into S, according to the format string FORMAT. */ yann@1: /* VARARGS2 */ yann@1: int yann@1: -sprintf (s, format) yann@1: - char *s; yann@1: - const char *format; yann@1: +sprintf (char *s, const char *format,...) yann@1: { yann@1: va_list arg; yann@1: int done; yann@1: Only in glibc-2.2.5/stdio-common: sprintf.c.orig yann@1: Only in glibc-2.2.5/stdio-common: sprintf.c.rej yann@1: diff -ur glibc-2.2.5.orig/stdio-common/sscanf.c glibc-2.2.5/stdio-common/sscanf.c yann@1: --- glibc-2.2.5.orig/stdio-common/sscanf.c 2001-07-06 06:55:41.000000000 +0200 yann@1: +++ glibc-2.2.5/stdio-common/sscanf.c 2003-08-11 13:27:58.000000000 +0200 yann@1: @@ -27,9 +27,7 @@ yann@1: /* Read formatted input from S, according to the format string FORMAT. */ yann@1: /* VARARGS2 */ yann@1: int yann@1: -sscanf (s, format) yann@1: - const char *s; yann@1: - const char *format; yann@1: +sscanf (const char *s, const char *format,...) yann@1: { yann@1: va_list arg; yann@1: int done; yann@1: