[sane-devel] Code-freeze for sane-1.0.9 active

Karl Heinz Kremer khk@khk.net
Sat, 19 Oct 2002 08:10:46 -0400


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

On Sat, Oct 19, 2002 at 01:16:31PM +0200, Henning Meier-Geinitz wrote:
> Hi,
>=20
> On Fri, Oct 18, 2002 at 07:17:51PM -0400, Karl Heinz Kremer wrote:
> > I compiled the backend package on Mac OS X 10.2 (Jaguar). I don't=20
> > have any backends that work, but in general it compiled (with
> > lots of warnings).
>=20
> Is it compiled with static or dynamic libs? Does at least the test
> backend work (scanimage -d test -T)?

Right, we do have the test backend. This is the first non-Linux architecture
I've compiled Sane on, and I usually don't mess around with frontends, so I
totally forgot about that.

It runs just fine. All tests pass, and I can display the test images correc=
tly.

The backends were compiled as dynamic libraries.

>=20
> > I did however get one error message while
> > compiling dc25.c:
> >=20
> > gcc -c -g -O2 -W -Wall -Wcast-align -Wcast-qual -Wmissing-declarations =
-Wmi
> > ssing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes -ped=
anti
> > c -ansi -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE=
 -DP
> > ATH_SANE_CONFIG_DIR=3D/usr/local/etc/sane.d -DPATH_SANE_DATA_DIR=3D/usr=
/local/s
> > hare -DV_MAJOR=3D1 -DV_MINOR=3D0 -DBACKEND_NAME=3Ddc25 -DLIBDIR=3D/usr/=
local/lib/sa
> > ne dc25.c  -fno-common -DPIC
> > dc25.c:2757: syntax error, found `fd'
> > dc25.c:2757: illegal function definition, found `)'
>=20
> Maybe that gcc doesn't like the UNUSEDARG? However I don't know why it
> complains about the last usage in that file.

I don't know either, it did not complain about the ones in the other dcXXX
backends, but when I use the same #define in dc25.h as for the non-gcc
compilers, it compiles without a problem. Maybe it's the combination of
UNDEFINED (or to be more correct, to what it gets expanded) and fd?

While we are talking about OS X, maybe I can repeat my question from a
few days ago: Has anybody managed to use libusb on OS X?=20

Karl Heinz

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

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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD4DBQE9sUvGxejv3RfKrhsRAtATAKCq/KMelSXq/WPfdDUdeCnBI2v8fACWL9qX
QoJxx3FPrCd7bVd7uk0iEw==
=7o6N
-----END PGP SIGNATURE-----

--UlVJffcvxoiEqYs2--