Sorry, meant to reply to mailing list.<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Chris Bagwell</b> <span dir="ltr">&lt;<a href="mailto:chris@cnpbagwell.com">chris@cnpbagwell.com</a>&gt;</span><br>
Date: Wed, Dec 2, 2009 at 7:00 PM<br>Subject: Re: [sane-devel] &quot;sane_read: Device busy&quot; with Canon PIXMA MX310 and sane 1.0.20-4ubuntu3<br>To: Rogier Eggers &lt;<a href="mailto:rogiereggers@gmail.com">rogiereggers@gmail.com</a>&gt;<br>
<br><br><br><br><div class="gmail_quote"><div class="im">On Wed, Dec 2, 2009 at 5:37 PM, Rogier Eggers <span dir="ltr">&lt;<a href="mailto:rogiereggers@gmail.com" target="_blank">rogiereggers@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Nicolas,<br><br>Ok, so indeed, the git version without pthtread works flawlessy (see attached log). However, I so far didn&#39;t manage to build sane-backends with pthread. After exactly following your instructions, I get the message below. This is with no ubuntu sane packages installed. Can anybody tell me which dev package I miss to build sane with pthread?<br>

</blockquote></div><div><br>Sorry, I can&#39;t answer name of debian pthread-devel package but I think you also have some sort of configure error.  I don&#39;t see the &quot;-lpthread&quot; during the link.  Can you reverify that you did the following line?<br>

<br>export LIBS=&quot;-lpthread&quot;<br><br>If that doesn&#39;t work then try adding this after the &quot;make distclean&quot; step but before configure step:<br><br>export PTHREAD_LIBS=&quot;-lpthread&quot;<br><br>Nicolas,  I&#39;m curious why you didn&#39;t recommend the following instead:<br>

<br>make distclean<br>./configure --enable-pthread<br><br>Does that not work correctly under debian with git?  Anything I can do to help get that working?<br><br>Perhaps it was just some past confusion in debian from having to use &quot;--disable-fork&quot; to get pthread working and that not being obvious?<br>
<font color="#888888">
<br>Chris<br> <br></font></div><div><div></div><div class="h5"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Regards,<br><br>Rogier<br><br><br>Error message during build process:<br><br>[snip]<br><br>rm -fr  .libs/libsanei.a .libs/<a href="http://libsanei.la" target="_blank">libsanei.la</a><br>ar cru .libs/libsanei.a .libs/sanei_ab306.o .libs/sanei_constrain_value.o .libs/sanei_init_debug.o .libs/sanei_net.o .libs/sanei_wire.o .libs/sanei_codec_ascii.o .libs/sanei_codec_bin.o .libs/sanei_scsi.o .libs/sanei_config.o .libs/sanei_config2.o .libs/sanei_pio.o .libs/sanei_pa4s2.o .libs/sanei_auth.o .libs/sanei_usb.o .libs/sanei_thread.o .libs/sanei_pv8630.o .libs/sanei_pp.o .libs/sanei_lm983x.o .libs/sanei_access.o .libs/sanei_tcp.o .libs/sanei_udp.o .libs/sanei_magic.o .libs/sanei_jpeg.o<br>


ranlib .libs/libsanei.a<br>creating <a href="http://libsanei.la" target="_blank">libsanei.la</a><br>(cd .libs &amp;&amp; rm -f <a href="http://libsanei.la" target="_blank">libsanei.la</a> &amp;&amp; ln -s ../<a href="http://libsanei.la" target="_blank">libsanei.la</a> <a href="http://libsanei.la" target="_blank">libsanei.la</a>)<br>


make[1]: Leaving directory `/home/rogier/Software/Src/sane-backends-git20091201/sanei&#39;<br>Making all in backend<br>make[1]: Entering directory `/home/rogier/Software/Src/sane-backends-git20091201/backend&#39;<br>make  all-am<br>


make[2]: Entering directory `/home/rogier/Software/Src/sane-backends-git20091201/backend&#39;<br>/bin/bash ../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=&quot;/usr/lib/sane&quot; -DBACKEND_NAME=dll -DPATH_SANE_CONFIG_DIR=/etc/sane.d       -DPATH_SANE_DATA_DIR=/usr/share       -DPATH_SANE_LOCK_DIR=/var/lock/sane       -DV_MAJOR=1 -DV_MINOR=0  -DUSE_PTHREAD -W -Wall -Wcast-align -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes -pedantic -ansi -MT libdll_la-dll.lo -MD -MP -MF .deps/libdll_la-dll.Tpo -c -o libdll_la-dll.lo `test -f &#39;dll.c&#39; || echo &#39;./&#39;`dll.c<br>


dll.c: In function ‘load’:<br>dll.c:535: warning: ISO C forbids conversion of object pointer to function pointer type<br>dll.c:560: warning: ISO C forbids conversion of object pointer to function pointer type<br>mv -f .deps/libdll_la-dll.Tpo .deps/libdll_la-dll.Plo<br>


/bin/bash ../libtool --silent --tag=CC   --mode=link gcc  -DUSE_PTHREAD -W -Wall -Wcast-align -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes -pedantic -ansi -Wl,-z,defs  -o <a href="http://libdll.la" target="_blank">libdll.la</a>  libdll_la-dll.lo  <br>


/bin/bash ../libtool --silent --tag=CC   --mode=link gcc  -DUSE_PTHREAD -W -Wall -Wcast-align -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes -pedantic -ansi -Wl,-z,defs -rpath &#39;/usr/lib&#39; -version-number 1:0:21  -o <a href="http://libsane.la" target="_blank">libsane.la</a> -rpath /usr/lib libsane_la-dll-s.lo ../lib/<a href="http://liblib.la" target="_blank">liblib.la</a>  <a href="http://libdll.la" target="_blank">libdll.la</a> sane_strstatus.lo ../sanei/sanei_init_debug.lo ../sanei/sanei_constrain_value.lo ../sanei/sanei_config.lo ../sanei/sanei_config2.lo ../sanei/sanei_usb.lo ../sanei/sanei_scsi.lo ../sanei/sanei_pv8630.lo ../sanei/sanei_pp.lo ../sanei/sanei_thread.lo  ../sanei/sanei_lm983x.lo ../sanei/sanei_access.lo ../sanei/sanei_net.lo ../sanei/sanei_wire.lo ../sanei/sanei_codec_bin.lo ../sanei/sanei_pa4s2.lo ../sanei/sanei_ab306.lo ../sanei/sanei_pio.lo ../sanei/sanei_tcp.lo ../sanei/sanei_udp.lo -ldl   -lm  -lieee1284  -ltiff  -ljpeg  -lgphoto2 -lgphoto2_port -lexif -lm -lusb  -lusb     <br>


../sanei/.libs/sanei_thread.o: In function `sanei_thread_kill&#39;:<br>sanei_thread.c:(.text+0xe5): undefined reference to `pthread_cancel&#39;<br>../sanei/.libs/sanei_thread.o: In function `sanei_thread_begin&#39;:<br>sanei_thread.c:(.text+0x302): undefined reference to `pthread_create&#39;<br>


../sanei/.libs/sanei_thread.o: In function `sanei_thread_sendsig&#39;:<br>sanei_thread.c:(.text+0x3ac): undefined reference to `pthread_kill&#39;<br>../sanei/.libs/sanei_thread.o: In function `sanei_thread_waitpid&#39;:<br>


sanei_thread.c:(.text+0x3fa): undefined reference to `pthread_join&#39;<br>sanei_thread.c:(.text+0x484): undefined reference to `pthread_detach&#39;<br>collect2: ld returned 1 exit status<br>make[2]: *** [<a href="http://libsane.la" target="_blank">libsane.la</a>] Error 1<br>


make[2]: Leaving directory `/home/rogier/Software/Src/sane-backends-git20091201/backend&#39;<br>make[1]: *** [all] Error 2<br>make[1]: Leaving directory `/home/rogier/Software/Src/sane-backends-git20091201/backend&#39;<br>


make: *** [all-recursive] Error 1<br><br><br></blockquote></div></div></div>
</div><br>