This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: libc-lock.h; transition from sysdeps/generic/
On Mon, Jan 16, 2006 at 08:30:53PM -0800, Roland McGrath wrote:
> It's a general problem in make install for all sysdeps headers since the
> reorganization. I've some commited makefile changes for header installation.
> Please verify that they install the right things in the right places (i.e.,
> same as before the source reorganizations).
Something like the following patch is needed:
2006-01-19 Thomas Schwinge <tschwinge@gnu.org>
* mach/Machrules: Tighten rule for building .h files to match only
those that are actually buildable.
Index: mach/Machrules
===================================================================
RCS file: /cvs/glibc/libc/mach/Machrules,v
retrieving revision 1.75
diff -u -r1.75 Machrules
--- mach/Machrules 17 Feb 2002 07:57:18 -0000 1.75
+++ mach/Machrules 19 Jan 2006 16:13:38 -0000
@@ -1,5 +1,5 @@
# Rules for MiG interfaces that want to go into the C library.
-# Copyright (C) 1991,92,93,94,95,96,98,99,2001,02
+# Copyright (C) 1991,92,93,94,95,96,98,99,2001,02,2006
# Free Software Foundation, Inc.
# This file is part of the GNU C Library.
@@ -173,7 +173,7 @@
-header $@ -server /dev/null -user /dev/null
endef
-$(objpfx)%.h: $(objpfx)%.__h $(objpfx)%.uh
+$(foreach i,$(user-interfaces),$(objpfx)$(i).h): %.h: %.__h %.uh
# The last line of foo.__h is "#endif _foo_user_".
# The first two lines of foo.uh are "#ifndef _foo_user_"/"#define _foo_user_".
(sed -e '$$d' $<; sed -e '1,2d' $(word 2,$^)) > $@-new
Without that patch, glibc will--at the `make install' stage--try to
remake GNU Mach's header files from nonexistent .defs files, which will
obviously fail.
Regards,
Thomas
P.S.
2006-01-19 Thomas Schwinge <tschwinge@gnu.org>
* libio/genops.c: Include <stdbool.h>.
Index: libio/genops.c
===================================================================
RCS file: /cvs/glibc/libc/libio/genops.c,v
retrieving revision 1.68
diff -u -r1.68 genops.c
--- libio/genops.c 11 Jan 2006 08:09:39 -0000 1.68
+++ libio/genops.c 19 Jan 2006 16:13:38 -0000
@@ -33,6 +33,7 @@
#include <stdlib.h>
#endif
#include <string.h>
+#include <stdbool.h>
#ifdef _IO_MTSAFE_IO
static _IO_lock_t list_all_lock = _IO_lock_initializer;