compiling error about XFree86 4.3.0.1

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

 



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

[Index of Archives]     [X Forum]     [Xorg]     [XFree86 Newbie]     [IETF Announce]     [Security]     [Font Config]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux Kernel]

  Powered by Linux