Skip to contentSkip to conversation

scsi_lib.c undefined symbol

DISCUSSION Adam Schrotenboer 2 participants 3 messages Sep 3, 2001

lore
Share & tools
lore
#0 lore raw

I have gotten this a couple times w/ other versions of the kernel, but this is 2.4.9-ac6. (2.4.8-ac12 worked, but that may be a fluke)

Keith, if you say that this is b0rken Makefiles, it shouldn't be, b/c this is after a make mrproper.

My config is gzipped and attached to the end of this e-mail.

I don't actually have any SCSI devices. I want scsi for ide-scsi (DVD drive) and a USB CDRW. Help, please.

gcc -D__KERNEL__ -I/mnt/hda3/kernel/2.4.9-ac6/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=athlon -DMODULE -DMODVERSIONS -include /mnt/hda3/kernel/2.4.9-ac6/linux/include/linux/modversions.h -c -o scsi_lib.o scsi_lib.c
scsi_lib.c: In function `__scsi_end_request':
scsi_lib.c:379: `queued_sectors_Rc37b18c1' undeclared (first use in this function) scsi_lib.c:379: (Each undeclared identifier is reported only once scsi_lib.c:379: for each function it appears in.)
make[2]: *** [scsi_lib.o] Error 1
make[2]: Leaving directory `/mnt/hda3/kernel/2.4.9-ac6/linux/drivers/scsi' make[1]: *** [_modsubdir_scsi] Error 2
make[1]: Leaving directory `/mnt/hda3/kernel/2.4.9-ac6/linux/drivers'
make: *** [_mod_drivers] Error 2

#1 lore raw
Quoted 7 lines · Adam Schrotenboer

I have gotten this a couple times w/ other versions of the kernel, but this is 2.4.9-ac6. (2.4.8-ac12 worked, but that may be a fluke)

gcc -D__KERNEL__ -I/mnt/hda3/kernel/2.4.9-ac6/linux/include -Wall

(quoted diff) +0 -3
-Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer 
-fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 
-march=athlon  -DMODULE -DMODVERSIONS -include 
Quoted 5 lines

/mnt/hda3/kernel/2.4.9-ac6/linux/include/linux/modversions.h -c -o
scsi_lib.o scsi_lib.c
scsi_lib.c: In function `__scsi_end_request':
scsi_lib.c:379: `queued_sectors_Rc37b18c1' undeclared (first use in this function)

It works for me on 2.4.9-ac6 using your .config. I am using egcs-2.91.66 which does not support -march=athlon so I get different compiler flags, which compiler are you using? There is no obvious reason for this error, genksyms should pick up the same cflags as the compile.

I need 'fgrep queued_sectors include/linux/modules/*'. Also
cd drivers/scsi

  gcc -D__KERNEL__ -I/mnt/hda3/kernel/2.4.9-ac6/linux/include -Wall \
      -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer \
      -fno-strict-aliasing -fno-common -pipe \
      -mpreferred-stack-boundary=2 -march=athlon -DMODULE -DMODVERSIONS \
      -include /mnt/hda3/kernel/2.4.9-ac6/linux/include/linux/modversions.h \
      -c -E -o scsi_lib.i scsi_lib.c

Send me scsi_lib.i.

#2 lore raw
In reply to Adam Schrotenboer
Quoted 7 lines · Adam Schrotenboer

I have gotten this a couple times w/ other versions of the kernel, but this is 2.4.9-ac6. (2.4.8-ac12 worked, but that may be a fluke)

gcc -D__KERNEL__ -I/mnt/hda3/kernel/2.4.9-ac6/linux/include -Wall

(quoted diff) +0 -3
-Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer 
-fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 
-march=athlon  -DMODULE -DMODVERSIONS -include 
Quoted 5 lines

/mnt/hda3/kernel/2.4.9-ac6/linux/include/linux/modversions.h -c -o
scsi_lib.o scsi_lib.c
scsi_lib.c: In function `__scsi_end_request':
scsi_lib.c:379: `queued_sectors_Rc37b18c1' undeclared (first use in this function)

User error. scsi_lib.c comes from 2.4.9-ac6 but include/linux/blkdev.h is still at base 2.4.9. Your patches did not apply clean, start from a fresh source tree and retry. blkdev.h must contain queued_sectors, it must not contain max_segments.