• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1UNIXWARE PORT of SANE - HOWTO build and what you need to run
2
3You need a sane SCSI driver to run SANE on Unixware 2.x. There is at
4least one such driver: the sane driver by R=I+S.
5
6The Unixware sane driver is a binary loadable module driver for UW2.x.
7Please send Email to wolfgang@rapp-informatik.de to receive.
8
9What you need to build xane on Unixware 2.x
10- gnu make
11
12You don't need gcc. All is build with the standard Unixware cc and
13libs!!
14
15For the X-frontends xscanimage and xsane (separately distributed) you need
16libs like libgtk libgimp and the image libs for jpeg, tiff and png.  It is
17also good to have gettext with libintl installed.  Most of the libs are
18available on the Skunkware CD's from SCO in pkgadd format.  If you build the
19frontends with this libs gimp plugin is also supported by xscanimage and
20xsane. Latest xsane version tested was 0.48.
21
22With the following configure should run an build shared libs with
23libtool 1.3.4
24
25LD_RUN_PATH=/usr/local/lib CPPFLAGS="-I/usr/local/include -I/isr/X/include" CFLAGS="-I/usr/local/include -I/usr/X/include
26-I/usr/ucbinclude -L/usr/local/lib -L/usr/ucblib -l ucb" LIBS="-lsocket -lnsl -lgen -I/opt/include -L/usr/ucblib -lucb" ./configure
27
28After running configure you have to edit the generated file libtool
29
30Append to the line
31archive_cmds="\$LD -G -o \$lib \$libobjs \$deplibs \$linkopts
32
33so that it looks like this.
34archive_cmds="\$LD -G -o \$lib \$libobjs \$deplibs \$linkopts -B bind_now -L/usr/local/lib -lintl -L/usr/ucblib -lucb -lm"
35
36This is a must to link the libucb.a , libintl.a in when the sane libs
37are build.It's also necessary for mathematic lib -lm .  Not doing this
38will bring runtime errors like missimg usleep or pow function.
39
40ATTENTION:!!! libucb.a of Unixware 2.x has a buggy readdir function so
41it is recommended to remove readdir.o from libucb.a with ar -d
42readdir.o libucb.a Often used and needed functions from libucb.a are
43strncasecmp or getpagesize.
44
45If you use -I/usr/ucbinclude it is also a good idea to move
46/usr/ucbinlcude/unistd.h to another file, because it will be included
47first and some sources will not compile.
48
49Then you can run make with GNU make.
50
51After this say su and then it's good to say
52LD_RUN_PATH=/usr/local/lib export LD_RUN_PATH
53
54after this you can install with
55make install
56
57Tested on Unixware 2.0.x with Umax Astra 1220S and HP C5100A with
58sane-1.0.1.  With Microtek backend earlier on sane-0.74.
59
60If you use the net backend you do not need the Unixware sanedrv.
61
62The driver is a shareware product.
63
64The driver is supplied binary in pkgadd(1m) format and is tested from
65UW2.0x.  Please send Email to wolfgang@rapp-informatik.de to get the
66driver in binary pkgadd package.
67
68To install it on a Unixware do:
69
70        cd /tmp
71        get sanedrv.pkg.tgz
72        gunzip sanedrv.pkg.tgz
73        tar xvf sanedrv.pkg.tar
74as root:
75        pkgadd -d /tmp/sanedrv
76
77Once the driver is installed, there should be a device nodes /dev/sane
78and /dev/scanner /dev/scanner1 for the second, and so on...)
79
80The scanner my be connected to any SCSI controller in the system, also
81if you have additional devices like disks or cdroms on the same
82controller.  The UW2.x sane driver do not block the controller. The
83scanner must be switched on to be recognized by UW, if the low level
84driver p.e. adsl is loaded.
85
86To configure an UMAX scanner, configuration file
87/usr/local/etc/sane.d/umax.conf might contain:
88
89        /dev/scanner
90
91The driver is configured to recognice all scsi scanners with ID
92SCANNER and all HP Scsi scanners with ID Processor and Inquiry string
93starting with "HP" string. For details have a look to
94/etc/conf/pack.d/sane/space.c.
95
96If you change this then you must unload the sane driver modadmin -U
97sane, build the new module by /etc/conf/bin/idbuild -M sane and the
98install the driver with modadmin -l sane.
99
100If you have questions or problems with the Unixware support in SANE,
101send mail to:
102
103wolfgang@rapp-informatik.de
104