From: bugtrack@alsa-project.org Subject: [ALSA - driver 0001153]: Unresolved class_device_* symbols with Linux 2.4.27 Date: Mon, 6 Jun 2005 14:11:05 +0200 Message-ID: <2eb9298eb5325b16cb22b214e0866b4f@bugtrack.alsa-project.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from bugtrack.alsa-project.org (unknown [195.113.161.147]) by alsa.jcu.cz (ALSA's E-mail Delivery System) with ESMTP id 7B7951D6 for ; Mon, 6 Jun 2005 14:11:05 +0200 (MEST) Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org A NOTE has been added to this issue. ====================================================================== ====================================================================== 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