Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 37942 - x11-base/xfree-4.3.0-r3 won't build against sys-kernel/linux-headers-2.6.0
Summary: x11-base/xfree-4.3.0-r3 won't build against sys-kernel/linux-headers-2.6.0
Status: RESOLVED DUPLICATE of bug 17345
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All All
: High minor (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-11 22:21 UTC by Priit Laes (IRC: plaes)
Modified: 2005-07-17 13:06 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Fixes compile with linux-headers 2.6.x (XFree86-period-cvs-29Jul2003.patch,3.20 KB, patch)
2004-01-15 08:58 UTC, STefan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Priit Laes (IRC: plaes) 2004-01-11 22:21:35 UTC
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)
Comment 1 STefan 2004-01-15 08:58:02 UTC
Created attachment 23864 [details, diff]
Fixes compile with linux-headers 2.6.x
Comment 2 STefan 2004-01-15 08:59:33 UTC
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.
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2004-01-15 09:33:37 UTC
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.
Comment 4 Tim Yamin (RETIRED) gentoo-dev 2004-02-08 08:16:38 UTC
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...
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2004-02-08 09:55:49 UTC

*** This bug has been marked as a duplicate of 17345 ***