Error trying to compile 1.3.9 kernel

William M. Perkins (bill@grnwood.cais.com)
Wed, 12 Jul 1995 23:12:53 -0400 (EDT)


I received the following kerenl compilation error while trying to
compile the 1.3.9 version. I normally compile the kernel to use
only the ncr53c810 scsi disk driver. However, this kernel required
that I compile in one of the ide disk drivers before it would
produce a zImage file.

>...... much deleted compiler output
>
> sync
> gcc -D__KERNEL__ -I/usr/src/linux-1.3.9/include -D__ASSEMBLY__ -traditional -c head.S -o head.o
> make[1]: Leaving directory `/usr/src/linux-1.3.9/arch/i386/kernel'
> make[1]: Entering directory `/usr/src/linux-1.3.9/arch/i386/mm'
> gcc -D__KERNEL__ -I/usr/src/linux-1.3.9/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -m486 -c init.c
> gcc -D__KERNEL__ -I/usr/src/linux-1.3.9/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -m486 -c fault.c
> ld -r -o mm.o init.o fault.o
> make[1]: Leaving directory `/usr/src/linux-1.3.9/arch/i386/mm'
> make[1]: Entering directory `/usr/src/linux-1.3.9/arch/i386/lib'
> gcc -D__KERNEL__ -I/usr/src/linux-1.3.9/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -m486 -c checksum.c
> ar rcs lib.a checksum.o
> sync
> make[1]: Leaving directory `/usr/src/linux-1.3.9/arch/i386/lib'
> ld -qmagic -Ttext 0xfffe0 arch/i386/kernel/head.o init/main.o init/version.o \
> arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o net/network.a \
> fs/filesystems.a \
> drivers/block/block.a drivers/char/char.a drivers/net/net.a drivers/scsi/scsi.a drivers/sound/sound.a drivers/pci/pci.a \
> /usr/src/linux-1.3.9/arch/i386/lib/lib.a /usr/src/linux-1.3.9/lib/lib.a /usr/src/linux-1.3.9/arch/i386/lib/lib.a -o vmlinux
> genhd.o(.text+0x2ee): undefined reference to `ide_xlate_1024'
> genhd.o(.text+0x32c): undefined reference to `ide_xlate_1024'
> make: *** [vmlinux] Error 1

I checked the ./drivers/block/genhd.c file and compared it againist the
original same file used in 1.3.8 and found some new code for a 'Disk
Manager'. This code included a few lines simular to the following:

> ide_xlate_1024(dev); /* harmless if not an IDE drive */

Harmless, maybe, but it would not compile for my configuration.
So, I added the IDE driver to my configuration, and it compiled just
fine.

Bill

-- 
William M. Perkins              Internet - bill@cais.cais.com
The Greenwood                      or    - bill@grnwood.cais.com
Commodore is dead.  Long lives the Amiga!  (AmigaOS/Linux/NetBSD)