[sane-devel] backend install problem

Karl Heinz Kremer khk at khk.net
Fri Aug 22 13:30:48 BST 2003


This is already fixed in the (today's) CVS version. It worked fine on my Mac :-)

On Fri, Aug 22, 2003 at 12:37:15PM +0200, Henning Meier-Geinitz wrote:
> [cc'ing to the epson maintainer]
> 
> Hi,
> 
> On Tue, Sep 23, 2003 at 11:54:53AM +0530, aneesh m raj wrote:
> > I have tried to install the backend form cvs but the make is showing
> > some error in epson scsi file.
> 
> Looks like a problem in epson_scsi.h (or to be more exact in
> epson_scsi.c):
> 
> | In file included from epson_scsi.c:7:
> | ../include/sane/sanei_scsi.h:68: error: syntax error before "u_char"
> | ../include/sane/sanei_scsi.h:69: warning: function declaration isn't a prototype
> 
> The problem is simple: u_char is used but not defined. While it is in
> sys/types.h on modern systems it may not be on older systems. Even
> with newer systems, some teaks may be necessary (e.g. GNU_SOURCE).
> 
> So the fix is simple: Swap the following lines in epson_scsi.c:
> 
> | #include <string.h>		   	/* for memset and memcpy */
> | #include "../include/sane/config.h"
> 
> config.h must be the first include file in any SANE file (but the
> #ifdef AIX workaround).
> 
> Another work-around for this type of problem is to use
> "configure --disable-warnings".
> 
> Bye,
>   Henning
> _______________________________________________
> Sane-devel mailing list
> Sane-devel at www.mostang.com
> http://www.mostang.com/mailman/listinfo/sane-devel

-- 
Karl Heinz Kremer                                  khk at khk.net
PGP Key at                 http://www.khk.net/download/khk.asc
EPSON Sane Backend:                         http://www.khk.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20030822/525b4001/attachment.sig>


More information about the sane-devel mailing list