make[4]: Entering directory `/home/root/tmp/portage/xfree-4.3.0-r3/work/xc/programs/Xserver/hw/xfree86' making all in programs/Xserver/hw/xfree86/os-support... make[5]: Entering directory `/home/root/tmp/portage/xfree-4.3.0-r3/work/xc/programs/Xserver/hw/xfree86/os-support' making all in programs/Xserver/hw/xfree86/os-support/linux... make[6]: Entering directory `/home/root/tmp/portage/xfree-4.3.0-r3/work/xc/programs/Xserver/hw/xfree86/os-support/linux' rm -f lnx_io.o gcc -c -mno-mmx -ansi -pedantic -Wno-return-type -w -fno-stack-protector -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../../../../../.. -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:90: error: structure has no member named `rate' lnx_io.c:98: error: structure has no member named `rate' lnx_io.c:100: error: structure has no member named `rate' lnx_io.c:101: error: structure has no member named `rate' lnx_io.c:102: error: structure has no member named `rate' make[6]: *** [lnx_io.o] Error 1 make[6]: Leaving directory `/home/root/tmp/portage/xfree-4.3.0-r3/work/xc/programs/Xserver/hw/xfree86/os-support/linux' make[5]: *** [linux] Error 2 make[5]: Leaving directory `/home/root/tmp/portage/xfree-4.3.0-r3/work/xc/programs/Xserver/hw/xfree86/os-support' make[4]: *** [all] Error 2 make[4]: Leaving directory `/home/root/tmp/portage/xfree-4.3.0-r3/work/xc/programs/Xserver/hw/xfree86' make[3]: *** [hw/xfree86] Error 2 make[3]: Leaving directory `/home/root/tmp/portage/xfree-4.3.0-r3/work/xc/programs/Xserver' make[2]: *** [install] Error 2 make[2]: Leaving directory `/home/root/tmp/portage/xfree-4.3.0-r3/work/xc/programs' make[1]: *** [install] Error 2 make[1]: Leaving directory `/home/root/tmp/portage/xfree-4.3.0-r3/work/xc' make: *** [install] Error 2 !!! ERROR: x11-base/xfree-4.3.0-r3 failed. !!! Function src_install, Line 590, Exitcode 2 !!! (no error message)
Created attachment 23864 [details, diff] Fixes compile with linux-headers 2.6.x
Comment on attachment 23864 [details, diff] Fixes compile with linux-headers 2.6.x I'm not sure if it breaks compile with linux-headers-2.4.x, so I suppose it's good idea to add some check in the ebuild if the patch should be applied(with 2.6headers) or not.
There's a big problem with that patch, as things will break. Can you please change the configure script [ I assume it's autoconf ] and use "AC_CHECK_TYPES" to check what type is used and set a #ifdef if ``period'' is used? Then, do #ifdef HAVE_LINUX_PERIOD ... 2.6 code ... #else ... 2.4 code ... #endif for each line that needs changing... Thanks.
This: http://cvsweb.xfree86.org/cvsweb/xc/programs/Xserver/hw/xfree86/os-support/linux/lnx_io.c.diff?r1=3.23&r2=3.24 is a much neater way of doing it which works transparently with 2.4. I'm shifting this over to the XFree folks so they can check over this and commit it in...
*** This bug has been marked as a duplicate of 17345 ***