[sane-devel] backend install problem

Karl Heinz Kremer khk@khk.net
Fri, 22 Aug 2003 08:30:48 -0400


--NzB8fVQJ5HfG6fxh
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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

On Fri, Aug 22, 2003 at 12:37:15PM +0200, Henning Meier-Geinitz wrote:
> [cc'ing to the epson maintainer]
>=20
> Hi,
>=20
> 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.
>=20
> Looks like a problem in epson_scsi.h (or to be more exact in
> epson_scsi.c):
>=20
> | 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
>=20
> 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).
>=20
> So the fix is simple: Swap the following lines in epson_scsi.c:
>=20
> | #include <string.h>		   	/* for memset and memcpy */
> | #include "../include/sane/config.h"
>=20
> config.h must be the first include file in any SANE file (but the
> #ifdef AIX workaround).
>=20
> Another work-around for this type of problem is to use
> "configure --disable-warnings".
>=20
> Bye,
>   Henning
> _______________________________________________
> Sane-devel mailing list
> Sane-devel@www.mostang.com
> http://www.mostang.com/mailman/listinfo/sane-devel

--=20
Karl Heinz Kremer                                  khk@khk.net
PGP Key at                 http://www.khk.net/download/khk.asc
EPSON Sane Backend:                         http://www.khk.net

--NzB8fVQJ5HfG6fxh
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQE/Rgz4xejv3RfKrhsRAqLIAKCVyjSN1EC928UMBScn0sV7+iBaKwCeJqiN
miKNoAD3kSBgbftbEEyRc5U=
=KPf7
-----END PGP SIGNATURE-----

--NzB8fVQJ5HfG6fxh--