Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ati-drivers error implicit declaration, kernel 2.6.34-r11
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
lixo1
Tux's lil' helper
Tux's lil' helper


Joined: 25 Sep 2010
Posts: 84

PostPosted: Sat Oct 09, 2010 9:35 am    Post subject: ati-drivers error implicit declaration, kernel 2.6.34-r11 Reply with quote

Dear all,

yesterday I updated my gentoo with fglrx driver doing:
emerge --sync
emerge --update --deep --ask --newuse world
emerge --depclean
revdep-rebuild

The kernel 2.6.34-r11, removed fglrx. I tried to reinstall it with emerge ati-drivers (version 10.8 ) but I got the famous:
Code:

error: implicit declaration of function ‘compat_alloc_user_space’
[/var/tmp/portage/x11-drivers/ati-drivers-10.8/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.o]
Error 1


Emerging ati-version 10.9-r1 solves the problem.
Should someone unmask version 10.9? Every time I update the kernel do I need to reinstall fglrx?

Thank you very much for any kind of help!


Last edited by lixo1 on Sat Oct 09, 2010 2:04 pm; edited 1 time in total
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3596

PostPosted: Sat Oct 09, 2010 10:33 am    Post subject: Reply with quote

I had no problem with the unmasked update. AFAIK ati-driver re-emerge is required when changing kernel but not release level. ie I updated 34-r6 to 34-r11. Re emerge was not required.

At least that how it worked for me. Maybe someone will tell you more about it.
Back to top
View user's profile Send private message
rh1
Guru
Guru


Joined: 10 Apr 2010
Posts: 501

PostPosted: Sat Oct 09, 2010 11:17 am    Post subject: Reply with quote

Quote:
Every time I update the kernel do I need to reinstall fglrx?

When upgrading kernel, you should rebuild all your packages which provide modules including fglrx
Easiest way is to use module-rebuild:
Code:
*  sys-kernel/module-rebuild
      Latest version available: 0.6
      Latest version installed: 0.6
      Size of files: 0 kB
      Homepage:      http://www.gentoo.org/
      Description:   A utility to rebuild any kernel modules which you have installed
      License:       GPL-2
Back to top
View user's profile Send private message
lixo1
Tux's lil' helper
Tux's lil' helper


Joined: 25 Sep 2010
Posts: 84

PostPosted: Sat Oct 09, 2010 12:17 pm    Post subject: Reply with quote

Thank you very much for yours hits!

But I'm getting this error with 10.8!
Back to top
View user's profile Send private message
erikdenv
n00b
n00b


Joined: 24 May 2004
Posts: 33
Location: The Netherlands

PostPosted: Mon Oct 11, 2010 5:32 pm    Post subject: Reply with quote

Same problem here. After upgrading to gentoo-sources-2.6.34-r11 ati-drivers 10.8 won't build.

When upgrading the kernel I always re-emerge ati-drivers but this time the emerge fails.

My emerge ends with:

make[2]: *** [/var/tmp/portage/x11-drivers/ati-drivers-10.8/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /var/tmp/portage/x11-drivers/ati-drivers-10.8/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:451:
/var/tmp/portage/x11-drivers/ati-drivers-10.8/work/common/lib/modules/fglrx/build_mod/2.6.x/drm_proc.h: In function 'FGLDRM__vma_info':
/var/tmp/portage/x11-drivers/ati-drivers-10.8/work/common/lib/modules/fglrx/build_mod/2.6.x/drm_proc.h:497: warning: format '%08lx' expects type 'long unsigned int', but argument 5 has type 'phys_addr_t'
make[1]: *** [_module_/var/tmp/portage/x11-drivers/ati-drivers-10.8/work/common/lib/modules/fglrx/build_mod/2.6.x] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.34-gentoo-r11'
make: *** [kmod_build] Error 2
* ERROR: x11-drivers/ati-drivers-10.8 failed:
* 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.34-gentoo-r11 KDIR=/usr/src/linux kmod_build
*
* Call stack:
* ebuild.sh, line 54: Called src_compile
* environment, line 3712: Called linux-mod_src_compile
* environment, line 2865: Called die
* The specific snippet of code:
* 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}";
*
* If you need support, post the output of 'emerge --info =x11-drivers/ati-drivers-10.8',
* the complete build log and the output of 'emerge -pqv =x11-drivers/ati-drivers-10.8'.
* The complete build log is located at '/var/tmp/portage/x11-drivers/ati-drivers-10.8/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/x11-drivers/ati-drivers-10.8/temp/environment'.
* S: '/var/tmp/portage/x11-drivers/ati-drivers-10.8/work'

What's your output of emerge?
Back to top
View user's profile Send private message
lixo1
Tux's lil' helper
Tux's lil' helper


Joined: 25 Sep 2010
Posts: 84

PostPosted: Mon Oct 11, 2010 5:53 pm    Post subject: Reply with quote

Exactly the same error.

Only ati-drivers 10.9-r1 works with gentoo-sources-2.6.34-r11.
Back to top
View user's profile Send private message
Apheus
Guru
Guru


Joined: 12 Jul 2008
Posts: 422

PostPosted: Tue Oct 12, 2010 11:15 am    Post subject: Reply with quote

lixo1 wrote:
Exactly the same error.

Only ati-drivers 10.9-r1 works with gentoo-sources-2.6.34-r11.


I'm not at my box at the moment, but I had the same problem. It is related to one patch which was necessary for a security fix in the kernel source -r11 (CVE-2010-3081, https://bugzilla.redhat.com/show_bug.cgi?id=634457). This patch is in the ati-drivers-10.9-r1 ebuild, but not in previous versions. Changelog says:

Quote:

+files/ati-drivers-CVE-2010-3081-fix.patch, +ati-drivers-10.9-r1.ebuild:
Address CVE-2010-3081 related changes


I just updated to 10.9-r1, didn't try to backport the patch.
Back to top
View user's profile Send private message
erikdenv
n00b
n00b


Joined: 24 May 2004
Posts: 33
Location: The Netherlands

PostPosted: Wed Oct 13, 2010 9:36 am    Post subject: Reply with quote

Upgraded to ati-drivers 10.9-r1 and emerge completes correctly.
I went back to amd64 stable some time ago to avoid these situations.

Thanks for helping out.
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3596

PostPosted: Thu Oct 14, 2010 2:19 pm    Post subject: Reply with quote

Same here :wink:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum