Red Hat Bugzilla – Bug 140491
"external" scsi driver modules not compilable with a content of .../build
Last modified: 2015-01-04 17:12:56 EST
Description of problem:
SCSI driver modules have this unfortunate habit that they do
'#include "scsi_module.c"'. For example, in
/usr/src/linux-2.6.9-1.6_FC2/drivers/scsi there is 58 .c file
with that line. So one could reasonably expect that various
"external" drivers for such devices will repeat that pattern.
Here is the catch; if you will do for such driver something
make CFLAGS=... -C /lib/modules/$(uname -r)/build M=$(PWD) modules
with CFLAGS set as required, then on FC3 this fails because
"scsi_module.c" (really an include file) is nowhere to be found
while it truly should sit under ../build/driver/scsi/.
A driver _could_ supply its own copy of scsi_module.c but there
is no guarantee that this will not get later out of sync and,
besides, it is not likely to be there as so far such extra copy
was not ever needed. Just to be sure we are talking here about
a GPL code.
I have no idea of other subsystems are doing a similar trickery.
Got hit on SCSI. :-)
An update has been released for Fedora Core 3 (kernel-2.6.12-1.1372_FC3) which
may contain a fix for your problem. Please update to this new kernel, and
report whether or not it fixes your problem.
If you have updated to Fedora Core 4 since this bug was opened, and the problem
still occurs with the latest updates for that release, please change the version
field of this bug to 'fc4'.
I have no idea why this shows twice.
*** This bug has been marked as a duplicate of 140421 ***