2001-12-15 17:50:36

by Thorsten Sauter

[permalink] [raw]
Subject: Compiling 2.4.16 kernel with sound support


Hallo Kernel-List,

I have big problems with sound support in 2.4.16. I just download the tarball and untar it.
If I make now a simple "make dep && make clean && make bzImage" everthink works fine.

But after including any sound stuff, the linker always print an error and exit. :(
After I remove the previous select sound staff, the kernel compile cleanly.

The base distri is the current debian sid (apt update today). Here are some environment infos:
Distri: Debian Sid (i386)
GCC Version: 2.95.4
LD Version: 2.11.92.0.12.3

if you need more infos please let me know.


$ make dep && make clean && make depend
<snip>
ld -m elf_i386 -T /usr/src/linux-2.4.16/arch/i386/vmlinux.lds -e stext arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o init/version.o \
--start-group \
arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o \
drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/net/net.o drivers/media/media.o drivers/char/agp/agp.o drivers/char/drm/drm.o drivers/ide/idedriver.o drivers/scsi/scsidrv.o drivers/cdrom/driver.o drivers/sound/sounddrivers.o drivers/pci/driver.o drivers/pcmcia/pcmcia.o drivers/net/pcmcia/pcmcia_net.o drivers/pnp/pnp.o drivers/video/video.o \
net/network.o \
/usr/src/linux-2.4.16/arch/i386/lib/lib.a /usr/src/linux-2.4.16/lib/lib.a /usr/src/linux-2.4.16/arch/i386/lib/lib.a \
--end-group \
-o vmlinux
drivers/sound/sounddrivers.o(.data+0x194): undefined reference to `local symbols in discarded section .text.exit'
make: *** [vmlinux] Error 1

Attached is the whole kernel configuration file.


Any hints?

Thanks
Thorsten

--
Thorsten Sauter
<[email protected]>

(Is there life after /sbin/halt -p?)


Attachments:
.config (17.36 kB)
(No filename) (189.00 B)
Download all attachments

2001-12-15 18:00:07

by Marc Schiffbauer

[permalink] [raw]
Subject: Re: Compiling 2.4.16 kernel with sound support

* Thorsten Sauter schrieb am 15.12.01 um 18:47 Uhr:
>
> Hallo Kernel-List,
>
> I have big problems with sound support in 2.4.16. I just download the tarball and untar it.
> If I make now a simple "make dep && make clean && make bzImage" everthink works fine.
>
> But after including any sound stuff, the linker always print an error and exit. :(
> After I remove the previous select sound staff, the kernel compile cleanly.
>
> The base distri is the current debian sid (apt update today). Here are some environment infos:
> Distri: Debian Sid (i386)
> GCC Version: 2.95.4
> LD Version: 2.11.92.0.12.3
>
> if you need more infos please let me know.
>
>
[error output]


Did you try a "make mrproper" before doing the make
dep/clean/bzImage ?

(backup your .config before makeing mrproper...)

-Marc

--
| ...and don't forget: Linux rulez! |
| |
| http://www.links2linux.de <-- Von Linux-Usern fuer Linux-User |

2001-12-15 18:11:20

by Dave Jones

[permalink] [raw]
Subject: Re: Compiling 2.4.16 kernel with sound support

On Sat, 15 Dec 2001, Thorsten Sauter wrote:

> The base distri is the current debian sid (apt update today). Here are some environment infos:
> Distri: Debian Sid (i386)
> GCC Version: 2.95.4
> LD Version: 2.11.92.0.12.3
> Any hints?

Yes, search the kernel archives, or the debian archives.
This has been reported a dozen times or so now.
Downgrade binutils, or enable hotplug support or try .17rc1

Dave.

--
| Dave Jones. http://www.codemonkey.org.uk
| SuSE Labs