This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: build problem in glibc cvs


On Sat, Nov 02, 2002 at 11:35:18AM -0500, Jack Howarth wrote:
>    Current glibc cvs is failing on ppclinux with the following error
> during the build...
> 
> reg-printf.c: In function `__register_printf_function':
> reg-printf.c:44: `NULL' undeclared (first use in this function)
> reg-printf.c:44: (Each undeclared identifier is reported only once
> reg-printf.c:44: for each function it appears in.)
> 
> ...which seems to be fixed with the following change...
> 
> --- libc/stdio-common/reg-printf.c.org	2002-11-02 09:08:46.000000000 -0700
> +++ libc/stdio-common/reg-printf.c	2002-11-02 09:09:24.000000000 -0700
> @@ -19,6 +19,7 @@
>  #include <errno.h>
>  #include <limits.h>
>  #include <printf.h>
> +#include <stdio.h>
>  

Try this.


H.J.
---
2002-11-02  H.J. Lu  <hjl@gnu.org>

	* stdio-common/reg-printf.c: Include <stddef.h>.

--- stdio-common/reg-printf.c.NULL	Sat Nov  2 08:45:44 2002
+++ stdio-common/reg-printf.c	Sat Nov  2 09:25:54 2002
@@ -19,6 +19,7 @@
 #include <errno.h>
 #include <limits.h>
 #include <printf.h>
+#include <stddef.h>
 
 /* Array of functions indexed by format character.  */
 libc_freeres_ptr (printf_arginfo_function **__printf_arginfo_table)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]