Skip to contentSkip to conversation

access to GPLONLY symbol SNAFU?

DISCUSSION Paul Davis 4 participants 6 messages Mar 4, 2003

lore
Share & tools
lore

Paul Davis

author
#0 lore raw

i've been rebuilding kernels and drivers and stuff like that. after a complete new checkout of ALSA, a complete rebuild of 2.4.19 and of alsa-driver, then installing ALSA, i get this:

% sudo depmod -ae
depmod: *** Unresolved symbols in /lib/modules/2.4.19-pre6/kernel/sound/acore/snd-pcm.o
depmod: vmalloc_to_page

% grep GPLONLY /proc/ksyms
c012c980 GPLONLY_vmalloc_to_page

now, i know something the EXPORT_SYMBOL_GPLONLY, but i don't understand why this is happening.

linux 2.4.19 + ll
ALSA CVS
gcc 3.2.2
module-init-tools 0.9.10

can anyone help me out?

-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com

#1 lore raw
Quoted 11 lines · Paul Davis

i've been rebuilding kernels and drivers and stuff like that. after a complete new checkout of ALSA, a complete rebuild of 2.4.19 and of alsa-driver, then installing ALSA, i get this:

% sudo depmod -ae
depmod: *** Unresolved symbols in /lib/modules/2.4.19-pre6/kernel/sound/acore/snd-pcm.o
depmod: vmalloc_to_page

% grep GPLONLY /proc/ksyms
c012c980 GPLONLY_vmalloc_to_page

Quoted 7 lines

now, i know something the EXPORT_SYMBOL_GPLONLY, but i don't understand why this is happening.

linux 2.4.19 + ll
ALSA CVS
gcc 3.2.2
module-init-tools 0.9.10

^^^^^^^^^^^^^^^^^

Probably bug in this package. I don't know the exact status of modules in 2.5 (it's dramaticaly changing), but all ALSA modules are GPLed, thus this problem shouldn't occur.

Jaroslav

-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs

-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com

author
#2 lore raw
Quoted 6 lines
Quoted 1 line

module-init-tools 0.9.10

^^^^^^^^^^^^^^^^^

Probably bug in this package. I don't know the exact status of modules in 2.5 (it's dramaticaly changing), but all ALSA modules are GPLed, thus this problem shouldn't occur.

good first guess, but no luck. i uninstalled it, reinstalled modutils 2.4.9, and the same problem occurs. i don't understand how this
happens: the kernel image contains only vmalloc_to_page, but /proc/ksyms has only the GPL version. i was hoping that someone with even more experience of this than i might have an idea what has gone wrong. it all works under 2.5 BTW, but i can't use 2.5 right now because the main serial driver is broken.

-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com

#3 lore raw

At Tue, 04 Mar 2003 11:09:14 -0500,

Quoted 10 lines · Paul Davis
Quoted 7 lines
Quoted 2 lines

module-init-tools 0.9.10

^^^^^^^^^^^^^^^^^

Probably bug in this package. I don't know the exact status of modules in 2.5 (it's dramaticaly changing), but all ALSA modules are GPLed, thus this problem shouldn't occur.

good first guess, but no luck. i uninstalled it, reinstalled modutils 2.4.9, and the same problem occurs.

modutils-2.4.9 is fairly old.. isn't it 2.4.19?

Quoted 6 lines

i don't understand how this
happens: the kernel image contains only vmalloc_to_page, but /proc/ksyms has only the GPL version. i was hoping that someone with even more experience of this than i might have an idea what has gone wrong. it all works under 2.5 BTW, but i can't use 2.5 right now because the main serial driver is broken.

not the real solution but a workaround would be to change the condition in alsa-driver/include/adriver.h line 322 like below

	/* vmalloc_to_page wrapper */
==>	#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 19)
	struct page *snd_compat_vmalloc_to_page(void *addr);
	#define vmalloc_to_page(addr) snd_compat_vmalloc_to_page(addr)
	#endif

and the corresponding part definition in
alsa-driver/acore/memory_wrapper.c and
EXPORT_SYMBOL() in alsa-driver/acore/sound.c.

or, try 2.4.20 or later. it's changed as without GPL suffix.

ciao,

Takashi

-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com

author
#4 lore raw
Quoted 4 lines
Quoted 2 lines

good first guess, but no luck. i uninstalled it, reinstalled modutils 2.4.9, and the same problem occurs.

modutils-2.4.9 is fairly old.. isn't it 2.4.19?

GACK!! this is what happens when the output of ftp's "ls" command scrolls off the screen, and you conclude that 2.4.9 is the latest.

reinstalling 2.4.19 fixes the problem. thanks takashi!

--p

-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com

#5 lore raw
In reply to Paul Davis
Quoted 7 lines · Paul Davis
Quoted 6 lines
Quoted 1 line

module-init-tools 0.9.10

^^^^^^^^^^^^^^^^^

Probably bug in this package. I don't know the exact status of modules in 2.5 (it's dramaticaly changing), but all ALSA modules are GPLed, thus this problem shouldn't occur.

Quoted 8 lines

good first guess, but no luck. i uninstalled it, reinstalled modutils 2.4.9, and the same problem occurs. i don't understand how this
happens: the kernel image contains only vmalloc_to_page, but /proc/ksyms has only the GPL version. i was hoping that someone with even more experience of this than i might have an idea what has gone wrong. it all works under 2.5 BTW, but i can't use 2.5 right now because the main serial driver is broken.

Hmmmm don't know, but I found a small bug in hdsp.c.

martin

hdsp.c renamed from hdsp.c.ORIGINAL +1 -1
@@ -72,7 +72,7 @@
 MODULE_DESCRIPTION("RME Hammerfall DSP");
 MODULE_LICENSE("GPL");
 MODULE_CLASSES("{sound}");
-MODULE_DEVICES("{{RME,Hammerfall-DSP},");
+MODULE_DEVICES("{{RME,Hammerfall-DSP}}");
 
 typedef enum {
 	Digiface,

-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com