I have had two problems in compiling the kernel from
kernel-source-2.2.14-1mdk.  Kernel-headers-2.2.14-1mdk is installed.

I got past the first problem by editing
/usr/src/linux-2.2.14-1/include/linux/modversions.h 

I edited by cutting the following from modversions.h

#ifndef __rh_kernel_modversions_h__
#define __rh_kernel_modversions_h__

Which lines appear beginning on line 5 of the original modversion.h

After making this cut, doing 'make dep ; make clean' complete without
error.

However, 'make bzImage' or 'make zImage' fail with the following:

make[1]: Leaving directory `/usr/src/linux-2.2.14/arch/i386/lib'
gcc -E -C -P -I/usr/src/linux-2.2.14/include -imacros 
/usr/src/linux-2.2.14/include/asm-i386/page_offset.h -Ui386 arch/i386/vmlinux.lds.S 
>arch/i386/vmlinux.lds
ld -m elf_i386 -T /usr/src/linux-2.2.14/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 \
        fs/filesystems.a \
        net/network.a \
        drivers/block/block.a drivers/char/char.a drivers/misc/misc.a 
drivers/net/net.a drivers/scsi/scsi.a drivers/cdrom/cdrom.a drivers/pci/pci.a 
drivers/pnp/pnp.a drivers/video/video.a \
        /usr/src/linux-2.2.14/arch/i386/lib/lib.a /usr/src/linux-2.2.14/lib/lib.a 
/usr/src/linux-2.2.14/arch/i386/lib/lib.a \
        --end-group \
        -o vmlinux
drivers/scsi/scsi.a(sd.o): In function `cdrom_mediactl':
sd.o(.text+0x2e5b): undefined reference to `sr_template'
make: *** [vmlinux] Error 1

I have fiddled with scsi settings in menuconfig, but always fail at
this point and with this error.

I have not done anything to scsi.a or sd.o (AFAIK), except to view the 
files using less or mc.

Guidance is appreciated.

-- 
Mike Fieschko, West Orange, NJ, USA
X-Mailer: XEmacs 21.1, VM 6.75 and random-sig.el
Kernel 2.2.14-1mdk
http://www.viconet.com/fieschko/home.htm
Dec 5 Second Sunday in Advent
"There is a case for telling the truth; there is a case for avoiding
the scandal; but there is no possible defense for the man who tells
the scandal, but does not tell the truth." - [G.K. Chesterton, in ILN,
7/18/08]

Reply via email to