Skip to contentSkip to conversation

: Unresolved class_device_* symbols with Linux 2.4.27

ALSA - driver 0001153 [email protected] 1 participant 1 message Jun 6, 2005

lore
Share & tools
lore
#0 lore raw

A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1153>
======================================================================

Reported By:                jdthood
Assigned To:                perex
======================================================================
Project:                    ALSA - driver
Issue ID:                   1153
Category:                   0_compilation problem_!!!
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
Distribution:               
Kernel Version:             
======================================================================
Date Submitted:             06-04-2005 16:06 CEST
Last Modified:              06-06-2005 14:11 CEST

======================================================================
Summary: Unresolved class_device_* symbols with Linux 2.4.27
Description:
I built 1.0.9a --with-cards=all against Debian's latest 2.4.27 kernel headers and got unresolved symbols:

# depmod -e -a -F /boot/System.map-2.4.27-2-686 2.4.27-2-686depmod: ***
Unresolved symbols in /lib/modules/2.4.27-2-686/updates/alsa/snd.o
depmod:         class_device_destroy
depmod:         class_device_create

======================================================================

----------------------------------------------------------------------
jdthood - 06-04-05 23:24
----------------------------------------------------------------------
alsa-driver/acore/sound.patch contains the following code (which was not present in 1.0.9rc3):

+#ifdef CONFIG_SND_HAVE_CLASS_SIMPLE
class_simple_device_add(sound_class, MKDEV(major, minor), device,
name);
+#else
+ class_device_create(sound_class, MKDEV(major, minor), device,
"%s", name);
+#endif

However, the 2.4.27 kernel doesn't have class_device_create().

----------------------------------------------------------------------
jdthood - 06-06-05 14:11
----------------------------------------------------------------------
I attached a patch that fixes the problem well enough to allow modules to be loaded on Linux 2.4. The patch suppresses the apparently unused (under Linux 2.4) declarations of class_device_create() and
class_device_destroy(). I don't know whether or not the patch solves the
problem in a kosher way and I don't know whether sensible arguments for KERNEL_VERSION() have been used.

Issue History
Date Modified Username Field Change
======================================================================

06-04-05 16:06 jdthood        New Issue                                    
06-04-05 23:24 jdthood        Note Added: 0004888                          
06-04-05 23:25 jdthood        Description Updated                          
06-06-05 14:07 jdthood        File Added: 17_class_device_fix.dpatch            

06-06-05 14:11 jdthood Note Added: 0004908
======================================================================

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20