This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Build failure glibc HEAD and gcc 3_3-branch
- From: Andreas Schwab <schwab at suse dot de>
- To: Andrew Walrond <andrew at walrond dot org>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Wed, 05 Mar 2003 12:09:30 +0100
- Subject: Re: Build failure glibc HEAD and gcc 3_3-branch
- References: <3E65C6C2.5030001@walrond.org>
Andrew Walrond <andrew at walrond dot org> writes:
|> Hi,
|>
|> I'm seeing the following build failure when compiling with gcc 3_3-branch
|>
|> sscanf.c:31: warning: conflicting types for built-in function `sscanf'
|> sscanf.c: In function `sscanf':
|> sscanf.c:37: error: `va_start' used in function with fixed args
|> make[2]: *** [/tmp/ftl-24384/wAl1669/stdio-common/sscanf.o] Error 1
|> make[2]: *** Waiting for unfinished jobs....
|> make[2]: Leaving directory `/tmp/ftl-24384/glibc-HEAD/stdio-common'
|> make[1]: *** [stdio-common/subdir_lib] Error 2
|> make[1]: Leaving directory `/tmp/ftl-24384/glibc-HEAD'
|> make: *** [all] Error 2
|>
|>
|> Works fine with gcc 3.2.2
|>
|> Any clues?
Try this:
2003-03-05 Andreas Schwab <schwab at suse dot de>
* stdio-common/sscanf.c (sscanf): Convert to new style
declaration.
--- stdio-common/sscanf.c.~1.8.~ 2003-01-16 11:25:20.000000000 +0100
+++ stdio-common/sscanf.c 2003-03-05 12:07:34.000000000 +0100
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991,95,96,98,2002 Free Software Foundation, Inc.
+/* Copyright (C) 1991,95,96,98,2002, 2003 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -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;
Andreas.
--
Andreas Schwab, SuSE Labs, schwab at suse dot de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."