"Paul W. Abrahams" wrote:
> 
> In kernel sources 2.2.10, module /usr/src/linux/driver/scsi/sg.c, a
> number of SG_* variables such as SG_GET_COMMAND_Q are undefined.  It
> looks as though there's a missing include file.

Paul,
If you have the kernel source under /usr/src/linux then try this:

  diff /usr/include/scsi/sg.h /usr/src/linux/include/scsi/sg.h

They should be the same but they are probably not (it seems to
be a bug in the glibc distribution). Anyway the one in the kernel
tree (the last argument to the diff) is the correct one.

If this is the problem then the following sequence should fix it:
  cd /usr/include
  mv scsi o_scsi
  ln -s /usr/src/linux/include/scsi scsi

An alternate approach pointed out by Monty (who is the author of
the cdparanioa application) is to change includes of sg.h to:

#include <linux/../scsi/sg.h>

Failing this, you have a corrupted source tree (because 
SG_GET_COMMAND_Q is only defined in sg.h and the sg driver needs
it to compile successfully).

Hope this helps.

Doug Gilbert

-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]

Reply via email to