Sorry - This is Solaris 9 X86, not Solaris 8. ----- Original Message ----- From: "David Price" <[email protected]> To: <sane-devel at lists.alioth.debian.org> Cc: <dprice at dentfirst.com> Sent: Thursday, September 24, 2009 12:52 PM Subject: SANE compile problem on Solaris
> 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. > >
