Compiling on OS/2

From: Franz Bakan (fbakan@gmx.net)
Date: Tue May 29 2001 - 16:10:50 PDT

  • Next message: Tom: "Re: usb Mustek scanner on 2.2.16"

    Hi,

    If i try to compile the actual cvs-version on OS/2
    there are some problems:

    1. sane-backends/sanei/sanei_scsi.c

    I get an error in sane-backends\sanei\sanei_scsi.c

    sanei_scsi.c:line: initializer element for `param[0].u' is not computable at load time
    ....
    sanei_scsi.c:line: initializer element for `param[7]' is not computable at load time

    It compiles if I change the following lines

    from

    char vendor[32], model[32], type[32], revision[32];
    int bus, channel, id, lun, number, i;

    to

    static char vendor[32], model[32], type[32], revision[32];
    static int bus, channel, id, lun, number;
    int i;

    Perhaps this could be changed...

    2. sane/sane-backends/backend/qcam.c

    I have to change

       struct flock sfl;

    to

     struct
       { off_t l_start;
             off_t l_len;
             pid_t l_pid;
             short l_type;
             short l_whence;
     } sfl;

    (twice)

    3. in sane/sane-backends/lib/*.c

    I have to change
    #include "config.h"
    to
    #include <config.h>

    Perhaps these problems could be solved in the sources.

    Another question:

    Is it possible to compile just for one backend for example
    a specific version just for epson scanners.

    Or build scanimage without all 'fork' or 'parallel' backends
    (which are actualy not so well supported on OS/2)

    Is there a switch for configure that could be set?

    Franz Bakan

    --
    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 : Tue May 29 2001 - 16:14:23 PDT