Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 240 - linux-2.4.18-pre3 compile dies when linking occurs
Summary: linux-2.4.18-pre3 compile dies when linking occurs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Daniel Robbins (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-19 16:26 UTC by Wesley Moxam
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wesley Moxam 2002-01-19 16:26:40 UTC
The compile dies during linking. I've been searching around the web, and have
found plenty of other reports of this bug (mostly on debian lists), but haven't
yet seen a clear solution (as far as I can tell it was supposed to be fixed in
2.4.17).


Here is the relevent output:

make[1]: Leaving directory `/usr/src/linux-2.4.18-pre3/arch/i386/lib'

make[1]: Entering directory `/usr/src/linux-2.4.18-pre3'

ld -m elf_i386 -T /usr/src/linux-2.4.18-pre3/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/cdrom/driver.o drivers/sound/sounddrivers.o drivers/pci/driver.o
drivers/video/video.o net/network.o
/usr/src/linux-2.4.18-pre3/arch/i386/lib/lib.a
/usr/src/linux-2.4.18-pre3/lib/lib.a
/usr/src/linux-2.4.18-pre3/arch/i386/lib/lib.a --end-group  -o vmlinux

drivers/sound/sounddrivers.o(.data+0xb4): undefined reference to `local symbols
in discarded section .text.exit'

make[1]: *** [kallsyms] Error 1
make[1]: Leaving directory `/usr/src/linux-2.4.18-pre3'
make: *** [vmlinux] Error 2

ld --version
GNU ld version 2.11.92.0.12.3 20011121
Copyright 2001 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
Comment 1 Daniel Robbins (RETIRED) gentoo-dev 2002-01-19 16:56:59 UTC
OK, fixed in 2.4.18_pre3-r1.  For a quick fix, do this:

cd /usr/src/linux
patch -p1 < /usr/portage/sys-kernel/linux-sources/files/linux-2.4.16-binutils.patch

I'll also try to track down mjc's email so I can get this bug fix to him too.