Il giorno ven, 20-08-2004 alle 19:13 +0200, Henning Meier-Geinitz ha scritto: [...] > > 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.
Hi, I am once again recompiling sane 1.0.15 under Windows/CygWin and found the very same problem in backends/snapscan-usb.c. The solution seems to be to change #include <sys/ipc.h> and <sys/shm.h> into #include <cygipc/sys/ipc.h> and <cygipc/sys/shm.h> Bye, Giuseppe
