<HEAD>
<STYLE>body{font-family: Geneva,Arial,Helvetica,sans-serif;font-size:9pt;background-color: #ffffff;color: black;}p{margin:0px}</STYLE>

<META name=GENERATOR content="MSHTML 8.00.6001.18812"></HEAD>
<BODY id=compText>
<P>Chris,</P>
<P>&nbsp;</P>
<P>Thanks for your reponse and suggestions.&nbsp; I have tried both suggestions, both I still cannot get it compiled but with different errors:</P>
<P>&nbsp;</P>
<P>First, I downloaded the latest backend version from git, it made it a lot further in the build but then failed with:<BR>make[2]: Entering directory `/export/home/price/download/sane/git/install.git20090925/sane-backends-git20090925/backend'<BR>/bin/bash ../libtool --silent --tag=CC&nbsp;&nbsp; --mode=link gcc&nbsp; -I/usr/sfw/include -W -Wall -Wcast-align -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes -pedantic -Wl,-z,defs -rpath '/opt/sane/lib/sane' -version-number 1:0:21 -module -L/usr/sfw/lib -o libsane-epjitsu.la&nbsp; libsane_epjitsu_la-epjitsu-s.lo ../lib/liblib.la libepjitsu.la ../sanei/sanei_init_debug.lo ../sanei/sanei_constrain_value.lo ../sanei/sanei_config.lo&nbsp; sane_strstatus.lo ../sanei/sanei_usb.lo -lm&nbsp;&nbsp; <BR>Undefined&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; first referenced<BR>&nbsp;symbol&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; in file<BR>roundf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ./.libs/libepjitsu.a(libepjitsu_la-epjitsu.o)<BR>ld: fatal: Symbol referencing errors. No output written to .libs/libsane-epjitsu.so.1.0.21<BR>collect2: ld returned 1 exit status<BR>make[2]: *** [libsane-epjitsu.la] Error 1<BR>make[2]: Leaving directory `/export/home/price/download/sane/git/install.git20090925/sane-backends-git20090925/backend'<BR>make[1]: *** [all] Error 2<BR>make[1]: Leaving directory `/export/home/price/download/sane/git/install.git20090925/sane-backends-git20090925/backend'<BR>make: *** [all-recursive] Error 1<BR></P>
<P>&nbsp;</P>
<P>Next, I make the changes to version 1.0.20 you noted (along with some other corrections), however, I still cannot get this compiled either.&nbsp; It now fails as follows:</P>
<P>/bin/bash ../libtool --tag=CC&nbsp;&nbsp; --mode=link gcc&nbsp; -I/usr/sfw/include -W -Wall&nbsp; -L/usr/sfw/lib -o sane-desc sane-desc.o ../sanei/libsanei.la ../lib/liblib.la <BR>gcc -I/usr/sfw/include -W -Wall -o sane-desc sane-desc.o&nbsp; -L/usr/sfw/lib ../sanei/.libs/libsanei.a ../lib/.libs/liblib.a&nbsp; <BR>Undefined&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; first referenced<BR>&nbsp;symbol&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; in file<BR>getopt_long&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sane-desc.o<BR>ld: fatal: Symbol referencing errors. No output written to sane-desc<BR>collect2: ld returned 1 exit status<BR>make[2]: *** [sane-desc] Error 1<BR>make[2]: Leaving directory `/export/home/price/download/sane/sane-backends-1.0.20/tools'<BR>make[1]: *** [all] Error 2<BR>make[1]: Leaving directory `/export/home/price/download/sane/sane-backends-1.0.20/tools'<BR>make: *** [all-recursive] Error 1</P>
<P>&nbsp;</P>
<P>I also tried the earlier git but that has the same getopt problem as version 1.0.20.<BR></P>
<P>So, this is confusing - what am I not doing properly to get this build and working on Solaris 9 X86?<BR></P>
<P>David</P>
<BLOCKQUOTE style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 0px"><BR><ZZZHTML><ZZZHEAD><ZZZMETA content="text/html; charset=iso-8859-1" http-equiv="Content-Type"><ZZZMETA content="MSHTML 8.00.6001.18812" name="GENERATOR">
<STYLE></STYLE>
</ZZZHEAD><ZZZBODY bgColor="#ffffff">
<DIV>&nbsp;</DIV>
<DIV style="FONT: 10pt arial">----- Original Message ----- 
<DIV style="BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> <A title=chris@cnpbagwell.com href="mailto:chris@cnpbagwell.com">Chris Bagwell</A> </DIV>
<DIV><B>To:</B> <A title=djprice@mindspring.com href="mailto:djprice@mindspring.com">David Price</A> </DIV>
<DIV><B>Cc:</B> <A title=sane-devel@lists.alioth.debian.org href="mailto:sane-devel@lists.alioth.debian.org">sane-devel@lists.alioth.debian.org</A> ; <A title=dprice@dentfirst.com href="mailto:dprice@dentfirst.com">dprice@dentfirst.com</A> </DIV>
<DIV><B>Sent:</B> Thursday, September 24, 2009 1:28 PM</DIV>
<DIV><B>Subject:</B> Re: [sane-devel] SANE compile problem on Solaris</DIV></DIV>
<DIV><BR></DIV>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.&nbsp; Also, I think similar bug in getopt1.c... Instead of #include "getopt.h", it should be #include "../include/lgetopt.h".<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 style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex" class=gmail_quote>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. &nbsp;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="-I/usr/sfw/include"<BR>CPPFLAGS="-I/usr/sfw/include"<BR>LDFLAGS="-L/usr/sfw/lib"<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. &nbsp;The compile fails on not finding getopt.c. &nbsp;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 &nbsp; --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 &nbsp; &nbsp; -DPATH_SANE_DATA_DIR=/opt/sane/share &nbsp; &nbsp;-DPATH_SANE_LOCK_DIR=/opt/sane/var/lock/sane &nbsp; &nbsp; &nbsp;-DV_MAJOR=1 -DV_MINOR=0 &nbsp;-I/usr/sfw/include -W -Wall -MT getopt.lo -MD -MP -MF .deps/getopt.Tpo -c -o getopt.lo getopt.c<BR>&nbsp;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 &nbsp;-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 'argc'<BR>getopt.c:402: warning: unused parameter 'argv'<BR>getopt.c: In function `_getopt_internal':<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'<BR>make: *** [all-recursive] Error 1<BR><BR><BR>Can SANE work on Solaris 9 X86? &nbsp;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 "unsubscribe your_password"<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; to <A href="mailto:sane-devel-request@lists.alioth.debian.org">sane-devel-request@lists.alioth.debian.org</A><BR></FONT></BLOCKQUOTE></DIV><BR></ZZZBODY></ZZZHTML></BLOCKQUOTE></BODY><pre>

</pre>