<br><br><div class="gmail_quote">On Thu, Dec 3, 2009 at 3:34 PM, Nicolas Martin <span dir="ltr">&lt;<a href="mailto:nicolas0martin@gmail.com">nicolas0martin@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;">
<div><div class="h5"><br>
&gt;<br>
&gt; Nicolas,  I&#39;m curious why you didn&#39;t recommend the following instead:<br>
&gt;<br>
&gt; make distclean<br>
&gt; ./configure --enable-pthread<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div>Yes Chris, you are right, I did not mention that, this adds the correct<br>
-lpthread option to the link statement, and should solve the problem<br>
hereunder.<br>
<br>
However, the<br>
<br>
export CFLAGS=&quot;-DUSE_PTHREAD&quot;<br>
<br>
statement is necessary for me, before running the ./configure ... ,<br>
otherwise, it will compile with the forked option, as the USE_PTHREAD<br>
flag stays unset.<br>
<br></blockquote><div><br><br>So your saying that, for you, running &quot;make distclean; ./configure --enable-pthread; make&quot; doesn&#39;t correctly have USE_PTHREAD defined?<br><br>If so, do you mind emailing me your config.log and include/src/config.h?  I&#39;ll see what I can do to get it working.<br>
<br>It works for me... a quick code review shows snapscan-usb.c a little suspicious because its not including ../include/sane/config.h but is checking for USE_PTHREAD.  I didn&#39;t follow its include chain very closely though since we are talking about pixma.<br>
<br>Thanks,<br>Chris<br></div></div>