I'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"><<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;">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 <<a href="mailto:shakerlxxv@gmail.com">shakerlxxv@gmail.com</a>> wrote:<br>
> I'm having some trouble compiling with these changes committed. Below is the<br>
> error I'm getting. I'll admit I haven't actually looked into the source code<br>
> to confirm the change comes from this set of commits, but it seemed like it<br>
> would be related. I'm running Fedora 13, and I've been able to build from<br>
> the latest source as recent as 2011.01.12.<br>
> Thanks,<br>
> Brian ..<br>
><br>
> /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H<br>
> -I. -I../include/sane -I/usr/local/include -I. -I. -I../include -I../include<br>
> -DLIBDIR="/home/bshaver/test-root/lib/sane" -DBACKEND_NAME=magicolor<br>
> -DPATH_SANE_CONFIG_DIR=/home/bshaver/test-root/etc/sane.d<br>
> -DPATH_SANE_DATA_DIR=/home/bshaver/test-root/share<br>
> -DPATH_SANE_LOCK_DIR=/home/bshaver/test-root/var/lock/sane -DV_MAJOR=1<br>
> -DV_MINOR=0 -g -O2 -W -Wall -Wcast-align -Wcast-qual -Wmissing-declarations<br>
> -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes<br>
> -pedantic -ansi -MT libmagicolor_la-magicolor.lo -MD -MP -MF<br>
> .deps/libmagicolor_la-magicolor.Tpo -c -o libmagicolor_la-magicolor.lo `test<br>
> -f 'magicolor.c' || echo './'`magicolor.c<br>
> magicolor.c: In function 'dump_hex_buffer_dense':<br>
> magicolor.c:400: warning: format '%04x' expects type 'unsigned int', but<br>
> argument 3 has type 'size_t'<br>
> magicolor.c: In function 'mc_send':<br>
> magicolor.c:492: warning: format '%d' expects type 'int', but argument 3 has<br>
> type 'size_t'<br>
> magicolor.c: In function 'cmd_start_scan':<br>
> magicolor.c:680: warning: pointer of type 'void *' used in arithmetic<br>
> magicolor.c:680: warning: dereferencing 'void *' pointer<br>
> magicolor.c:680: error: invalid use of void expression<br>
> magicolor.c:680: warning: pointer of type 'void *' used in arithmetic<br>
> magicolor.c:680: warning: dereferencing 'void *' pointer<br>
> magicolor.c:680: error: invalid use of void expression<br>
> magicolor.c:680: warning: left-hand operand of comma expression has no<br>
> effect<br>
> magicolor.c:680: warning: pointer of type 'void *' used in arithmetic<br>
> magicolor.c:680: warning: dereferencing 'void *' pointer<br>
> magicolor.c:680: error: invalid use of void expression<br>
> magicolor.c:680: warning: left-hand operand of comma expression has no<br>
> effect<br>
> magicolor.c:680: warning: pointer of type 'void *' used in arithmetic<br>
> magicolor.c:680: warning: dereferencing 'void *' pointer<br>
> magicolor.c:680: error: invalid use of void expression<br>
> magicolor.c:680: warning: left-hand operand of comma expression has no<br>
> effect<br>
> magicolor.c: In function 'cmd_read_data':<br>
> magicolor.c:921: warning: pointer of type 'void *' used in arithmetic<br>
> magicolor.c:921: warning: dereferencing 'void *' pointer<br>
> magicolor.c:921: error: invalid use of void expression<br>
> magicolor.c:921: warning: pointer of type 'void *' used in arithmetic<br>
> magicolor.c:921: warning: dereferencing 'void *' pointer<br>
> magicolor.c:921: error: invalid use of void expression<br>
> magicolor.c:921: warning: left-hand operand of comma expression has no<br>
> effect<br>
> magicolor.c:921: warning: pointer of type 'void *' used in arithmetic<br>
> magicolor.c:921: warning: dereferencing 'void *' pointer<br>
> magicolor.c:921: error: invalid use of void expression<br>
> magicolor.c:921: warning: left-hand operand of comma expression has no<br>
> effect<br>
> magicolor.c:921: warning: pointer of type 'void *' used in arithmetic<br>
> magicolor.c:921: warning: dereferencing 'void *' pointer<br>
> magicolor.c:921: error: invalid use of void expression<br>
> magicolor.c:921: warning: left-hand operand of comma expression has no<br>
> effect<br>
> magicolor.c: In function 'mc_network_discovery':<br>
> magicolor.c:1868: warning: unused parameter 'host'<br>
> make[2]: *** [libmagicolor_la-magicolor.lo] Error 1<br>
> make[2]: Leaving directory<br>
> `/home/bshaver/Documents/Projects/sane-backends/backend'<br>
> make[1]: *** [all] Error 2<br>
> make[1]: Leaving directory<br>
> `/home/bshaver/Documents/Projects/sane-backends/backend'<br>
> make: *** [all-recursive] Error 1<br>
><br>
> On Wed, Jan 19, 2011 at 8:38 AM, m. allan noah <<a href="mailto:kitno455@gmail.com">kitno455@gmail.com</a>> wrote:<br>
>><br>
>> 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>
>><br>
>> allan<br>
>><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<br>
>> > MINOLTA<br>
>> > magicolor 1690MF devices (possibly also for other devices, but I don't<br>
>> > have<br>
>> > access to any other KONICA MINOLTA device that uses the same protocol --<br>
>> > 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<br>
>> > 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<br>
>> > 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<br>
>> > manual code<br>
>> > changes!)<br>
>> ><br>
>> ><br>
>> > The backend uses libsnmp (configure check added!) to optionally<br>
>> > auto-detect a<br>
>> > LAN-connected magicolor device. I have set the timeout to a very low<br>
>> > value (a<br>
>> > little more than 1 second!), so all systems without a magicolor scanning<br>
>> > 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<br>
>> > 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>,<br>
>> > <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>
>> --<br>
>> "The truth is an offense, but not a sin"<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>
<br>
</div></div>--<br>
<div><div></div><div class="h5">"The truth is an offense, but not a sin"<br>
</div></div></blockquote></div><br></div>