Re: 2.3.40 and libc5 (was Re: 2.3.39 doesn`t build xconfig...)

From: Chris Wing (wingc@engin.umich.edu)
Date: Wed Jan 12 2000 - 16:39:51 EST


David:

> Well, 2.3.40 builds and boots fine now, but as Bob pointed
> out, the following one line c program fails to compile using libc5.
>
> #include <signal.h>
>
>
> In file included from /usr/include/linux/signal.h:5,
> from /usr/include/signal.h:28,
> from uidt.c:1:
> /usr/include/asm/siginfo.h:27: parse error before `old_uid_t'
> ....

Darn it, I didn't notice that siginfo.h was included by signal.h. The
following patch should fix the problem. (but it's only a temporary
solution, I really don't want old_uid_t to be defined in the libc5
namespace at all...)

Sorry for the inconvenience,

Chris Wing
wingc@engin.umich.edu

--- linux-2.3.40pre1/include/linux/types.h Wed Jan 12 13:05:57 2000
+++ linux-arch-independ/include/linux/types.h Wed Jan 12 16:34:06 2000
@@ -23,10 +23,6 @@
 typedef __kernel_uid16_t uid16_t;
 typedef __kernel_gid16_t gid16_t;
 
-/* This is defined by include/asm-{arch}/posix_types.h */
-typedef __kernel_old_uid_t old_uid_t;
-typedef __kernel_old_gid_t old_gid_t;
-
 /* libc5 includes this file to define uid_t, thus uid_t can never change
  * when it is included by non-kernel code
  */
@@ -34,6 +30,10 @@
 typedef __kernel_uid_t uid_t;
 typedef __kernel_gid_t gid_t;
 #endif /* __KERNEL__ */
+
+/* This is defined by include/asm-{arch}/posix_types.h */
+typedef __kernel_old_uid_t old_uid_t;
+typedef __kernel_old_gid_t old_gid_t;
 
 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
 typedef __kernel_loff_t loff_t;
diff -uNr linux-2.3.40pre1/include/asm-i386/posix_types.h linux-i386/include/asm-i386/posix_types.h
--- linux-2.3.40pre1/include/asm-i386/posix_types.h Mon Jan 10 21:15:58 2000
+++ linux-i386/include/asm-i386/posix_types.h Wed Jan 12 16:36:09 2000
@@ -28,11 +28,11 @@
 typedef unsigned short __kernel_gid16_t;
 typedef unsigned int __kernel_uid32_t;
 typedef unsigned int __kernel_gid32_t;
+typedef unsigned short __kernel_old_uid_t;
+typedef unsigned short __kernel_old_gid_t;
 
 #ifdef __KERNEL__
 #define UID16_COMPAT_NEEDED
-typedef unsigned short __kernel_old_uid_t;
-typedef unsigned short __kernel_old_gid_t;
 #endif /* __KERNEL__ */
 
 #ifdef __GNUC__

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jan 15 2000 - 21:00:20 EST