Re: 2.6.12.3 compile error [ld: saa7134-core.c: undefined reference to `register_sound_dsp']

From: Adrian Bunk
Date: Sun Jul 17 2005 - 17:16:55 EST


On Sun, Jul 17, 2005 at 11:53:39PM +0200, speedy wrote:

> Hello linux-kernel,
>
> another link error, with different .config on a different box.
> .config made with make menuconfig. Disabling the relevant
> .config entries fixed the bug.
>
> p.s. please CC: me in the replies if any, as I'm not subscribed
> to the list.
>
> p.s.2. I suppose Fedora core 4 GCC 4.0.0 is not recommended for
> compiling the kernel? or not?

A recent gcc from the 3.3 or 3.4 branches is definitely less likely to
cause problems. That said, problems are still unlikely with the compiler
you are using.

> * tail of the compiler output:
>...
> LD .tmp_vmlinux1
> drivers/built-in.o(.text+0x2197ed): In function `saa7134_initdev':
> saa7134-core.c: undefined reference to `register_sound_dsp'
> drivers/built-in.o(.text+0x219823):saa7134-core.c: undefined reference to `register_sound_mixer'
> drivers/built-in.o(.text+0x21990e):saa7134-core.c: undefined reference to `unregister_sound_dsp'
> drivers/built-in.o(.text+0x219be6): In function `saa7134_finidev':
> saa7134-core.c: undefined reference to `unregister_sound_mixer'
> drivers/built-in.o(.text+0x219bef):saa7134-core.c: undefined reference to `unregister_sound_dsp'
> make: *** [.tmp_vmlinux1] Error 1
>...

Thanks for this report.
This is a known bug.

Workaround:

Say "Y" to
Device Drivers
Sound
Sound card support

> Best regards,
> speedy mailto:speedy@xxxxxxxxx


cu
Adrian

--

"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/