Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 266081 - x11-drivers/ati-drivers-8.552-r2 + kernel 2.6.29 - common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1429: error: 'struct task_struct' has no member named 'euid'
Summary: x11-drivers/ati-drivers-8.552-r2 + kernel 2.6.29 - common/lib/modules/fglrx/b...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords:
: 272305 273198 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-04-14 07:50 UTC by Alireza Keshmiri
Modified: 2009-08-31 12:25 UTC (History)
10 users (show)

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


Attachments
2.6.29 patch (ati-drivers-8.593-2.6.29.patch,1.39 KB, patch)
2009-06-02 07:54 UTC, crucify
Details | Diff
2.6.29 patched ebuild (ati-drivers-8.593-r1.ebuild,14.69 KB, text/plain)
2009-06-02 07:55 UTC, crucify
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alireza Keshmiri 2009-04-14 07:50:38 UTC
I am a new in gentoo and linux OS so please give me a hande to install ati_driver on my system.

While i am trying to emerge ati_driver (or some other package like linux_uvc) I got error.

I already re-emerge gcc and check CHOST everything is fine.
I did emerge --update --new --deep system and world and also emerge -eav system and world 
I did revdep-update and so one but the result doesnt change.

Please let me know what should I do to emerge ati_drivers and in case linux_uvc.

================================================================
etc/make.conf

# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /etc/make.conf.example for a more detailed example.
CFLAGS="-O2 -pipe"
CXXFLAGS="${CFLAGS}"

# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"


# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
XUSE="truetype X new-login xorg xscreensaver xv xcomposite xinerama opengl aiglx"
IMAGEUSE="jpeg gif tiff png svg pdf djvu"
MEDIAUSE="alsa mad vidix asf win32codecs dvd mp4 aac x264 xvid nsplugin mp3 real gstreamer amarok"
GENERAL="samba java java6 bzip2 spell xml"
SYSTEM="hal fam dbus aoss threads"
GNOMEUSE="-kde qt3 -qt4 mmx sse sse2 gtk cairo glitz gnome xfce gtkhotkey artworkextra"
NETWORK="net eds pidgin wifi bluetooth"
MAIL="crypt cups ldap mono pda profile gmail pop smtp imap"
OFFICE="openoffice"
USE="${XUSE} ${IMAGEUSE} ${OFFICE} ${MEDIAUSE} ${GENERAL} ${SYSTEM} ${GNOMEUSE} ${NETWORK} ${MAIL}"

GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/ ftp://mirror.yandex.ru/gentoo-distfiles/ http://gentoo.kiev.ua/ftp/ http://mirror.bytemark.co.uk/gentoo/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://mirror.qubenet.net/mirror/gentoo/ http://gentoo.virginmedia.com/ "

SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"

FEATURES="-stricter"

INPUT_DEVICES="keyboard mouse"

VIDEO_CARDS="intel"

================================================================
emerge --info
=============

Portage 2.1.6.7 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.29-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.29-gentoo-r1-x86_64-Intel-R-_Pentium-R-_Dual_CPU_T2390_@_1.86GHz-with-glibc2.2.5
Timestamp of tree: Mon, 13 Apr 2009 15:45:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.7
dev-lang/python:     2.4.4-r13, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r8
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/ ftp://mirror.yandex.ru/gentoo-distfiles/ http://gentoo.kiev.ua/ftp/ http://mirror.bytemark.co.uk/gentoo/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://mirror.qubenet.net/mirror/gentoo/ http://gentoo.virginmedia.com/ "
LANG="C"
LDFLAGS="-Wl,-O1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aac acl aiglx alsa amarok amd64 aoss artworkextra asf berkdb bluetooth bzip2 cairo cli cracklib crypt cups dbus djvu dri dvd eds fam fortran gdbm gif glitz gmail gnome gpm gstreamer gtk gtkhotkey hal iconv imap ipv6 isdnlog java java6 jpeg ldap mad midi mmx mono mp3 mp4 mudflap multilib ncurses net new-login nls nptl nptlonly nsplugin opengl openmp openoffice pam pcre pda pdf perl pidgin png pop pppd profile python qt3 readline reflection samba session smtp spell spl sse sse2 ssl svg sysfs tcpd threads tiff truetype unicode wifi x264 xcomposite xfce xinerama xml xorg xscreensaver xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


================================================================
Build.log
=========
 [32;01m*[0m Determining the location of the kernel source code
 [32;01m*[0m Found kernel source directory:
 [32;01m*[0m     /usr/src/linux
 [32;01m*[0m Found kernel object directory:
 [32;01m*[0m     /lib/modules/2.6.29-gentoo-r1/build
 [32;01m*[0m Found sources for kernel version:
 [32;01m*[0m     2.6.29-gentoo-r1
>>> Unpacking source...
Warning: target directory exists /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work
Verifying archive integrity... All good.
Uncompressing ATI Proprietary Linux Driver-8.552.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
 [32;01m*[0m Converting 2.6.x/Makefile to use M= instead of SUBDIRS= ...
[A[83C  [34;01m[ [32;01mok[34;01m ][0m
>>> Unpacking ./../common/usr/src/ati/fglrx_sample_source.tgz to /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/extra
>>> Source unpacked in /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work
>>> Compiling source in /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work ...
 [32;01m*[0m Preparing fglrx module
make HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS= GCC_VER_MAJ=4 KVER=2.6.29-gentoo-r1 KDIR=/usr/src/linux kmod_build 
make -C /usr/src/linux M=/var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory `/usr/src/linux-2.6.29-gentoo-r1'
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function 'KCL_GetEffectiveUid':
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1429: error: 'struct task_struct' has no member named 'euid'
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function 'KCL_PosixSecurityCapSetIPCLock':
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1784: error: 'struct task_struct' has no member named 'cap_effective'
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1788: error: 'struct task_struct' has no member named 'cap_effective'
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function '__ke_vm_phys_addr_str':
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3206: warning: return makes pointer from integer without a cast
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3207: warning: return makes pointer from integer without a cast
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3208: warning: return makes pointer from integer without a cast
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3210: warning: return makes pointer from integer without a cast
make[2]: *** [/var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o] Error 1
make[1]: *** [_module_/var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/work/common/lib/modules/fglrx/build_mod/2.6.x] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.29-gentoo-r1'
make: *** [kmod_build] Error 2
 [31;01m*[0m 
 [31;01m*[0m ERROR: x11-drivers/ati-drivers-8.552-r2 failed.
 [31;01m*[0m Call stack:
 [31;01m*[0m               ebuild.sh, line   49:  Called src_compile
 [31;01m*[0m             environment, line 3361:  Called linux-mod_src_compile
 [31;01m*[0m             environment, line 2547:  Called die
 [31;01m*[0m The specific snippet of code:
 [31;01m*[0m               eval "emake HOSTCC="$(tc-getBUILD_CC)" 						CROSS_COMPILE=${CHOST}- 						LDFLAGS="$(get_abi_LDFLAGS)" 						${BUILD_FIXES} 						${BUILD_PARAMS} 						${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
 [31;01m*[0m  The die message:
 [31;01m*[0m   Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS=  GCC_VER_MAJ=4 KVER=2.6.29-gentoo-r1 KDIR=/usr/src/linux kmod_build
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the topmost build error, and the call stack if relevant.
 [31;01m*[0m A complete build log is located at '/var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/temp/build.log'.
 [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/temp/environment'.
 [31;01m*[0m
Comment 1 Ján Bednár 2009-04-14 15:52:27 UTC
Hi,

can't help you with ati-drivers at the moment.

You're running sys-kernel/gentoo-sources-2.6.29-r1 and there's no ati-drivers which can compile agains kernel 2.6.29.

Take a look at bug #264021. (Different ati-drivers version but very same situation as yours.)

Or you can try open source drivers x11-drivers/xf86-video-ati or x11-drivers/xf86-video-radeonhd
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2009-04-16 04:36:07 UTC
(In reply to comment #1)
> Hi,
> 
> can't help you with ati-drivers at the moment.

[...]

> Or you can try open source drivers x11-drivers/xf86-video-ati or
> x11-drivers/xf86-video-radeonhd

This is *not* a support forum.
Comment 3 Tiago Marques 2009-05-19 16:17:03 UTC
http://www.linuxquestions.org/questions/linux-hardware-18/fglrx-9.3-patch-for-2.6.29.x-kernel-722858/

Maybe this can help?

Bes regards
Comment 4 crucify 2009-06-02 07:54:59 UTC
Created attachment 193250 [details, diff]
2.6.29 patch
Comment 5 crucify 2009-06-02 07:55:22 UTC
Created attachment 193251 [details]
2.6.29 patched ebuild
Comment 6 crucify 2009-06-02 08:14:24 UTC
patch is work.
but, this problem.
http://bbs.archlinux.org/viewtopic.php?pid=556208


fglrx_pci 0000:01:00.0: irq 32 for MSI/MSI-X
[fglrx] Firegl kernel thread PID: 4104
[fglrx:fireglAsyncioIntEnableMsgHandler] *ERROR* interrupt source ff000066 is not supported on this hardware (return code = 1)
[fglrx] Gart cacheable size:1959 M.
[fglrx] Reserved FB block: Shared offset:0, size:1000000 
[fglrx] Reserved FB block: Unshared offset:fc1c000, size:3df000 
[fglrx] Reserved FB block: Unshared offset:fffb000, size:5000 
[fglrx:firegl_find_any_map] *ERROR* Invalid map handle!<3>[fglrx:drm_vm_open] *ERROR* map not found -> inconsistent kernel data!!! vma_start:0x7f5894ba2000,handle:0xc0000000
[fglrx:firegl_find_any_map] *ERROR* Invalid map handle!<3>[fglrx:drm_vm_open] *ERROR* map not found -> inconsistent kernel data!!! vma_start:0x7f5894104000,handle:0xc13b0000
[fglrx:firegl_find_any_map] *ERROR* Invalid map handle!<3>[fglrx:drm_vm_open] *ERROR* map not found -> inconsistent kernel data!!! vma_start:0x7f589b65b000,handle:0xc14b0000
[fglrx:firegl_find_any_map] *ERROR* Invalid map handle!<3>[fglrx:drm_vm_open] *ERROR* map not found -> inconsistent kernel data!!! vma_start:0x7f589b65a000,handle:0xc14b4000
[fglrx:firegl_find_any_map] *ERROR* Invalid map handle!<3>[fglrx:drm_vm_open] *ERROR* map not found -> inconsistent kernel data!!! vma_start:0x7f589b659000,handle:0xc14b5000

~~~~~~~

[fglrx:firegl_find_any_map] *ERROR* Invalid map handle!<3>[fglrx:drm_vm_close] *ERROR* map not found -> inconsistent kernel data!!! vma_start:0x7f3e85ca1000,handle:0xc14b0000
Too big adjustment 32
Too big adjustment 32
Comment 7 Sebastian Luther (few) 2009-06-02 19:55:29 UTC
*** Bug 272305 has been marked as a duplicate of this bug. ***
Comment 8 Tristan Heaven (RETIRED) gentoo-dev 2009-06-09 13:26:06 UTC
*** Bug 273198 has been marked as a duplicate of this bug. ***
Comment 9 Tomáš Chvátal (RETIRED) gentoo-dev 2009-08-31 12:07:09 UTC
8.XXX series does not support .29 or newer kernels. I wont backport any hackish patches to it. Just update to 9.8 or switch to xf86-video-ati.