Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78870 - ati-drivers-8.8.25 fails building DRM module due to kernel version mismatch
Summary: ati-drivers-8.8.25 fails building DRM module due to kernel version mismatch
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL: http://forums.gentoo.org/viewtopic.ph...
Whiteboard:
Keywords:
: 79669 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-01-20 14:37 UTC by John Blaze
Modified: 2005-02-17 17:19 UTC (History)
3 users (show)

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


Attachments
Fix (diff.patch,677 bytes, patch)
2005-01-24 23:26 UTC, Luca Barbato
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description John Blaze 2005-01-20 14:37:35 UTC
When I tried to emerge ati-driver-8.8.25 the DRM module failed to build and gave this error: 
"Error: 
kernel includes at /usr/src/linux/include do not match current kernel. 
they are versioned as "2.4.26-gentoo-r14" 
instead of "". "

The full thread on this bug can be seen at the included url. This includes the fix I implemented. Basically I change "${KV_FULL}" to "${KV}" in the respective ebuild, since all other ati ebuilds use "${KV}" for the kernel version.

Reproducible: Always
Steps to Reproduce:
1.ACCEPT_KEYWORDS="~x86" emerge =ati-drivers-8.8.25
2.
3.

Actual Results:  
mjg91 X11 # ACCEPT_KEYWORDS="~x86" emerge ati-drivers 
Calculating dependencies ...done! 
>>> emerge (1 of 1) media-video/ati-drivers-8.8.25 to / 
>>> md5 src_uri ;-) fglrx_6_8_0-8.8.25-1.i386.rpm 
 * Determining the location of the kernel source code 
 * Found kernel source directory: 
 *     /usr/src/linux 
 * Found sources for kernel version: 
 *     2.4.27 
 * Using KV_OBJ=o 
 * X11 implementation is xorg-x11. 
>>> Unpacking source... 
>>> Unpacking fglrx_6_8_0-8.8.25-1.i386.rpm 
>>> Source unpacked. 
 * Building the DRM module... 
ATI module generator V 2.0 
========================== 
initializing... 
Error: 
kernel includes at /usr/src/linux/include do not match current kernel. 
they are versioned as "2.4.27" 
instead of "". 
you might need to adjust your symlinks: 
- /usr/include 
- /usr/src/linux

Expected Results:  
.... some compiling goes on...... then
>>> Regenerating /etc/ld.so.cache... 
 * Caching service dependencies... 
>>> media-video/ati-drivers-8.8.25 merged. 

>>> clean: No packages selected for removal. 

>>> Auto-cleaning packages ... 

>>> No outdated packages were found on your system.
Comment 1 Pasi Sakala 2005-01-21 08:05:37 UTC
I get too this error with 2.4.28-r5 and ati-drivers 8.8.25-r1.
Comment 2 Pasi Sakala 2005-01-21 23:07:40 UTC
Got the installation error fixed by commenting part:
sed -e 's:`id -u`:0:' \ 
        -e 's:`uname -r`:${KV_FULL}:' \
        -i make.sh

Now drivers work very well and installed as well too. Same thing is on both 8.8.25 and 8.8.25 and is causing these problems.

Comment 3 Pasi Sakala 2005-01-21 23:09:36 UTC
forget to mention that is found from ebuild.
Comment 4 Pasi Sakala 2005-01-23 22:48:27 UTC
Still not fixed in ati-drivers-8.8.25-r2.
Comment 5 Luca Barbato gentoo-dev 2005-01-24 23:18:32 UTC
looks like a linux-info issue
Comment 6 Luca Barbato gentoo-dev 2005-01-24 23:26:23 UTC
Created attachment 49453 [details, diff]
Fix

Please try that and tell me if it fixes the problem
Comment 7 Daniel Drake (RETIRED) gentoo-dev 2005-01-25 06:57:48 UTC
KV is going away and being replaced by KV_FULL so please stick with it.
The ebuild should inherit linux-info or linux-mod, not both. If KV_FULL is empty, maybe this is the problem?
Comment 8 Oliver Walter 2005-01-25 12:40:38 UTC
Same problem here:

 * Building the DRM module...
./make.sh: line 52: [: 3: unary operator expected
ATI module generator V 2.0
==========================
initializing...
Error:
kernel includes at /usr/src/linux/include do not match current kernel.
they are versioned as "2.4.26-gentoo-r9"
instead of "".
you might need to adjust your symlinks:
- /usr/include
- /usr/src/linux

!!! ERROR: media-video/ati-drivers-8.8.25-r3 failed.
!!! Function src_compile, Line 82, Exitcode 1
!!! DRM module not built
!!! If you need support, post the topmost build error, NOT this status message.


But the patch fixed the problem! Thanks!
Comment 9 Luca Barbato gentoo-dev 2005-01-27 03:55:58 UTC
Daniel the problem is that KV_FULL is local while KV is global.

the patch I posted here should fix the issue changing a bit the sed expression
Comment 10 Luca Barbato gentoo-dev 2005-01-27 04:00:40 UTC
*** Bug 79669 has been marked as a duplicate of this bug. ***
Comment 11 Luca Barbato gentoo-dev 2005-01-27 04:41:27 UTC
bug fixed then
Comment 12 Luca Barbato gentoo-dev 2005-02-17 17:19:08 UTC
Closing