Re: [PATCH] to comply using Linux-2.6.16-rc2

2006-02-06 Thread Marc Aurele La France

On Mon, 6 Feb 2006, Jeff Chua wrote:


I make this patch in order to compile latest CVS source with Linux-2.6.16-rc2



XFree86 Version 4.5.99.20
Release Date: 23 January 2006
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.16-rc2 i686 [ELF]


I know it would be nice to do that change in input.h, but afraid it'll get 
shot down in lkml. Someone want to try? Please comment.


Problems like this show up every so often.  They are caused by directly using 
kernel headers to rebuild glibc.  You are instead supposed to use laundered 
headers, such as the ones available at ...


http://ep09.pld-linux.org/~mmazur/linux-libc-headers/

... among others.

And, yes.  If you bring this up on LKML, you will indeed be flamed.

Marc.

+--+---+
|  Marc Aurele La France   |  work:   1-780-492-9310   |
|  Academic Information and|  fax:1-780-492-1729   |
|Communications Technologies   |  email:  [EMAIL PROTECTED]  |
|  352 General Services Building   +---+
|  University of Alberta   |   |
|  Edmonton, Alberta   | Standard disclaimers apply|
|  T6G 2H1 |   |
|  CANADA  |   |
+--+---+
XFree86 developer and VP.  ATI driver and X server internals.
___
Devel mailing list
Devel@XFree86.Org
http://XFree86.Org/mailman/listinfo/devel


[PATCH] to comply using Linux-2.6.16-rc2

2006-02-05 Thread Jeff Chua
I make this patch in order to compile latest CVS source with 
Linux-2.6.16-rc2


XFree86 Version 4.5.99.20
Release Date: 23 January 2006
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.16-rc2 i686 [ELF]


I know it would be nice to do that change in input.h, but afraid 
it'll get shot down in lkml. Someone want to try? Please comment.



Thanks,
Jeff

--- xfree86/xc/programs/Xserver/hw/xfree86/input/acecad/acecad.c.org
2006-02-06 13:59:13 +0800
+++ xfree86/xc/programs/Xserver/hw/xfree86/input/acecad/acecad.c
2006-02-04 18:32:19 +0800
@@ -32,7 +32,10 @@

 #ifdef LINUX_INPUT
 #include asm/types.h
+#define kernel_ulong_t unsigned long
+#define BITS_PER_LONG 32
 #include linux/input.h
+#undef BITS_PER_LONG
 #ifdef BUS_PCI
 #undef BUS_PCI
 #endif
--- xfree86/xc/programs/Xserver/hw/xfree86/input/wacom/xf86Wacom.c.org  
2006-02-06 13:59:29 +0800
+++ xfree86/xc/programs/Xserver/hw/xfree86/input/wacom/xf86Wacom.c  
2006-02-04 18:43:34 +0800
@@ -49,7 +49,10 @@

 #ifdef LINUX_INPUT
 #include asm/types.h
+#define kernel_ulong_t unsigned long
+#define BITS_PER_LONG 32
 #include linux/input.h
+#undef BITS_PER_LONG

 /* 2.4.6 module support */
 #ifndef EV_MSC
--- xfree86/xc/programs/Xserver/hw/xfree86/input/aiptek/xf86Aiptek.h.org
2006-02-06 13:59:45 +0800
+++ xfree86/xc/programs/Xserver/hw/xfree86/input/aiptek/xf86Aiptek.h
2006-02-04 18:45:52 +0800
@@ -42,6 +42,10 @@

 #ifdef LINUX_INPUT
 #   include asm/types.h
+#define kernel_ulong_t unsigned long
+#define BITS_PER_LONG 32
+#include linux/input.h
+#undef BITS_PER_LONG
 #   include linux/input.h
 #   ifndef EV_MSC
 #  define EV_MSC 0x04
--- xfree86/xc/programs/Xserver/hw/xfree86/input/eloinput/xf86EloInput.c.org
2006-02-06 13:59:56 +0800
+++ xfree86/xc/programs/Xserver/hw/xfree86/input/eloinput/xf86EloInput.c
2006-02-04 18:46:26 +0800
@@ -38,7 +38,10 @@
  */

 #include asm/types.h
+#define kernel_ulong_t unsigned long
+#define BITS_PER_LONG 32
 #include linux/input.h
+#undef BITS_PER_LONG
 #undef BUS_PCI
 #undef BUS_ISA
 #ifndef EV_SYN
--- xfree86/xc/programs/Xserver/hw/dmx/input/usb-private.h.org  2006-02-06 
14:00:06 +0800
+++ xfree86/xc/programs/Xserver/hw/dmx/input/usb-private.h  2006-02-04 
18:47:06 +0800
@@ -45,7 +45,10 @@
 #include inputstr.h
 #include X11/Xos.h
 #include errno.h
+#define kernel_ulong_t unsigned long
+#define BITS_PER_LONG 32
 #include linux/input.h
+#undef BITS_PER_LONG
 #include usb-common.h

 /*  Support for force feedback was
--- xfree86/xc/programs/Xserver/hw/xfree86/input/ur98/xf86Ur-98.c.org   
2006-02-06 14:00:15 +0800
+++ xfree86/xc/programs/Xserver/hw/xfree86/input/ur98/xf86Ur-98.c   
2006-02-04 18:45:30 +0800
@@ -5,6 +5,10 @@
 #include string.h
 #include errno.h
 #define inline __inline__
+#define kernel_ulong_t unsigned long
+#define BITS_PER_LONG 32
+#include linux/input.h
+#undef BITS_PER_LONG
 #include linux/joystick.h

 #undef BUS_ISA
___
Devel mailing list
Devel@XFree86.Org
http://XFree86.Org/mailman/listinfo/devel


Re: [PATCH] to comply using Linux-2.6.16-rc2

2006-02-05 Thread Tilman Kranz
On Mon, Feb 06, 2006 at 02:13:57PM +0800, Jeff Chua wrote:
 [...]
  #ifdef LINUX_INPUT
  #include asm/types.h
 +#define kernel_ulong_t unsigned long
 +#define BITS_PER_LONG 32
 [...]

I am not in the context of the CVS. However, this
looks really weird.

A kernel define should be done in the kernel.

However, you now have a hold of what the problem
actually is, so it is my suggestion to not go to LKML
and actually tell them what to do but to tell them
what the problem is and let them decide what to do.

Greetings, Tilman.

___
Devel mailing list
Devel@XFree86.Org
http://XFree86.Org/mailman/listinfo/devel