I'm having some trouble compiling with these changes committed. Below is the error I'm getting. I'll admit I haven't actually looked into the source code to confirm the change comes from this set of commits, but it seemed like it would be related. I'm running Fedora 13, and I've been able to build from the latest source as recent as 2011.01.12.<div>
<br></div><div>Thanks,</div><div>Brian ..<br><div><br></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div><font class="Apple-style-span" face="'courier new', monospace">/bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include/sane -I/usr/local/include -I. -I. -I../include -I../include -DLIBDIR="/home/bshaver/test-root/lib/sane" -DBACKEND_NAME=magicolor -DPATH_SANE_CONFIG_DIR=/home/bshaver/test-root/etc/sane.d <span class="Apple-tab-span" style="white-space: pre; ">        </span> -DPATH_SANE_DATA_DIR=/home/bshaver/test-root/share <span class="Apple-tab-span" style="white-space: pre; ">        </span> -DPATH_SANE_LOCK_DIR=/home/bshaver/test-root/var/lock/sane <span class="Apple-tab-span" style="white-space: pre; ">        </span> -DV_MAJOR=1 -DV_MINOR=0 -g -O2 -W -Wall -Wcast-align -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes -pedantic -ansi -MT libmagicolor_la-magicolor.lo -MD -MP -MF .deps/libmagicolor_la-magicolor.Tpo -c -o libmagicolor_la-magicolor.lo `test -f 'magicolor.c' || echo './'`magicolor.c</font></div>
</div><div><div><font class="Apple-style-span" face="'courier new', monospace">magicolor.c: In function 'dump_hex_buffer_dense':</font></div></div><div><div><font class="Apple-style-span" face="'courier new', monospace">magicolor.c:400: warning: format '%04x' expects type 'unsigned int', but argument 3 has type 'size_t'</font></div>
</div><div><div><font class="Apple-style-span" face="'courier new', monospace">magicolor.c: In function 'mc_send':</font></div></div><div><div><font class="Apple-style-span" face="'courier new', monospace">magicolor.c:492: warning: format '%d' expects type 'int', but argument 3 has type 'size_t'</font></div>
</div><div><div><font class="Apple-style-span" face="'courier new', monospace">magicolor.c: In function 'cmd_start_scan':</font></div></div><div><div><font class="Apple-style-span" face="'courier new', monospace">magicolor.c:680: warning: pointer of type 'void *' used in arithmetic</font></div>
</div><div><div><font class="Apple-style-span" face="'courier new', monospace">magicolor.c:680: warning: dereferencing 'void *' pointer</font></div></div><div><div><font class="Apple-style-span" face="'courier new', monospace" style="background-color: rgb(255, 255, 51);">magicolor.c:680: error: invalid use of void expression</font></div>
</div><div><div><font class="Apple-style-span" face="'courier new', monospace">magicolor.c:680: warning: pointer of type 'void *' used in arithmetic</font></div></div><div><div><font class="Apple-style-span" face="'courier new', monospace">magicolor.c:680: warning: dereferencing 'void *' pointer</font></div>
</div><div><div><font class="Apple-style-span" face="'courier new', monospace">magicolor.c:680: error: invalid use of void expression</font></div></div><div><div><font class="Apple-style-span" face="'courier new', monospace">magicolor.c:680: warning: left-hand operand of comma expression has no effect</font></div>
</div><div><div><font class="Apple-style-span" face="'courier new', monospace">magicolor.c:680: warning: pointer of type 'void *' used in arithmetic</font></div></div><div><div><font class="Apple-style-span" face="'courier new', monospace">magicolor.c:680: warning: dereferencing 'void *' pointer</font></div>
</div><div><div><font class="Apple-style-span" face="'courier new', monospace">magicolor.c:680: error: invalid use of void expression</font></div></div><div><div><font class="Apple-style-span" face="'courier new', monospace">magicolor.c:680: warning: left-hand operand of comma expression has no effect</font></div>
</div><div><div><font class="Apple-style-span" face="'courier new', monospace">magicolor.c:680: warning: pointer of type 'void *' used in arithmetic</font></div></div><div><div><font class="Apple-style-span" face="'courier new', monospace">magicolor.c:680: warning: dereferencing 'void *' pointer</font></div>
</div><div><div><font class="Apple-style-span" face="'courier new', monospace">magicolor.c:680: error: invalid use of void expression</font></div></div><div><div><font class="Apple-style-span" face="'courier new', monospace">magicolor.c:680: warning: left-hand operand of comma expression has no effect</font></div>
</div><div><div><font class="Apple-style-span" face="'courier new', monospace">magicolor.c: In function 'cmd_read_data':</font></div></div><div><div><font class="Apple-style-span" face="'courier new', monospace">magicolor.c:921: warning: pointer of type 'void *' used in arithmetic</font></div>
</div><div><div><font class="Apple-style-span" face="'courier new', monospace">magicolor.c:921: warning: dereferencing 'void *' pointer</font></div></div><div><div><font class="Apple-style-span" face="'courier new', monospace">magicolor.c:921: error: invalid use of void expression</font></div>
</div><div><div><font class="Apple-style-span" face="'courier new', monospace">magicolor.c:921: warning: pointer of type 'void *' used in arithmetic</font></div></div><div><div><font class="Apple-style-span" face="'courier new', monospace">magicolor.c:921: warning: dereferencing 'void *' pointer</font></div>
</div><div><div><font class="Apple-style-span" face="'courier new', monospace">magicolor.c:921: error: invalid use of void expression</font></div></div><div><div><font class="Apple-style-span" face="'courier new', monospace">magicolor.c:921: warning: left-hand operand of comma expression has no effect</font></div>
</div><div><div><font class="Apple-style-span" face="'courier new', monospace">magicolor.c:921: warning: pointer of type 'void *' used in arithmetic</font></div></div><div><div><font class="Apple-style-span" face="'courier new', monospace">magicolor.c:921: warning: dereferencing 'void *' pointer</font></div>
</div><div><div><font class="Apple-style-span" face="'courier new', monospace">magicolor.c:921: error: invalid use of void expression</font></div></div><div><div><font class="Apple-style-span" face="'courier new', monospace">magicolor.c:921: warning: left-hand operand of comma expression has no effect</font></div>
</div><div><div><font class="Apple-style-span" face="'courier new', monospace">magicolor.c:921: warning: pointer of type 'void *' used in arithmetic</font></div></div><div><div><font class="Apple-style-span" face="'courier new', monospace">magicolor.c:921: warning: dereferencing 'void *' pointer</font></div>
</div><div><div><font class="Apple-style-span" face="'courier new', monospace">magicolor.c:921: error: invalid use of void expression</font></div></div><div><div><font class="Apple-style-span" face="'courier new', monospace">magicolor.c:921: warning: left-hand operand of comma expression has no effect</font></div>
</div><div><div><font class="Apple-style-span" face="'courier new', monospace">magicolor.c: In function 'mc_network_discovery':</font></div></div><div><div><font class="Apple-style-span" face="'courier new', monospace">magicolor.c:1868: warning: unused parameter 'host'</font></div>
</div><div><div><font class="Apple-style-span" face="'courier new', monospace">make[2]: *** [libmagicolor_la-magicolor.lo] Error 1</font></div></div><div><div><font class="Apple-style-span" face="'courier new', monospace">make[2]: Leaving directory `/home/bshaver/Documents/Projects/sane-backends/backend'</font></div>
</div><div><div><font class="Apple-style-span" face="'courier new', monospace">make[1]: *** [all] Error 2</font></div></div><div><div><font class="Apple-style-span" face="'courier new', monospace">make[1]: Leaving directory `/home/bshaver/Documents/Projects/sane-backends/backend'</font></div>
</div><div><div><font class="Apple-style-span" face="'courier new', monospace">make: *** [all-recursive] Error 1</font></div></div></blockquote><div><div><br></div><br><div class="gmail_quote">On Wed, Jan 19, 2011 at 8:38 AM, m. allan noah <span dir="ltr"><<a href="mailto:kitno455@gmail.com">kitno455@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">And this code is now part of sane-backends. Thanks Reinhold, and<br>
welcome to the team.<br>
<br>
<a href="http://www.sane-project.org/lists/sane-backends-cvs.html#S-MAGICOLOR" target="_blank">http://www.sane-project.org/lists/sane-backends-cvs.html#S-MAGICOLOR</a><br>
<font color="#888888"><br>
allan<br>
</font><div><div></div><div class="h5"><br>
On Thu, Jan 6, 2011 at 12:30 PM, Reinhold Kainhofer<br>
<<a href="mailto:reinhold@kainhofer.com">reinhold@kainhofer.com</a>> wrote:<br>
> As you know, I have been developing a magicolor backend for KONICA MINOLTA<br>
> magicolor 1690MF devices (possibly also for other devices, but I don't have<br>
> access to any other KONICA MINOLTA device that uses the same protocol -- The<br>
> bizhub devices use a different protocol).<br>
><br>
> In my view, it is now in a state so that it can be included in sane-backends<br>
> (I'm using it regularly with xsane). The git patches can be found at:<br>
> <a href="http://www.fam.tuwien.ac.at/~reinhold/sane/magicolor_backend_patches/" target="_blank">http://www.fam.tuwien.ac.at/~reinhold/sane/magicolor_backend_patches/</a><br>
><br>
> -) The first two (0001 and 0002) are for the sanei_usb functionality already<br>
> send yesterday,<br>
> -) 0003 is the actual backend,<br>
> -) 0004 fixes some compiler warnings in byteorder.h, and<br>
> -) 0005 includes only the changes from running autoreconf (i.e. no manual code<br>
> changes!)<br>
><br>
><br>
> The backend uses libsnmp (configure check added!) to optionally auto-detect a<br>
> LAN-connected magicolor device. I have set the timeout to a very low value (a<br>
> little more than 1 second!), so all systems without a magicolor scanning in<br>
> the network are not held up by the SNMP auto-detection of the magicolor<br>
> devices.<br>
> On the other hand, if the network is really slow, this might mean that we miss<br>
> an SNMP response that takes longer than 1 second!<br>
><br>
> What do you think of this backend?<br>
><br>
> Cheers,<br>
> Reinhold<br>
> --<br>
> ------------------------------------------------------------------<br>
> Reinhold Kainhofer, <a href="mailto:reinhold@kainhofer.com">reinhold@kainhofer.com</a>, <a href="http://reinhold.kainhofer.com/" target="_blank">http://reinhold.kainhofer.com/</a><br>
> * Financial & Actuarial Math., Vienna Univ. of Technology, Austria<br>
> * <a href="http://www.fam.tuwien.ac.at/" target="_blank">http://www.fam.tuwien.ac.at/</a>, DVR: 0005886<br>
> * LilyPond, Music typesetting, <a href="http://www.lilypond.org" target="_blank">http://www.lilypond.org</a><br>
><br>
> --<br>
> sane-devel mailing list: <a href="mailto:sane-devel@lists.alioth.debian.org">sane-devel@lists.alioth.debian.org</a><br>
> <a href="http://lists.alioth.debian.org/mailman/listinfo/sane-devel" target="_blank">http://lists.alioth.debian.org/mailman/listinfo/sane-devel</a><br>
> Unsubscribe: Send mail with subject "unsubscribe your_password"<br>
> to <a href="mailto:sane-devel-request@lists.alioth.debian.org">sane-devel-request@lists.alioth.debian.org</a><br>
><br>
<br>
<br>
<br>
</div></div><div class="im">--<br>
"The truth is an offense, but not a sin"<br>
<br>
--<br>
</div><div><div></div><div class="h5">sane-devel mailing list: <a href="mailto:sane-devel@lists.alioth.debian.org">sane-devel@lists.alioth.debian.org</a><br>
<a href="http://lists.alioth.debian.org/mailman/listinfo/sane-devel" target="_blank">http://lists.alioth.debian.org/mailman/listinfo/sane-devel</a><br>
Unsubscribe: Send mail with subject "unsubscribe your_password"<br>
to <a href="mailto:sane-devel-request@lists.alioth.debian.org">sane-devel-request@lists.alioth.debian.org</a><br>
</div></div></blockquote></div><br></div></div>