[sane-devel] Fnctl Functions
> sanei_usb.c: In function `sanei_usb_open': > sanei_usb.c:1049: warning: implicit declaration of function `fcntl' > sanei_usb.c:1049: error: `F_GETFL' undeclared (first use in this function) ^ typo > sanei_usb.c:1049: error: (Each undeclared identifier is reported only once > sanei_usb.c:1049: error: for each function it appears in.) > sanei_usb.c:1052: error: `F_SETFD' undeclared (first use in this function) > sanei_usb.c:1052: error: `FD_CLOEXEC' undeclared (first use in this function) Be sure that your Makefile includes "-I/usr/include" in its flags (check your platform ( MinGW?) for similar dependencies) On linux all are included in normal Makefile. Mine are: sanei_usb.c: #include /usr/include/fcntl.h: #include /usr/include/bits/fcntl.h: #ifndef _FCNTL_H # error "Never use directly; include instead." #endif .. #define F_GETFD 1 /* Get file descriptor flags. */ #define F_SETFD 2 /* Set file descriptor flags. */ .. #define FD_CLOEXEC 1 /* actually anything with low bit set goes */ regards, Gerald
[sane-devel] Fnctl Functions
Hi everyone, I am attempting to compile Sane on MinGW, and so far, it has been going well. Unfortunately, I have now encountered these errors, which I cannot seem to fix myself. sanei_usb.c: In function `sanei_usb_open': sanei_usb.c:1049: warning: implicit declaration of function `fcntl' sanei_usb.c:1049: error: `F_GETFL' undeclared (first use in this function) sanei_usb.c:1049: error: (Each undeclared identifier is reported only once sanei_usb.c:1049: error: for each function it appears in.) sanei_usb.c:1052: error: `F_SETFD' undeclared (first use in this function) sanei_usb.c:1052: error: `FD_CLOEXEC' undeclared (first use in this function) They are quite possibly something to do with the fnctl.h header, but I'm not really sure. Does anyone have any suggestions, on what to do from here? Hugh
[sane-devel] Sane Compile - Parse Error
Hi Allan, On 09/06/07, m. allan noah wrote: > but i though there was one in /mingw/include? if you remove that one, > does it find the compiler one? you are getting out of my league here, > can you tell? :) No, stddef.h is not included in /mingw/include. But, by adding #include to the file, the compile gets past this stage. Hugh
[sane-devel] backends not -j safe
On 6/8/07, Greg Troxel wrote: > I've investigated further, and found another directory that fails due to > the build of a .o not being finished before the ar/ranlib rule to make a > .a. If I run BSD make with -j4 I can't get it to fail. But with GNU > make -j4, it fails pretty regularly. This is gmake 3.81 on NetBSD > 4.0_BETA2 on i386 on a single processor machine. > > The problem occurs in sane-backends-1.0.18/lib. > > The bug is that libtool --mode=compile will build not only the shared > .lo but the unshared .o as well. After make ensures that the .o is > built, and goes on to run the rules to get the .lo, it then feels free > to run the .o->.a rule in parallel, and this can lose as a .o is > recreated. > > I can explain further if this is not adequately clear. > Thank you for the report, I've also faced with the problem. Just commited the fix into the CVS. -- Ilia Sotnikov
[sane-devel] Formulardaten
On 6/9/07, cgi-mailer at kundenserver.de wrote: ... > 2. Manufacturer (e.g. "Mustek"): >'HP' > 3. Model name (e.g. ScanExpress 1200UB): >'ScanJet 5590' > 4. Bus type: >'USB' > 5. Vendor id (e.g. 0x001): >'03f0' > 6. Product id (e.g. 0x0002): >'1705' Please, try CVS version of SANE, which could be downloaded from http://www.sane-project.org/snapshots/ - it contains the backend for your scanner. -- Ilia Sotnikov
[sane-devel] Canon Canoscan 3000ex
I have a Canon Canoscan 3000ex scanner. There aren't any driver for Linux, so I want to write a SANE backend for it. Where can I get help or documentation or any information about how to write a backend? Thanks: Zsolt -- next part -- An HTML attachment was scrubbed... URL: http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20070612/2edad2fd/attachment.htm