[sane-devel] problems compiling on cygwin and a java question

Henning Meier-Geinitz henning@meier-geinitz.de
Fri, 20 Aug 2004 19:13:50 +0200


Hi,

On Thu, Aug 19, 2004 at 12:31:52PM +0200, Giuseppe Sacco wrote:
> we are experiencing some strange problems compiling the latest CVS 
> snapshot on an up-to-date cygwin installation.
> 
> 1. if we just use the vanilla 'configure' without specifing any 
> arguments then we get an error when compiling backend/coolscan.c, at 
> line 2593. The error is: sa_handler field doesn't exists.

Strange. sa_handler is also used by other backends. Maybe we need
another definition for SIGACTION in sanei/sanei_backend.h?

> 2. if you use a different compiler, i.e., 'gcc-2' instead of 'gcc', the 
> compilation process stops on backend/gt68xx.c, line 242, since SHM_R is 
> not definded. How may we tell 'configure' to do not compile a specific 
> backend? Should we specify all other backends we need using the BACKENDS 
> variable?
> 
> gt68xx_shm_channel.c: In function `shm_channel_new':
> gt68xx_shm_channel.c:242: `SHM_R' undeclared (first use in this function)
> gt68xx_shm_channel.c:242: (Each undeclared identifier is reported only once
> gt68xx_shm_channel.c:242: for each function it appears in.)
> gt68xx_shm_channel.c:242: `SHM_W' undeclared (first use in this function

I'll add a workaround for that one to CVS. If you like to use that
backend, you can also edit gt68xx.c and #undef USE_FORK.

Bye,
  Henning