[sane-devel] Compiling sane-backends CVS 2003/10/22 on OS/2

Franz Bakan fbakan at gmx.net
Wed Oct 22 14:50:50 BST 2003


Hi,

Some problems:

1. sane-backends\include\sane/sanei_thread.h

line 108

static int ...
 has to be changed to
static void ...

...
/* FIXME: remove this ASAP */
#ifdef HAVE_OS2_H
static void os2_reader_process( void* data);
...


2.

sane-backends\backend/hp-handle.c

too many arguments:

hp-handle.c: In function `hp_handle_startReader':
hp-handle.c:220: warning: passing arg 1 of `sanei_thread_begin' from incompatible pointer type
hp-handle.c: In function `hp_handle_stopScan':
hp-handle.c:300: too many arguments to function `sanei_thread_waitpid'
hp-handle.c: In function `sanei_hp_handle_cancel':
hp-handle.c:816: too many arguments to function `sanei_thread_kill'
make[1]: *** [hp-handle.lo] Error 1

Probably the last argument when calling these functions can be deleted.


3. plustek_pp

some issues:

In file included from plustek-pp_io.c:68,
                 from plustek_pp.c:129:
plustek-pp_scan.h:76: sched.h: No such file or directory
plustek-pp_scan.h:80: sys/io.h: No such file or directory
In file included from plustek-pp_io.c:68,
                 from plustek_pp.c:129:
plustek-pp_scan.h:164: warning: ANSI C does not support `long long'
plustek-pp_scan.h:164: warning: ANSI C does not support `long long'
plustek-pp_io.c: In function `ioDataFromSPPFast':
In file included from plustek_pp.c:129:
plustek-pp_io.c:99: warning: implicit declaration of function `_outp8'
plustek-pp_io.c: In function `IOOutDelayed':
plustek-pp_io.c:969: warning: implicit declaration of function `outb_p'
plustek-pp_io.c: In function `IOIn':
plustek-pp_io.c:980: warning: implicit declaration of function `_inp8'
plustek-pp_io.c: In function `IOInDelayed':
plustek-pp_io.c:992: warning: implicit declaration of function `inb_p'
plustek-pp_misc.c: In function `miscSetPortMode':
In file included from plustek_pp.c:135:
plustek-pp_misc.c:534: warning: implicit declaration of function `iopl'
plustek-pp_misc.c: In function `MiscCheckTimer':
plustek-pp_misc.c:791: warning: implicit declaration of function `sched_yield'
plustek-pp_ptdrv.c: At top level:
In file included from plustek_pp.c:152:
plustek-pp_ptdrv.c:116: warning: ANSI C forbids specifying element to initialize
plustek-pp_ptdrv.c:122: warning: ANSI C forbids specifying element to initialize
plustek-pp_ptdrv.c:125: warning: ANSI C forbids specifying element to initialize
plustek-pp_ptdrv.c:128: warning: ANSI C forbids specifying element to initialize
plustek-pp_ptdrv.c:131: warning: ANSI C forbids specifying element to initialize
plustek-pp_ptdrv.c:134: warning: ANSI C forbids specifying element to initialize
plustek-pp_ptdrv.c:137: warning: ANSI C forbids specifying element to initialize
plustek-pp_ptdrv.c: In function `ptdrvStartLampTimer':
plustek-pp_ptdrv.c:551: storage size of `interval' isn't known
plustek-pp_ptdrv.c:579: warning: implicit declaration of function `setitimer'
plustek-pp_ptdrv.c:579: `ITIMER_REAL' undeclared (first use in this function)
plustek-pp_ptdrv.c:579: (Each undeclared identifier is reported only once
plustek-pp_ptdrv.c:579: for each function it appears in.)
plustek-pp_ptdrv.c:551: warning: unused variable `interval'
plustek-pp_ptdrv.c: In function `ptdrvStopLampTimer':
plustek-pp_ptdrv.c:608: `ITIMER_REAL' undeclared (first use in this function)
plustek-pp_ptdrv.c: At top level:
plustek-pp_ptdrv.c:144: storage size of `saveSettings' isn't known
..\include\sane/sanei_thread.h:108: warning: `os2_reader_process' declared `static' but never defined
make[1]: *** [plustek_pp.lo] Error 1


4.

saned.c: In function `auth_callback':
saned.c:296: warning: cast discards `const' from pointer target type
saned.c:306: warning: cast discards `const' from pointer target type
saned.c:317: warning: cast discards `const' from pointer target type
saned.c: In function `check_v4_in_range':
saned.c:611: `in_addr_t' undeclared (first use in this function)
saned.c:611: (Each undeclared identifier is reported only once
saned.c:611: for each function it appears in.)
saned.c:611: parse error before `mask'
saned.c:624: `mask' undeclared (first use in this function)
saned.c: In function `process_request':
saned.c:1803: warning: cast discards `const' from pointer target type
make[1]: *** [saned.o] Error 1


Regards
Franz






More information about the sane-devel mailing list