# Backend PINT Compile Errors

Dale M. Flaven (dflaven@netport.com)
Tue, 23 Jun 1998 17:37:43 -0700

- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
- Next message: Antal Novak: "General backend information"
- Previous message: Gunnar Weikamp: "Mustek 12000SP: error during read: out of memory"

I have a Logitech Scanman Color Hand-Held scanner and I have retrieved
the LOGISCAN driver. I have included PINT support when I compiled it.
I have tested it and it works. Now I am trying to get SANE compiled
to use SANE with the scanner. The following is what occurs when I
do a 'make':

making all in backend
make[1]: Entering directory `/exta/sane-0.73/backend'
gcc -c -g -O2 -Wall -DHAVE_CONFIG_H -I. -I. -I../include
-I../include -D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=0 -DV_MINOR=73
-DBACKEND_NAME=pint -DLIBDIR=/usr/local/lib/sane -fPIC -DPIC pint.c
pint.c:
In function `attach':
pint.c:125: `SCIOCGET' undeclared (first use this function)
pint.c:125: (Each undeclared identifier is reported only once
pint.c:125: for each function it appears in.)
pint.c:159: structure has no member named `scan_width'
pint.c:160: structure has no member named `scan_width'
pint.c:162: `SCIOCSET' undeclared (first use this function)
pint.c:165: structure has no member named `scan_width'
pint.c:167: structure has no member named `scan_width'
pint.c:175: structure has no member named `scan_height'
pint.c:176: structure has no member named `scan_height'
pint.c:179: structure has no member named `scan_height'
pint.c:181: structure has no member named `scan_height'
pint.c:247: `EPSON_ES300C' undeclared (first use this function)
pint.c:251: warning: unreachable code at beginning of switch statement
pint.c:263: `MUSTEK_06000CX' undeclared (first use this function)
pint.c:264: `MUSTEK_12000CX' undeclared (first use this function)
pint.c:294: warning: unreachable code at beginning of switch statement
pint.c: In function `init_options':
pint.c:464: structure has no member named `scan_width'
pint.c:466: structure has no member named `scan_height'
pint.c:377: warning: `x1' might be used uninitialized in this function
pint.c:377: warning: `y1' might be used uninitialized in this function
pint.c: In function `do_cancel':
pint.c:547: `SCIOCRESTART' undeclared (first use this function)
pint.c: In function `sane_pint_get_parameters':
pint.c:830: `SCIOCGET' undeclared (first use this function)
pint.c:855: structure has no member named `scan_width'
pint.c:856: structure has no member named `scan_height'
pint.c:901: `SCIOCSET' undeclared (first use this function)
pint.c:913: structure has no member named `scan_pixels_per_line'
pint.c:915: structure has no member named `scan_bits_per_pixel'
pint.c:915: structure has no member named `scan_pixels_per_line'
pint.c:916: structure has no member named `scan_lines'
pint.c:918: structure has no member named `scan_bits_per_pixel'
pint.c:918: structure has no member named `scan_bits_per_pixel'
make[1]: *** [pint.lo] Error 1
make[1]: Leaving directory `/exta/sane-0.73/backend'
make: *** [all-recursive] Error 1

Could anyone tell me what is wrong here? One thing appears to me is that
the scanio.h the following struct is defined:

struct scan_io {
ulong scan_window_width; /* width in 1/1200ths of an inch */
ulong scan_window_length; /* length in 1/1200ths of an inch */
ushort scan_x_resolution; /* horizontal resolution in
dots-per-inch */
ushort scan_y_resolution; /* vertical resolution in dots-per-inch
*/
ulong scan_x_origin; /* horizontal coordinate of upper left
corner */
ulong scan_y_origin; /* vertical coordinate of upper left
corner */
unsigned char scan_image_mode; /* type of image data sent by
scanner */
unsigned char scan_brightness; /* brightness control for those
to can do it */
unsigned char scan_contrast; /* contrast control for those to
can do it */
unsigned char scan_scanner_type; /* type of scanner (read only
variable) */
unsigned char scan_use_adf; /* whether to use Automatic
Document Feeder */
};

One of the above errors points to the following code: scanio.scan_width
which does not seem to be defined in scanio.h or anywhere else.

How do I resolve this!!?

    --
    Dale M. Flaven

    "I am an open receptacle, very slightly filled, anxiously wanting
    further
    filling of knowledge and information and I will NEVER be full."

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

     Next message: Antal Novak: "General backend information"
     Previous message: Gunnar Weikamp: "Mustek 12000SP: error during read: out of memory"