You may get further by editing lib/getopt.c and changing that line 121 to look for ../include/lgetopt.h instead of ../include/getopt.h.  Also, I think similar bug in getopt1.c... Instead of #include &quot;getopt.h&quot;, it should be #include &quot;../include/lgetopt.h&quot;.<br>
<br>Or you can grab latest sane-backends version from git since it contains these fixes already. Also, it contains a few bug fixes for network scanners that you can benefit from as well.<br><br>Chris<br><br><div class="gmail_quote">
On Thu, Sep 24, 2009 at 11:52 AM, David Price <span dir="ltr">&lt;<a href="mailto:djprice@mindspring.com">djprice@mindspring.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;">
SANE Developers,<br>
<br>
I wish to use SANE on my Solaris 8 X86 server to allow for scanner assess to a network IP scanner device.  I have downloaded version 1.0.20 but cannot get it to build.<br>
<br>
Here is what I have done......<br>
<br>
First set env as follows:<br>
LD_LIBRARY_PATH=/usr/sfw/lib:$LD_LIBRARY_PATH<br>
CFLAGS=&quot;-I/usr/sfw/include&quot;<br>
CPPFLAGS=&quot;-I/usr/sfw/include&quot;<br>
LDFLAGS=&quot;-L/usr/sfw/lib&quot;<br>
export LD_LIBRARY_PATH CFLAGS CPPFLAGS LDFLAGS<br>
<br>
Next run config as follows:<br>
./configure --prefix=/opt/sane --disable-fork-process<br>
<br>
Finally run make.  The compile fails on not finding getopt.c.  Here is the failure:<br>
(cd .libs &amp;&amp; rm -f <a href="http://liblib.la" target="_blank">liblib.la</a> &amp;&amp; ln -s ../<a href="http://liblib.la" target="_blank">liblib.la</a> <a href="http://liblib.la" target="_blank">liblib.la</a>)<br>

/bin/bash ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include/sane -I/usr/local/include -I. -I../include -I../include -I/usr/sfw/include -D_REENTRANT -DPATH_SANE_CONFIG_DIR=/opt/sane/etc/sane.d     -DPATH_SANE_DATA_DIR=/opt/sane/share    -DPATH_SANE_LOCK_DIR=/opt/sane/var/lock/sane      -DV_MAJOR=1 -DV_MINOR=0  -I/usr/sfw/include -W -Wall -MT getopt.lo -MD -MP -MF .deps/getopt.Tpo -c -o getopt.lo getopt.c<br>

 gcc -DHAVE_CONFIG_H -I. -I../include/sane -I/usr/local/include -I. -I../include -I../include -I/usr/sfw/include -D_REENTRANT -DPATH_SANE_CONFIG_DIR=/opt/sane/etc/sane.d -DPATH_SANE_DATA_DIR=/opt/sane/share -DPATH_SANE_LOCK_DIR=/opt/sane/var/lock/sane -DV_MAJOR=1 -DV_MINOR=0 -I/usr/sfw/include -W -Wall -MT getopt.lo -MD -MP -MF .deps/getopt.Tpo -c getopt.c  -fPIC -DPIC -o .libs/getopt.o<br>

getopt.c:121:31: ../include/getopt.h: No such file or directory<br>
getopt.c:401: warning: unused parameter &#39;argc&#39;<br>
getopt.c:402: warning: unused parameter &#39;argv&#39;<br>
getopt.c: In function `_getopt_internal&#39;:<br>
getopt.c:668: error: dereferencing pointer to incomplete type<br>
getopt.c:668: error: increment of pointer to unknown structure<br>
getopt.c:668: error: arithmetic on pointer to an incomplete type<br>
getopt.c:669: error: dereferencing pointer to incomplete type<br>
getopt.c:672: error: dereferencing pointer to incomplete type<br>
getopt.c:687: error: dereferencing pointer to incomplete type<br>
getopt.c:687: error: dereferencing pointer to incomplete type<br>
getopt.c:688: error: dereferencing pointer to incomplete type<br>
getopt.c:688: error: dereferencing pointer to incomplete type<br>
getopt.c:689: error: dereferencing pointer to incomplete type<br>
getopt.c:689: error: dereferencing pointer to incomplete type<br>
getopt.c:731: error: dereferencing pointer to incomplete type<br>
getopt.c:752: error: dereferencing pointer to incomplete type<br>
getopt.c:766: error: dereferencing pointer to incomplete type<br>
getopt.c:785: error: dereferencing pointer to incomplete type<br>
getopt.c:789: error: dereferencing pointer to incomplete type<br>
getopt.c:818: error: dereferencing pointer to incomplete type<br>
getopt.c:825: error: dereferencing pointer to incomplete type<br>
getopt.c:827: error: dereferencing pointer to incomplete type<br>
getopt.c:827: error: dereferencing pointer to incomplete type<br>
getopt.c:830: error: dereferencing pointer to incomplete type<br>
getopt.c:1006: error: dereferencing pointer to incomplete type<br>
getopt.c:1006: error: increment of pointer to unknown structure<br>
getopt.c:1006: error: arithmetic on pointer to an incomplete type<br>
getopt.c:1007: error: dereferencing pointer to incomplete type<br>
getopt.c:1009: error: dereferencing pointer to incomplete type<br>
getopt.c:1060: error: dereferencing pointer to incomplete type<br>
getopt.c:1083: error: dereferencing pointer to incomplete type<br>
getopt.c:1091: error: dereferencing pointer to incomplete type<br>
getopt.c:1126: error: dereferencing pointer to incomplete type<br>
getopt.c:1128: error: dereferencing pointer to incomplete type<br>
getopt.c:1128: error: dereferencing pointer to incomplete type<br>
getopt.c:1131: error: dereferencing pointer to incomplete type<br>
make[1]: *** [getopt.lo] Error 1<br>
make[1]: Leaving directory `/export/home/price/download/sane/sane-backends-1.0.20/lib&#39;<br>
make: *** [all-recursive] Error 1<br>
<br>
<br>
Can SANE work on Solaris 9 X86?  From what I have researched, I must use Solaris 10 to get USB lib support, however, I will not be using USB scanners - I wish to use remote network scanners via IP accessed via a servlet.<br>

<br>
Any assistance and recommendations would be appreciated.<br>
<font color="#888888"><br>
<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 &quot;unsubscribe your_password&quot;<br>
             to <a href="mailto:sane-devel-request@lists.alioth.debian.org">sane-devel-request@lists.alioth.debian.org</a><br>
</font></blockquote></div><br>