[XFree86] compiling error about XFree86 4.3.0.1

2006-09-06 Thread cckuo
Dear X friends:
I got some error while using kernel 2.6.8.3 to compile XFree86 4.3.0.1, and
I got the same problem as
http://www.mail-archive.com/xfree86@xfree86.org/msg08116.html
But what make me confused is in lnx_io.c there are already some macros to
prevent such things happen, like

#include linux/kd.h
#include linux/version.h 
#if defined(LINUX_VERSION_CODE)  defined(KERNEL_VERSION)
# if LINUX_VERSION_CODE = KERNEL_VERSION(2,5,42)
#  define rate period
# endif
#endif

Since I am afraid of where the error comes from may be the include path, I
also add /usr/include where LINUX_VERSION_CODE and KERNEL_VERSION locate
in Imakefile as you can see it seems take effect from the gcc compile
options below, but I am still stuck at the same place. 
I know if I rudely change the name of the parameter to meet the kernel's
requirement, the error will vanish. But I really think it may not be the
proper way to compile XFree86.
If anyone has the same experience before or I omit setting something
correctly, please let me know.

Appreciate your help in advance,
cckuo

make[6]: Entering directory
`/media/usb1/HP741_XFree86_with_modify_4_3/4.3.0.1/xc_patched/programs/Xserv
er/hw/xfree86/os-support/linux'
rm -f lnx_io.o
gcc -m32 -c -O2 -fno-strength-reduce -ansi -pedantic -Wall -Wpointer-arith
-Wstrict-prototypes   -Wmissing-prototypes -Wmissing-declarations
-Wredundant-decls -Wnested-externs -Wundef-fno-merge-constants
-I../../../../../../programs/Xserver/hw/xfree86/common
-I../../../../../../programs/Xserver/hw/xfree86/os-support -I.
-I../../../../../../programs/Xserver/include
-I../../../../../../exports/include/X11
-I../../../../../../include/extensions
-I../../../../../../programs/Xserver/hw/xfree86/os-support/shared
-I/usr/include  -I../../../../../.. -I../../../../../../exports/include
-Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L
-D_POSIX_SOURCE -D_XOPEN_SOURCE  -D_BSD_SOURCE
-D_SVID_SOURCE-D_GNU_SOURCE
-DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP   -DXCSECURITY -DTOGCUP
-DXF86BIGFONT -DDPMSExtension-DPIXPRIV -DPANORAMIX   -DRENDER -DRANDR
-DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH
-DXFreeXDGA -DXvExtension  -DXFree86LOADER  -DXFree86Server
-DXF86VIDMODE  -DXvMCExtension
-DSMART_SCHEDULE   -DBUILDDEBUG -DXResExtension
-DX_BYTE_ORDER=X_LITTLE_ENDIAN -DNDEBUG  -DFUNCPROTO=15 -DNARROWPROTO
-DHAS_MTRR_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC   lnx_io.c
lnx_io.c: In function 'KDKBDREP_ioctl_ok':
lnx_io.c:95: error: 'struct kbd_repeat' has no member named 'rate'
lnx_io.c:103: error: 'struct kbd_repeat' has no member named 'rate'
lnx_io.c:105: error: 'struct kbd_repeat' has no member named 'rate'
lnx_io.c:106: error: 'struct kbd_repeat' has no member named 'rate'
lnx_io.c:107: error: 'struct kbd_repeat' has no member named 'rate'
make[7]: *** [lnx_io.o] Error 1
make[7]: Leaving directory
`/media/usb1/HP741_XFree86_with_modify_4_3/4.3.0.1/xc_patched/programs/Xserv
er/hw/xfree86/os-support/linux'
make[6]: *** [linux] Error 2

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


Re: [XFree86] compiling error about XFree86 4.3.0.1

2006-09-06 Thread Marc Aurele La France

On Wed, 6 Sep 2006, cckuo wrote:


I got some error while using kernel 2.6.8.3 to compile XFree86 4.3.0.1, and
I got the same problem as
http://www.mail-archive.com/xfree86@xfree86.org/msg08116.html
But what make me confused is in lnx_io.c there are already some macros to
prevent such things happen, like



#include linux/kd.h
#include linux/version.h
#if defined(LINUX_VERSION_CODE)  defined(KERNEL_VERSION)
# if LINUX_VERSION_CODE = KERNEL_VERSION(2,5,42)
#  define rate period
# endif
#endif



Since I am afraid of where the error comes from may be the include path, I
also add /usr/include where LINUX_VERSION_CODE and KERNEL_VERSION locate
in Imakefile as you can see it seems take effect from the gcc compile
options below, but I am still stuck at the same place.
I know if I rudely change the name of the parameter to meet the kernel's
requirement, the error will vanish. But I really think it may not be the
proper way to compile XFree86.
If anyone has the same experience before or I omit setting something
correctly, please let me know.



make[6]: Entering directory
`/media/usb1/HP741_XFree86_with_modify_4_3/4.3.0.1/xc_patched/programs/Xserv
er/hw/xfree86/os-support/linux'
rm -f lnx_io.o
gcc -m32 -c -O2 -fno-strength-reduce -ansi -pedantic -Wall -Wpointer-arith
-Wstrict-prototypes   -Wmissing-prototypes -Wmissing-declarations
-Wredundant-decls -Wnested-externs -Wundef-fno-merge-constants
-I../../../../../../programs/Xserver/hw/xfree86/common
-I../../../../../../programs/Xserver/hw/xfree86/os-support -I.
-I../../../../../../programs/Xserver/include
-I../../../../../../exports/include/X11
-I../../../../../../include/extensions
-I../../../../../../programs/Xserver/hw/xfree86/os-support/shared
-I/usr/include  -I../../../../../.. -I../../../../../../exports/include
-Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L
-D_POSIX_SOURCE -D_XOPEN_SOURCE  -D_BSD_SOURCE
-D_SVID_SOURCE-D_GNU_SOURCE
-DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP   -DXCSECURITY -DTOGCUP
-DXF86BIGFONT -DDPMSExtension-DPIXPRIV -DPANORAMIX   -DRENDER -DRANDR
-DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH
-DXFreeXDGA -DXvExtension  -DXFree86LOADER  -DXFree86Server
-DXF86VIDMODE  -DXvMCExtension
-DSMART_SCHEDULE   -DBUILDDEBUG -DXResExtension
-DX_BYTE_ORDER=X_LITTLE_ENDIAN -DNDEBUG  -DFUNCPROTO=15 -DNARROWPROTO
-DHAS_MTRR_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC   lnx_io.c
lnx_io.c: In function 'KDKBDREP_ioctl_ok':
lnx_io.c:95: error: 'struct kbd_repeat' has no member named 'rate'
lnx_io.c:103: error: 'struct kbd_repeat' has no member named 'rate'
lnx_io.c:105: error: 'struct kbd_repeat' has no member named 'rate'
lnx_io.c:106: error: 'struct kbd_repeat' has no member named 'rate'
lnx_io.c:107: error: 'struct kbd_repeat' has no member named 'rate'
make[7]: *** [lnx_io.o] Error 1
make[7]: Leaving directory
`/media/usb1/HP741_XFree86_with_modify_4_3/4.3.0.1/xc_patched/programs/Xserv
er/hw/xfree86/os-support/linux'
make[6]: *** [linux] Error 2


The 4.3.0.1 version of lnx_io.c does not, in fact, #include linux/version.h
So, either you are mistaken in asserting otherwise, or you got the 4.3.0.1 
sources from somewhere other than xfree86.org.


In the first case, you'll need to make the change found at 
http://cvsweb.xfree86.org/cvsweb/xc/programs/Xserver/hw/xfree86/os-support/linux/lnx_io.c.diff?r1=3.24r2=3.25


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.
___
XFree86 mailing list
XFree86@XFree86.Org
http://XFree86.Org/mailman/listinfo/xfree86