Re: Problem comiling Sane

From: Petter Reinholdtsen (pere@hungry.com)
Date: Sat Jun 09 2001 - 02:40:21 PDT

  • Next message: Henning Meier-Geinitz: "Re: Transmissive scanning"

    [Maier Gerfried]
    > sanei_scsi.c:2262: storage size of `ssid' isn't known
    > sanei_scsi.c:2262: warning: unused variable `ssid'
    [...]
    > What could be a solution to this error?

    Checking sanei/sanei_scsi.c, the problem is this code:

      #ifdef SG_GET_SCSI_ID
        struct sg_scsi_id ssid;
      [...]
      #endif

    Further up in the file, a comment specifies a different struct which
    is defined to make sure it is available on all Linux kernel versions.
    Which linux kernel are you using (uname -a)? Could you be missing the
    kernel header files?

    The replacement struct is named 'struct xsg_scsi_id'. Try to replace
    'sg_scsi_id' with 'xsg_scsi_id' in line 2262, and see if it works.

    -- 
    ##>  Petter Reinholdtsen  <##  |  pere@hungry.com
    

    -- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com



    This archive was generated by hypermail 2b29 : Sat Jun 09 2001 - 02:35:03 PDT