using gentoo-2.6.20 I tried to emerge ati-drivers 8.33.6 and got a message that it tried to use a GPL-only symbol from the kernel, and of course emerge failed. With 2.6.18-gentoo-r2 it works. Reproducible: Always Steps to Reproduce: 1.emerge gentoo-2.6.20 and ati-drivers 8.33.6 2. 3. Actual Results: failure to emerge ati-drivers Expected Results: proprietary kernel module build
Yay for GPL zealots... :X
Which symbol? Please post the full error message.
LD [M] /var/tmp/portage/ati-drivers-8.33.6/work/common/lib/modules/fglrx/build_mod/fglrx.o Building modules, stage 2. MODPOST 1 modules FATAL: modpost: GPL-incompatible module fglrx.ko uses GPL-only symbol 'paravirt_ops' I guess the reason might be that I configured for virtualization in 2.6.20 (wanted to play that a bit), which did not exist in 2.6.18.
Removing the kernel configuration option for paravirtualization helped. However, the graphics driver should not depend on that?
thought this info from the linux nvidia list might be related: http://www.nvnews.net/vbulletin/showthread.php?t=85107 Towards the bottom of the first page in the thread this is mentioned: the NVIDIA Linux kernel module involuntarily picks up a GPL-only symbol via uname() if the Linux 2.6.20 kernel is built with CONFIG_PARAVIRT. Note that this is also with the 2.6.20 kernel.
I haven't verified this, but if it is the case, you might want to drop the uname call (does it really serve any purpose?) or alternatively make the ebuild depend on !CONFIG_PARAVIRT
Created attachment 117341 [details, diff] Patch that adds check for CONFIG_PARAVIRT This patch adds a check for CONFIG_PARAVIRT to x11-drivers/ati-drivers-8.35.5 and displays a corresponding "eerror" and adds a "die" statement. Regards, Elias P.
Thanks, the ebuild now checks for this (in 8.37.6-r1 and up).
Happens in 8.40-4 and the paravirt check doesn't work.
(In reply to comment #9) > Happens in 8.40-4 and the paravirt check doesn't work. Dunno which kernel you are using, but this is a non-issue w/ 2.6.22