Skip to contentSkip to conversation

snd_seq_midi_event: Unknown symbol cleanup_module [PATCH] Unknown symbol init_module and cleanup_module in snd_seq_midi_event

PATCH In review Mikael Magnusson 2 participants 2 messages Feb 20, 2005 – Feb 22, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 snd_seq_midi_event: Unknown symbol cleanup_module [PATCH] Unknown symbol init_module and cleanup_module in snd_seq_midi_event

I had problems loading the snd_seq_midi_event compiled from ALSA cvs. I'm using Debian Sarge with the following kernel packages:

kernel-headers-2.6.10-1-k7 2.6.10-4
kernel-image-2.6.10-1-k7 2.6.10-4

The problem was caused by undefined symbols in snd_seq_midi_event.

snd_seq_midi_event: Unknown symbol cleanup_module
snd_seq_midi_event: Unknown symbol init_module

I solved it by adding an init and exit function to seq_midi_event.c. Is this a bug in ALSA or Debian?

Regards,
Mikael

Index: ../alsa-kernel/core/seq/seq_midi_event.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/core/seq/seq_midi_event.c,v retrieving revision 1.14
diff -u -r1.14 seq_midi_event.c
--- ../alsa-kernel/core/seq/seq_midi_event.c 29 Nov 2004 14:09:45 -0000

        1.14
+++ ../alsa-kernel/core/seq/seq_midi_event.c    20 Feb 2005 16:51:01 -0000
@@ -511,6 +511,19 @@
        return idx;

}

+
+static int __init alsa_seq_midi_event_init(void) +{
+ return 0;
+}
+
+static void __exit alsa_seq_midi_event_exit(void) +{
+}
+
+module_init(alsa_seq_midi_event_init) +module_exit(alsa_seq_midi_event_exit)
+
/*
* exports
*/

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

#1 lore raw

At Sun, 20 Feb 2005 17:56:51 +0100,

Quoted 7 lines · Mikael Magnusson

I had problems loading the snd_seq_midi_event compiled from ALSA cvs. I'm using Debian Sarge with the following kernel packages:

kernel-headers-2.6.10-1-k7 2.6.10-4
kernel-image-2.6.10-1-k7 2.6.10-4

Quoted 7 lines

The problem was caused by undefined symbols in snd_seq_midi_event.

snd_seq_midi_event: Unknown symbol cleanup_module
snd_seq_midi_event: Unknown symbol init_module

I solved it by adding an init and exit function to seq_midi_event.c. Is this a bug in ALSA or Debian?

I don't know. At least, this is no problem on my SUSE system.

Anyway, adding them must be harmless, so I applied your patch. Thanks.

Takashi

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click