Messages in this thread Patch in this message | | | Date | Sat, 14 Mar 1998 03:08:39 -0700 | From | Erik 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
| |