1141cc406Sopenharmony_ciUNIXWARE PORT of SANE - HOWTO build and what you need to run 2141cc406Sopenharmony_ci 3141cc406Sopenharmony_ciYou need a sane SCSI driver to run SANE on Unixware 2.x. There is at 4141cc406Sopenharmony_cileast one such driver: the sane driver by R=I+S. 5141cc406Sopenharmony_ci 6141cc406Sopenharmony_ciThe Unixware sane driver is a binary loadable module driver for UW2.x. 7141cc406Sopenharmony_ciPlease send Email to wolfgang@rapp-informatik.de to receive. 8141cc406Sopenharmony_ci 9141cc406Sopenharmony_ciWhat you need to build xane on Unixware 2.x 10141cc406Sopenharmony_ci- gnu make 11141cc406Sopenharmony_ci 12141cc406Sopenharmony_ciYou don't need gcc. All is build with the standard Unixware cc and 13141cc406Sopenharmony_cilibs!! 14141cc406Sopenharmony_ci 15141cc406Sopenharmony_ciFor the X-frontends xscanimage and xsane (separately distributed) you need 16141cc406Sopenharmony_cilibs like libgtk libgimp and the image libs for jpeg, tiff and png. It is 17141cc406Sopenharmony_cialso good to have gettext with libintl installed. Most of the libs are 18141cc406Sopenharmony_ciavailable on the Skunkware CD's from SCO in pkgadd format. If you build the 19141cc406Sopenharmony_cifrontends with this libs gimp plugin is also supported by xscanimage and 20141cc406Sopenharmony_cixsane. Latest xsane version tested was 0.48. 21141cc406Sopenharmony_ci 22141cc406Sopenharmony_ciWith the following configure should run an build shared libs with 23141cc406Sopenharmony_cilibtool 1.3.4 24141cc406Sopenharmony_ci 25141cc406Sopenharmony_ciLD_RUN_PATH=/usr/local/lib CPPFLAGS="-I/usr/local/include -I/isr/X/include" CFLAGS="-I/usr/local/include -I/usr/X/include 26141cc406Sopenharmony_ci-I/usr/ucbinclude -L/usr/local/lib -L/usr/ucblib -l ucb" LIBS="-lsocket -lnsl -lgen -I/opt/include -L/usr/ucblib -lucb" ./configure 27141cc406Sopenharmony_ci 28141cc406Sopenharmony_ciAfter running configure you have to edit the generated file libtool 29141cc406Sopenharmony_ci 30141cc406Sopenharmony_ciAppend to the line 31141cc406Sopenharmony_ciarchive_cmds="\$LD -G -o \$lib \$libobjs \$deplibs \$linkopts 32141cc406Sopenharmony_ci 33141cc406Sopenharmony_ciso that it looks like this. 34141cc406Sopenharmony_ciarchive_cmds="\$LD -G -o \$lib \$libobjs \$deplibs \$linkopts -B bind_now -L/usr/local/lib -lintl -L/usr/ucblib -lucb -lm" 35141cc406Sopenharmony_ci 36141cc406Sopenharmony_ciThis is a must to link the libucb.a , libintl.a in when the sane libs 37141cc406Sopenharmony_ciare build.It's also necessary for mathematic lib -lm . Not doing this 38141cc406Sopenharmony_ciwill bring runtime errors like missimg usleep or pow function. 39141cc406Sopenharmony_ci 40141cc406Sopenharmony_ciATTENTION:!!! libucb.a of Unixware 2.x has a buggy readdir function so 41141cc406Sopenharmony_ciit is recommended to remove readdir.o from libucb.a with ar -d 42141cc406Sopenharmony_cireaddir.o libucb.a Often used and needed functions from libucb.a are 43141cc406Sopenharmony_cistrncasecmp or getpagesize. 44141cc406Sopenharmony_ci 45141cc406Sopenharmony_ciIf you use -I/usr/ucbinclude it is also a good idea to move 46141cc406Sopenharmony_ci/usr/ucbinlcude/unistd.h to another file, because it will be included 47141cc406Sopenharmony_cifirst and some sources will not compile. 48141cc406Sopenharmony_ci 49141cc406Sopenharmony_ciThen you can run make with GNU make. 50141cc406Sopenharmony_ci 51141cc406Sopenharmony_ciAfter this say su and then it's good to say 52141cc406Sopenharmony_ciLD_RUN_PATH=/usr/local/lib export LD_RUN_PATH 53141cc406Sopenharmony_ci 54141cc406Sopenharmony_ciafter this you can install with 55141cc406Sopenharmony_cimake install 56141cc406Sopenharmony_ci 57141cc406Sopenharmony_ciTested on Unixware 2.0.x with Umax Astra 1220S and HP C5100A with 58141cc406Sopenharmony_cisane-1.0.1. With Microtek backend earlier on sane-0.74. 59141cc406Sopenharmony_ci 60141cc406Sopenharmony_ciIf you use the net backend you do not need the Unixware sanedrv. 61141cc406Sopenharmony_ci 62141cc406Sopenharmony_ciThe driver is a shareware product. 63141cc406Sopenharmony_ci 64141cc406Sopenharmony_ciThe driver is supplied binary in pkgadd(1m) format and is tested from 65141cc406Sopenharmony_ciUW2.0x. Please send Email to wolfgang@rapp-informatik.de to get the 66141cc406Sopenharmony_cidriver in binary pkgadd package. 67141cc406Sopenharmony_ci 68141cc406Sopenharmony_ciTo install it on a Unixware do: 69141cc406Sopenharmony_ci 70141cc406Sopenharmony_ci cd /tmp 71141cc406Sopenharmony_ci get sanedrv.pkg.tgz 72141cc406Sopenharmony_ci gunzip sanedrv.pkg.tgz 73141cc406Sopenharmony_ci tar xvf sanedrv.pkg.tar 74141cc406Sopenharmony_cias root: 75141cc406Sopenharmony_ci pkgadd -d /tmp/sanedrv 76141cc406Sopenharmony_ci 77141cc406Sopenharmony_ciOnce the driver is installed, there should be a device nodes /dev/sane 78141cc406Sopenharmony_ciand /dev/scanner /dev/scanner1 for the second, and so on...) 79141cc406Sopenharmony_ci 80141cc406Sopenharmony_ciThe scanner my be connected to any SCSI controller in the system, also 81141cc406Sopenharmony_ciif you have additional devices like disks or cdroms on the same 82141cc406Sopenharmony_cicontroller. The UW2.x sane driver do not block the controller. The 83141cc406Sopenharmony_ciscanner must be switched on to be recognized by UW, if the low level 84141cc406Sopenharmony_cidriver p.e. adsl is loaded. 85141cc406Sopenharmony_ci 86141cc406Sopenharmony_ciTo configure an UMAX scanner, configuration file 87141cc406Sopenharmony_ci/usr/local/etc/sane.d/umax.conf might contain: 88141cc406Sopenharmony_ci 89141cc406Sopenharmony_ci /dev/scanner 90141cc406Sopenharmony_ci 91141cc406Sopenharmony_ciThe driver is configured to recognice all scsi scanners with ID 92141cc406Sopenharmony_ciSCANNER and all HP Scsi scanners with ID Processor and Inquiry string 93141cc406Sopenharmony_cistarting with "HP" string. For details have a look to 94141cc406Sopenharmony_ci/etc/conf/pack.d/sane/space.c. 95141cc406Sopenharmony_ci 96141cc406Sopenharmony_ciIf you change this then you must unload the sane driver modadmin -U 97141cc406Sopenharmony_cisane, build the new module by /etc/conf/bin/idbuild -M sane and the 98141cc406Sopenharmony_ciinstall the driver with modadmin -l sane. 99141cc406Sopenharmony_ci 100141cc406Sopenharmony_ciIf you have questions or problems with the Unixware support in SANE, 101141cc406Sopenharmony_cisend mail to: 102141cc406Sopenharmony_ci 103141cc406Sopenharmony_ciwolfgang@rapp-informatik.de 104