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

Karl Heinz Kremer khk at khk.net
Sat Oct 19 13:10:46 BST 2002


On Sat, Oct 19, 2002 at 01:16:31PM +0200, Henning Meier-Geinitz wrote:
> Hi,
> 
> 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 
> > have any backends that work, but in general it compiled (with
> > lots of warnings).
> 
> 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 correctly.

The backends were compiled as dynamic libraries.

> 
> > I did however get one error message while
> > compiling dc25.c:
> > 
> > gcc -c -g -O2 -W -Wall -Wcast-align -Wcast-qual -Wmissing-declarations -Wmi
> > ssing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes -pedanti
> > c -ansi -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE -DP
> > ATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/local/s
> > hare -DV_MAJOR=1 -DV_MINOR=0 -DBACKEND_NAME=dc25 -DLIBDIR=/usr/local/lib/sa
> > ne dc25.c  -fno-common -DPIC
> > dc25.c:2757: syntax error, found `fd'
> > dc25.c:2757: illegal function definition, found `)'
> 
> 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? 

Karl Heinz

-- 
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: 189 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20021019/a024bbbf/attachment.sig>


More information about the sane-devel mailing list