On Sun, 5 Dec 1999, Mike Fieschko wrote:

> 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.

Don't hand edit the file it's machine generated, recreate it..
 
> 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.

make mrproper

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

--
MandrakeSoft          http://www.mandrakesoft.com/
                                        --Axalon

Reply via email to