problems compiling SnapScan USB in pre-1.0.4

From: Jeremy Anderson (patowic@jurai.net)
Date: Thu Dec 14 2000 - 12:21:22 PST

  • Next message: Heikki Kantola: "Agfa SnapScan 1212U problems"

    I apologize for the long listing, but I cannot seem to get pre-1.0.4
    to compile with the USB line of snapscan.c uncommented. I CAN get 1.0.3
    to compile, but I can't figure out where to go from there with my USB
    scanner. Once I insmod usb-uhci, usbcore and scanner into my kernel
    (2.2.18), I can see in /var/log/messages that my scanner is detected
    and is apparently Device 3. But where I go from there is a mystery.
    If someone would care to clue me in, I'd be happy to write it up as
    documentation (and slap it into a chapter in an upcoming book I'm
    working on)...

    But, back to compiling the latest pre-1.0.4 (downloaded on...umm,
    Tuesday)

    Thanks for any help!

    Jeremy

    Here's what I get when I try to compile:

    In file included from snapscan.c:238:
    snapscan-usb.c: In function `usb_debug_data':
    snapscan-usb.c:162: parse error before `/'
    snapscan-usb.c:162: warning: statement with no effect
    snapscan-usb.c:162: parse error before `)'
    snapscan-usb.c:156: warning: unused parameter `data'
    snapscan-usb.c: In function `usb_open':
    snapscan-usb.c:175: warning: unused parameter `handler'
    snapscan-usb.c:175: warning: unused parameter `handler_arg'
    snapscan-usb.c: In function `usb_cmd':
    snapscan-usb.c:286: warning: cast discards qualifiers from pointer target type
    snapscan-usb.c:289: warning: cast discards qualifiers from pointer target type
    snapscan-usb.c:303: warning: pointer of type `void *' used in arithmetic
    snapscan-usb.c: At top level:
    snapscan-usb.c:344: warning: static declaration for `bqhead' follows non-static
    snapscan-usb.c:344: warning: static declaration for `bqtail' follows non-static
    snapscan-usb.c:378: warning: function declaration isn't a prototype
    snapscan-usb.c:402: warning: This file contains more `{'s than `}'s.
    snapscan.c: In function `sane_snapscan_get_devices':
    snapscan.c:1043: warning: cast discards qualifiers from pointer target type
    snapscan.c: In function `sane_snapscan_control_option':
    snapscan.c:1528: warning: pointer of type `void *' used in arithmetic
    snapscan.c:1528: warning: pointer of type `void *' used in arithmetic
    snapscan.c:1528: warning: pointer of type `void *' used in arithmetic
    snapscan.c:1538: warning: pointer of type `void *' used in arithmetic
    snapscan.c:1538: warning: pointer of type `void *' used in arithmetic
    snapscan.c:1538: warning: pointer of type `void *' used in arithmetic
    snapscan.c:1554: warning: pointer of type `void *' used in arithmetic
    make[1]: *** [snapscan.lo] Error 1
    make[1]: Leaving directory `/usr/src/sane-backends/backend'
    make: *** [all-recursive] Error 1
    jeremy@thor:/usr/src/sane-backends >

    -- 
    Jeremy Anderson		1989 VTR250  2000 Interceptor
    Linux/*nix freak	Dod# #WildCard jeremy@angelar.com
    http://www.jurai.net/~patowic    patowic@jurai.net
    http://www.allexperts.com/displayExpert.asp?Expert=8377
    

    -- 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 : Thu Dec 14 2000 - 11:53:54 PST