This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: build problem in glibc cvs
- From: "H. J. Lu" <hjl at lucon dot org>
- To: Jack Howarth <howarth at bromo dot msbb dot uc dot edu>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Sat, 2 Nov 2002 09:32:09 -0800
- Subject: Re: build problem in glibc cvs
- References: <200211021635.LAA24664@bromo.msbb.uc.edu>
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)