lkml.org 
[lkml]   [1998]   [Mar]   [14]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateSat, 14 Mar 1998 03:08:39 -0700
FromErik Andersen <>
Subject[patch] Soundscape compile problems in 2.1.[89]x
If you try to compile the Ensoniq soundscape sound driver into the
kernel, you get the following linker errors:

drivers/sound/sound.a(sscape.o): In function `attach_ss_ms_sound':
sscape.o(.text+0xd7f): undefined reference to `ad1848_init'
sscape.o(.text+0xdbb): undefined reference to `ad1848_control'
drivers/sound/sound.a(sscape.o): In function `probe_ss_ms_sound':
sscape.o(.text+0xe6e): undefined reference to `ad1848_detect'
drivers/sound/sound.a(sscape.o): In function `unload_ss_ms_sound':
sscape.o(.text+0xec1): undefined reference to `ad1848_unload'
make: *** [vmlinux] Error 1

The following patch I wrote about 10 kernels ago when I first reported
the problem still fixes it.  I would be great to see this go into 2.1.9x.


--- linux-2.1.80-pre4.virgin/drivers/sound/Makefile	Mon Jan 19 23:42:56 1998
+++ linux/drivers/sound/Makefile	Mon Jan 19 23:58:17 1998
@@ -117,22 +117,6 @@
   endif
 endif
 
-ifeq ($(CONFIG_MPU401),y)
-LX_OBJS += mpu401.o
-else
-  ifeq ($(CONFIG_MPU401),m)
-  MX_OBJS += mpu401.o
-  else
-    ifeq ($(CONFIG_MPU_EMU),y)
-    LX_OBJS += mpu401.o
-    else
-      ifeq ($(CONFIG_MPU_EMU),m)
-      MX_OBJS += mpu401.o
-      endif
-    endif
-  endif
-endif
-
 ifeq ($(CONFIG_UART401),y)
 LX_OBJS += uart401.o
 else
@@ -159,9 +143,31 @@
 
 ifeq ($(CONFIG_SSCAPE),y)
 L_OBJS += sscape.o
+LX_OBJS += ad1848.o
+CONFIG_MPU401 = y
 else
   ifeq ($(CONFIG_SSCAPE),m)
   M_OBJS += sscape.o
+  MX_OBJS += ad1848.o
+  ifneq ($(CONFIG_MPU401),y)
+    CONFIG_MPU401 = m
+  endif
+  endif
+endif
+
+ifeq ($(CONFIG_MPU401),y)
+LX_OBJS += mpu401.o
+else
+  ifeq ($(CONFIG_MPU401),m)
+  MX_OBJS += mpu401.o
+  else
+    ifeq ($(CONFIG_MPU_EMU),y)
+    LX_OBJS += mpu401.o
+    else
+      ifeq ($(CONFIG_MPU_EMU),m)
+      MX_OBJS += mpu401.o
+      endif
+    endif
   endif
 endif
 
 -Erik

--
Erik B. Andersen   Web:    http://www.inconnect.com/~andersen/ 
                   email:  andersee@debian.org
--This message was written using 73% post-consumer electrons--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 12:41    [W:0.268 / U:0.270 seconds]
©2003-2008 Jasper Spaans