Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 148451 - ati-drivers 8.28.8 fails to build with kernel 2.6.18 (patch available)
Summary: ati-drivers 8.28.8 fails to build with kernel 2.6.18 (patch available)
Status: RESOLVED DUPLICATE of bug 148424
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-20 20:46 UTC by Anant Narayanan (RETIRED)
Modified: 2006-09-21 00:16 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anant Narayanan (RETIRED) gentoo-dev 2006-09-20 20:46:50 UTC
The proprietary ati-drivers 8.28.8 don't compile with the 2.6.18 kernel (which is now stable :)). The problem is that UTS_RELEASE has moved from version.h to utsrelease.h in 2.6.18, and ati-drivers doesn't know that.

Here's the fix: Add the following lines to common/lib/modules/fglrx/build_mod/firegl_public.c:

#ifndef UTS_RELEASE
#include <linux/utsrelease.h>
#endif

#ifndef VM_SHM
#define VM_SHM 	0x00000000
#endif

And change this line in common/lib/modules/fglrx/build_mod/make.sh:

kernel_release=`cat $linuxincludes/linux/version-*.h | grep UTS_RELEASE | grep \"$OsRelease\" | cut -d'"' -f2`

to:

kernel_release=`cat $linuxincludes/linux/utsrelease.h | grep UTS_RELEASE | grep \"$OsRelease\" | cut -d'"' -f2`
Comment 1 André Terpstra 2006-09-20 23:13:33 UTC
same here om ~amd64
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-09-21 00:16:40 UTC

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