[lkml]   [1996]   [Jul]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
SubjectKernel v2.0.x and others ./include/linux/stddef.h file.
I have a question about the stddef.h file in the
./include/linux directory of v2 kernel, linked to
/usr/include/stddef.h. Since v2.0.0, I have had to make the
following patch to the file or the kernel would not compile,
noting several problems with using wchar_t definitions in the
/usr/include/stdlib.h file. My most recent kernel with this
problem is v2.0.6, I am using libs v5.2.18 and gcc 2.7.2. The
problem has appeared during the make dep stage but once this
cleared and the build crashed during make zImage, making
./drivers/char/conmakehash.c, although the problem was noted
as being in /usr/include/stdlib.h.

Am I doing something wrong or is something just messed up??

This is the patch I use: diff -u stddef.h stddef.h.sav
--- stddef.h Wed Dec 1 07:44:15 1993
+++ stddef.h.sav Sun Jul 7 01:07:57 1996
@@ -6,6 +6,16 @@
typedef unsigned int size_t;

+#ifdef wchar_t
+#undef wchar_t
+#ifndef _WCHAR_T
+typedef unsigned long wchar_t;
+#endif /* _WCHAR_T */
#undef NULL
#define NULL ((void *)0)

This is the exact text of the error message I get.
In file included from drivers/char/conmakehash.c:18:
/usr/include/stdlib.h:333: parse error before `*'
/usr/include/stdlib.h:336: parse error before `wchar_t'
/usr/include/stdlib.h: In function `mblen':
/usr/include/stdlib.h:340: `wchar_t' undeclared (first use this function)
/usr/include/stdlib.h:340: (Each undeclared identifier is reported only once
/usr/include/stdlib.h:340: for each function it appears in.)
/usr/include/stdlib.h:340: parse error before `)'
/usr/include/stdlib.h: At top level:
/usr/include/stdlib.h:345: parse error before `*'
/usr/include/stdlib.h:347: parse error before `*'

The version header for /usr/include/stdlib.h is:
* ANSI Standard: 4.10 GENERAL UTILITIES <stdlib.h>
It is listed as:
-rw-r--r-- 1 bin bin 15134 Wed Mar 29 19:35:10 1995 stdlib.h

Finally, stddef in /usr/include/linux is listed as:
-rw------- 1 root root 243 Wed Dec 1 07:44:15 1993 stddef.h
Please help me.
I am not currently subscribed to this list, as I am not a
kernel developer. I sent this message here because there
is no person specified as maintainer of kernel include
files in the MAINTAINERS file. Therefore, kindly cc responses
to my email address

That you very much

Algis Rudys

 \ /
  Last update: 2005-03-22 13:38    [W:0.029 / U:30.248 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site