Problems in 1.3.62 with PAS16

Michael Jarvis (michael@jarvis.com)
Tue, 13 Feb 1996 12:13:32 -0600 (CST)


I tried compiling a fresh copy of 1.3.62, and ran into problems with
trying to use PAS16 for CD-ROM support only. The errors I would get
were:

make[3]: Entering directory `/usr/src/linux-1.3.62/drivers/scsi'
[snip...]
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -fno-strength-reduce -pipe -m486 -DCPU=486 -c -o
pas16.o pas16.c
In file included from NCR5380.c:71,
from pas16.c:541:
g_NCR5380.h:133: warning: `NCR5380_read' redefined
pas16.h:166: warning: this is the location of the previous definition
g_NCR5380.h:134: warning: `NCR5380_write' redefined
pas16.h:167: warning: this is the location of the previous definition
g_NCR5380.h:139: warning: `NCR5380_implementation_fields' redefined
pas16.h:155: warning: this is the location of the previous definition
g_NCR5380.h:142: warning: `NCR5380_local_declare' redefined
pas16.h:158: warning: this is the location of the previous definition
g_NCR5380.h:145: warning: `NCR5380_setup' redefined
pas16.h:161: warning: this is the location of the previous definition
g_NCR5380.h:147: warning: `NCR5380_intr' redefined
pas16.h:181: warning: this is the location of the previous definition
g_NCR5380.h:148: warning: `NCR5380_queue_command' redefined
pas16.h:182: warning: this is the location of the previous definition
g_NCR5380.h:149: warning: `NCR5380_abort' redefined
pas16.h:183: warning: this is the location of the previous definition
g_NCR5380.h:150: warning: `NCR5380_reset' redefined
pas16.h:184: warning: this is the location of the previous definition
NCR5380.c: In function `NCR5380_transfer_dma':
In file included from pas16.c:541:
NCR5380.c:2008: warning: implicit declaration of function
`generic_NCR5380_pread'
NCR5380.c:2043: warning: implicit declaration of function
`generic_NCR5380_pwrite'
NCR5380.h: At top level:
NCR5380.h:278: warning: `pas16_intr' declared `static' but never defined
NCR5380.c:1124: warning: `generic_NCR5380_intr' defined but not used
rm -f scsi.a
ar rcs scsi.a scsi_syms.o hosts.o scsi.o scsi_ioctl.o constants.o
scsicam.o scsi_proc.o sr.o sr_ioctl.o pas16.o
[snip...]
ld -m elf_i386 -Ttext 0x100000 -e stext 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 \
/usr/src/linux/arch/i386/lib/lib.a /usr/src/linux/lib/lib.a /usr/src/linux/arch/i386/lib/lib.a -o vmlinux
pas16.o(.text+0x364): undefined reference to `pas16_intr'
pas16.o(.text+0x13b0): undefined reference to `generic_NCR5380_pread'
pas16.o(.text+0x1408): undefined reference to `generic_NCR5380_pwrite'
hosts.o(.data+0x28): undefined reference to `pas16_queue_command'
hosts.o(.data+0x2c): undefined reference to `pas16_abort'
hosts.o(.data+0x30): undefined reference to `pas16_reset'
make: *** [vmlinux] Error 1

I wound up copying the drivers/scsi/g_NCR5380.c and
drivers/scsi/g_NCR5380.h files from the 1.3.59 release (which had been
working fine) and it compiled successfully.

-michael

-- 
Michael Jarvis
michael@jarvis.com
**************************************************************************
"Who are you who are so wise in the ways of science?"        --Sir Bedemir