* scsi_lib.c undefined symbol
@ 2001-09-03 4:19 Adam Schrotenboer
2001-09-03 4:49 ` Keith Owens
2001-09-03 6:43 ` Keith Owens
0 siblings, 2 replies; 3+ messages in thread
From: Adam Schrotenboer @ 2001-09-03 4:19 UTC (permalink / raw)
To: Alan Cox, LKML, Keith Owens
[-- Attachment #1: Type: text/plain, Size: 1246 bytes --]
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
[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 4944 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: scsi_lib.c undefined symbol
2001-09-03 4:19 scsi_lib.c undefined symbol Adam Schrotenboer
@ 2001-09-03 4:49 ` Keith Owens
2001-09-03 6:43 ` Keith Owens
1 sibling, 0 replies; 3+ messages in thread
From: Keith Owens @ 2001-09-03 4:49 UTC (permalink / raw)
To: Adam Schrotenboer; +Cc: Alan Cox, LKML
On Mon, 03 Sep 2001 00:19:17 -0400,
Adam Schrotenboer <ajschrotenboer@lycosmail.com> wrote:
>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
>-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)
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: scsi_lib.c undefined symbol
2001-09-03 4:19 scsi_lib.c undefined symbol Adam Schrotenboer
2001-09-03 4:49 ` Keith Owens
@ 2001-09-03 6:43 ` Keith Owens
1 sibling, 0 replies; 3+ messages in thread
From: Keith Owens @ 2001-09-03 6:43 UTC (permalink / raw)
To: Adam Schrotenboer; +Cc: Alan Cox, LKML
On Mon, 03 Sep 2001 00:19:17 -0400,
Adam Schrotenboer <ajschrotenboer@lycosmail.com> wrote:
>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
>-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)
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-09-03 6:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-03 4:19 scsi_lib.c undefined symbol Adam Schrotenboer
2001-09-03 4:49 ` Keith Owens
2001-09-03 6:43 ` Keith Owens
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).