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 "getopt.h", it should be #include "../include/lgetopt.h".
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. Chris On Thu, Sep 24, 2009 at 11:52 AM, David Price <djprice at mindspring.com>wrote: > SANE Developers, > > 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. > > Here is what I have done...... > > First set env as follows: > LD_LIBRARY_PATH=/usr/sfw/lib:$LD_LIBRARY_PATH > CFLAGS="-I/usr/sfw/include" > CPPFLAGS="-I/usr/sfw/include" > LDFLAGS="-L/usr/sfw/lib" > export LD_LIBRARY_PATH CFLAGS CPPFLAGS LDFLAGS > > Next run config as follows: > ./configure --prefix=/opt/sane --disable-fork-process > > Finally run make. The compile fails on not finding getopt.c. Here is the > failure: > (cd .libs && rm -f liblib.la && ln -s ../liblib.la liblib.la) > /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 > 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 > getopt.c:121:31: ../include/getopt.h: No such file or directory > getopt.c:401: warning: unused parameter 'argc' > getopt.c:402: warning: unused parameter 'argv' > getopt.c: In function `_getopt_internal': > getopt.c:668: error: dereferencing pointer to incomplete type > getopt.c:668: error: increment of pointer to unknown structure > getopt.c:668: error: arithmetic on pointer to an incomplete type > getopt.c:669: error: dereferencing pointer to incomplete type > getopt.c:672: error: dereferencing pointer to incomplete type > getopt.c:687: error: dereferencing pointer to incomplete type > getopt.c:687: error: dereferencing pointer to incomplete type > getopt.c:688: error: dereferencing pointer to incomplete type > getopt.c:688: error: dereferencing pointer to incomplete type > getopt.c:689: error: dereferencing pointer to incomplete type > getopt.c:689: error: dereferencing pointer to incomplete type > getopt.c:731: error: dereferencing pointer to incomplete type > getopt.c:752: error: dereferencing pointer to incomplete type > getopt.c:766: error: dereferencing pointer to incomplete type > getopt.c:785: error: dereferencing pointer to incomplete type > getopt.c:789: error: dereferencing pointer to incomplete type > getopt.c:818: error: dereferencing pointer to incomplete type > getopt.c:825: error: dereferencing pointer to incomplete type > getopt.c:827: error: dereferencing pointer to incomplete type > getopt.c:827: error: dereferencing pointer to incomplete type > getopt.c:830: error: dereferencing pointer to incomplete type > getopt.c:1006: error: dereferencing pointer to incomplete type > getopt.c:1006: error: increment of pointer to unknown structure > getopt.c:1006: error: arithmetic on pointer to an incomplete type > getopt.c:1007: error: dereferencing pointer to incomplete type > getopt.c:1009: error: dereferencing pointer to incomplete type > getopt.c:1060: error: dereferencing pointer to incomplete type > getopt.c:1083: error: dereferencing pointer to incomplete type > getopt.c:1091: error: dereferencing pointer to incomplete type > getopt.c:1126: error: dereferencing pointer to incomplete type > getopt.c:1128: error: dereferencing pointer to incomplete type > getopt.c:1128: error: dereferencing pointer to incomplete type > getopt.c:1131: error: dereferencing pointer to incomplete type > make[1]: *** [getopt.lo] Error 1 > make[1]: Leaving directory > `/export/home/price/download/sane/sane-backends-1.0.20/lib' > make: *** [all-recursive] Error 1 > > > 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. > > Any assistance and recommendations would be appreciated. > > > > -- > sane-devel mailing list: sane-devel at lists.alioth.debian.org > http://lists.alioth.debian.org/mailman/listinfo/sane-devel > Unsubscribe: Send mail with subject "unsubscribe your_password" > to sane-devel-request at lists.alioth.debian.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20090924/59351003/attachment.htm>