Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 165634

Summary: ati-drivers 8.33.6 tries to use a GPL-only symbol from 2.6.20-gentoo (and fails to build)
Product: Gentoo Linux Reporter: Jiri Pittner <jiri.pittner>
Component: Current packagesAssignee: X11 External Driver Maintainers <x11-drivers>
Status: RESOLVED INVALID    
Severity: normal CC: chuck.wegrzyn, mail, sven.koehler
Priority: High    
Version: 2006.0   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 163825    
Attachments: Patch that adds check for CONFIG_PARAVIRT

Description Jiri Pittner 2007-02-06 15:10:21 UTC
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
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-02-06 15:52:06 UTC
Yay for GPL zealots... :X
Comment 2 Daniel Drake (RETIRED) gentoo-dev 2007-02-06 16:03:49 UTC
Which symbol? Please post the full error message.
Comment 3 Jiri Pittner 2007-02-06 16:28:35 UTC
  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.
Comment 4 Jiri Pittner 2007-02-06 22:52:41 UTC
Removing the kernel configuration option for paravirtualization helped.
However, the graphics driver should not depend on that?
Comment 5 winona 2007-02-08 21:54:11 UTC
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.
Comment 6 Daniel Drake (RETIRED) gentoo-dev 2007-03-25 19:42:01 UTC
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
Comment 7 Elias Probst 2007-04-26 21:27:26 UTC
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.
Comment 8 Marien Zwart (RETIRED) gentoo-dev 2007-06-05 18:55:29 UTC
Thanks, the ebuild now checks for this (in 8.37.6-r1 and up).
Comment 9 Chuck Wegrzyn 2007-08-25 19:59:43 UTC
Happens in 8.40-4 and the paravirt check doesn't work.
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2007-09-04 02:04:02 UTC
(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