[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#210359: kernel CONFIG_TR interferes with busybox CONFIG_TR



At Tue, 16 Sep 2003 00:08:13 +0100,
Richard Hirst wrote:
> On Mon, Sep 15, 2003 at 01:02:21AM -0600, Erik Andersen wrote:
> > This is not a busybox problem.  This is an bug in the libc6
> > header files for ia64.  User space must be free to include
> 
> Agreed, asm-ia64/param.h #includes <linux/config.h> which is bad.  Guess
> that makes it a kernel-patch-2.4.20-ia64 bug to start with.

Yes, it's not libc6 own problem, but kernel source problem.
In some kernels, this problem should also be occured on alpha.
One way to fix is to enclose #ifdef __KERNEL__.

David, could you look this namespace pollution issue? at:

	http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=210359

This experimental patch is for 2003-09-17 bk latest.  Only ia64 part.
Is this ok?  Is this CONFIG_IA64_HP_SIM part still needed for
debugging purpose?

--- include/asm-ia64/param.h    2002-10-07 13:20:02.000000000 +0900
+++ include/asm-ia64/param.h.new        2003-09-17 19:13:34.000000000 +0900
@@ -8,6 +8,8 @@
  *	David Mosberger-Tang <davidm@hpl.hp.com>
  */
 
+#ifdef __KERNEL__
+
 #include <linux/config.h>
 
 #ifdef CONFIG_IA64_HP_SIM
@@ -20,6 +22,8 @@
 # define HZ    1024
 #endif
 
+#endif
+
 #define EXEC_PAGESIZE  65536
 
 #ifndef NGROUPS

Regards,
-- gotom





Reply to: