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