Sound and ppp in 2.1.76

Roderich Schupp (rsch@ExperTeam.de)
Fri, 26 Dec 1997 22:06:10 +0100


Hi all,
still some problems with ppp in 2.1.76:
(1) ppp_deflate.o is listed twice in drivers/net/Makefile:
ifdef CONFIG_PPP
M_OBJS += bsd_comp.o ppp_deflate.o
endif
....
ifdef CONFIG_PPPDEF_BUILTIN
LX_OBJS += ppp_deflate.o
else
ifdef CONFIG_PPPDEF_MODULE
MX_OBJS += ppp_deflate.o
endif
endif
(so if I have ppp.o built into the kernel it gets build both as a driver
and a module).
(2) Kernel wouldn't link with my soundcard (CS4232) built as a driver:
drivers/sound/sound.a(cs4232.o): In function `probe_cs4232':
cs4232.o(.text+0x8e): undefined reference to `ad1848_detect'
cs4232.o(.text+0x2ca): undefined reference to `ad1848_detect'
drivers/sound/sound.a(cs4232.o): In function `attach_cs4232':
cs4232.o(.text+0x36c): undefined reference to `ad1848_init'
cs4232.o(.text+0x386): undefined reference to `ad1848_control'
cs4232.o(.text+0x392): undefined reference to `ad1848_control'
cs4232.o(.text+0x39e): undefined reference to `ad1848_control'
drivers/sound/sound.a(cs4232.o): In function `unload_cs4232':
cs4232.o(.text+0x3cb): undefined reference to `ad1848_unload'
I added ad1848.o to the Makefile in case CONFIG_CS4232 is in effect,
but then got some unresolved reference to register_symtab
in ad1848.o. Commenting that out did the trick. Patch below.

--- linux/drivers/sound/Makefile.~1~ Fri Dec 26 20:04:36 1997
+++ linux/drivers/sound/Makefile Fri Dec 26 20:06:30 1997
@@ -183,10 +183,10 @@
endif

ifeq ($(CONFIG_CS4232),y)
-LX_OBJS += cs4232.o
+LX_OBJS += cs4232.o ad1848.o
else
ifeq ($(CONFIG_CS4232),m)
- MX_OBJS += cs4232.o
+ MX_OBJS += cs4232.o ad1848.o
endif
endif

--- linux/drivers/sound/ad1848.c.~1~ Fri Dec 26 20:07:58 1997
+++ linux/drivers/sound/ad1848.c Fri Dec 26 20:08:15 1997
@@ -2584,7 +2584,7 @@
void
export_ad1848_syms(void)
{
- register_symtab(&ad1848_syms);
+ /* register_symtab(&ad1848_syms); */
}

#endif

--
             "Report all obscene mail to your Potsmaster"
Roderich Schupp          mailto:rsch@ExperTeam.de
ExperTeam GmbH           http://www.experteam.de/
Munich, Germany               Linux: 2.1.76