2.6.12.3 compile error [ld: saa7134-core.c: undefined reference to `register_sound_dsp']
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?
* tail of the compiler output:
AR lib/lib.a LD arch/i386/lib/built-in.o CC arch/i386/lib/bitops.o AS arch/i386/lib/checksum.o CC arch/i386/lib/delay.o AS arch/i386/lib/getuser.o CC arch/i386/lib/memcpy.o AS arch/i386/lib/putuser.o CC arch/i386/lib/strstr.o CC arch/i386/lib/usercopy.o AR arch/i386/lib/lib.a GEN .version CHK include/linux/compile.h UPD include/linux/compile.h CC init/version.o LD init/built-in.o 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
* GCC version: (Fedora Core 4)
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,java,f95,ada --enable-java-awt=gtk --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --host=i386-redhat-linux Thread model: posix
gcc version 4.0.0 20050519 (Red Hat 4.0.0-8)
Signature · 2 lines
Best regards, speedy mailto:[email protected]
Quoted 11 lines · speedy
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.
Quoted 4 lines
* tail of the compiler output:
...
LD .tmp_vmlinux1
drivers/built-in.o(.text+0x2197ed): In function `saa7134_initdev':
Quoted 8 lines
saa7134-core.c: undefined reference toregister_sound_dsp' drivers/built-in.o(.text+0x219823):saa7134-core.c: undefined reference toregister_sound_mixer' drivers/built-in.o(.text+0x21990e):saa7134-core.c: undefined reference tounregister_sound_dsp' drivers/built-in.o(.text+0x219be6): In functionsaa7134_finidev':saa7134-core.c: undefined reference tounregister_sound_mixer' drivers/built-in.o(.text+0x219bef):saa7134-core.c: undefined reference tounregister_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
Quoted 2 lines
Best regards,
speedy mailto:[email protected]
cu
Adrian
Signature · 4 lines
"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