Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 40104 - xfree-4.3.0-r3 broken with 2.6 linux-headers
Summary: xfree-4.3.0-r3 broken with 2.6 linux-headers
Status: RESOLVED DUPLICATE of bug 17345
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-01 11:18 UTC by Sami Samhuri
Modified: 2005-07-17 13:06 UTC (History)
0 users

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


Attachments
output from emerge info (emerge.info,1.41 KB, text/plain)
2004-02-01 11:19 UTC, Sami Samhuri
Details
patch to fix files lnx_kbd.c and lnx_io.c (9020_all_4.3.0-fix-2.5-headers-rate-period.patch,1.31 KB, patch)
2004-02-01 11:23 UTC, Sami Samhuri
Details | Diff
Patch for xfree-4.3.0-r4.ebuild (coming soon) (resolve-40104.diff,608 bytes, patch)
2004-02-01 21:25 UTC, Andrew Bevitt
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sami Samhuri 2004-02-01 11:18:51 UTC
in /var/tmp/portage/xfree-4.3.0-r3/work/wc/programs/Xserver/hw/xfree86/os-support/linux/lnx_io.c
and in the same directory lnx_kbd.c the patch does not fix the problem.
the block which checks the kernel version and defines rate is only in one of
the files. it needs to be in both (as they contain the same block of code)
and one is also missing the #include <linux/version.h> after #include <linux/kd.h>
after the source is unpacked while it's compiling i had to manually fix the files and then it compiled fine.

Reproducible: Always
Steps to Reproduce:
1. starting from scratch, extract the stage1 files (following install instructions exactly)
2. chroot to /mnt/gentoo, env-update, etc.
3. emerge sync and then /usr/portage/scripts/bootstrap.sh
4. emerge system and when it gets to xfree-4.3.0-r3 it crashes. (ftp://sunsite.ualberta.ca mirror)
Actual Results:  
lnx_kbd.c:XXX: error: structure has no member named 'rate'
and the emerge system grinds to a halt.

Expected Results:  
compiled xfree

no idea how to cut & paste in bash, attached "emerge.info" (emerge info > emerge.info) instead.
Comment 1 Sami Samhuri 2004-02-01 11:19:39 UTC
Created attachment 24767 [details]
output from emerge info
Comment 2 Sami Samhuri 2004-02-01 11:23:43 UTC
Created attachment 24768 [details, diff]
patch to fix files lnx_kbd.c and lnx_io.c

downloaded from http://dev.gentoo.org/~spyderous/xfree/patchsets/4.3.0/patch/
Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2004-02-01 13:59:30 UTC
You should only hit this error with 2.6 kernel headers.
Comment 4 Andrew Bevitt 2004-02-01 21:25:14 UTC
Created attachment 24791 [details, diff]
Patch for xfree-4.3.0-r4.ebuild (coming soon)

Spyderous: heres a patch for 4.3.0-r4 (fetched today from your overlay).

Uses has_version to determine if linux-headers-2.6.0 is installed, not very
portable but thats the only version in portage currently anyway.
Comment 5 Sean E Russell 2004-02-13 12:17:50 UTC
Ok; -r3 worked for me, but -r4 is failing to compile:

...
including in ./doc...
make[2]: Entering directory `/var/tmp/portage/xfree-4.3.0-r4/work/xc/doc'
make[2]: *** No rule to make target `includes'.  Stop.
make[2]: Leaving directory `/var/tmp/portage/xfree-4.3.0-r4/work/xc/doc'
make[1]: *** [includes] Error 2
make[1]: Leaving directory `/var/tmp/portage/xfree-4.3.0-r4/work/xc'
make: *** [World] Error 2

!!! ERROR: x11-base/xfree-4.3.0-r4 failed.
!!! Function src_compile, Line 583, Exitcode 2
!!! (no error message)


There are a ton more of those messages (no rule to make target includes) prior to the failure.
Comment 6 Donnie Berkholz (RETIRED) gentoo-dev 2004-02-13 12:28:47 UTC
Sean, could you please open a new bug, as that's an unrelated issue. Attach the output of `emerge info` and a full compilation log. You can easily get such a log by setting PORT_LOGDIR in make.conf.

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