[vox-tech] i've lost the ability to compile a kernel

Peter Jay Salzman vox-tech@lists.lugod.org
Wed, 19 Dec 2001 07:51:10 -0800


help.

somewhere along the way, i've lost the ability to compile a kernel.  from the
timestamps of /boot, it looks like the last kernel i've compiled was 30 nov;
that was 2.4.16.

yesterday i've tried to recompile 2.4.16 after putting in an #include in
vgacon.c to increase the console scrollback buffer.  it didn't compile.

then i downloaded 2.5.1 and after a make oldconfig && make clean && make dep
&& make bzImage, it still didn't compile.

i went back to 2.4.10/ which i had laying around for emergencies, and that
kernel didn't compile either.

i removed debian's pentium-builder, and that didn't help matters either.

i'm thinking it might be a gcc problem, but i can't figure out what might
have happened.  gcc hasn't been upgraded for awhile.

any help would be appreciated.  this is very stressful for me!   the error is
listed below.

thanks.

pete 


rstr.o dec_and_lock.o
make[2]: Leaving directory `/usr/src/linux-2.4.16/arch/i386/lib'
make[1]: Leaving directory `/usr/src/linux-2.4.16/arch/i386/lib'
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/parport/driver.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/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/char/char.o(.data+0x46b4): undefined reference to `local symbols in
discarded section .text.exit'
drivers/net/net.o(.data+0x174): undefined reference to `local symbols in
discarded section .text.exit'
make: *** [vmlinux] Error 1
satan# pwd
/usr/src/linux-2.4.16
satan#





make[2]: Leaving directory `/usr/src/linux-2.4.10/arch/i386/lib'
make[1]: Leaving directory `/usr/src/linux-2.4.10/arch/i386/lib'
ld -m elf_i386 -T /usr/src/linux-2.4.10/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/parport/driver.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/pnp/pnp.o
drivers/video/video.o \
        net/network.o \
        /usr/src/linux-2.4.10/arch/i386/lib/lib.a
/usr/src/linux-2.4.10/lib/lib.a /usr/src/linux-2.4.10/arch/i386/lib/lib.a \
        --end-group \
        -o vmlinux
drivers/char/char.o(.data+0x46b4): undefined reference to `local symbols in
discarded section .text.exit'
drivers/net/net.o(.data+0x174): undefined reference to `local symbols in
discarded section .text.exit'
make: *** [vmlinux] Error 1
satan# pwd
/usr/src/linux-2.4.10
satan#