[sane-devel] SANE and XSane on HP-UX

Michael Piotrowski mxp@dynalabs.de
Tue, 02 Oct 2001 01:14:08 +0200


I've just built, installed and successfully tested SANE 1.0.5 with an
Epson Perfection 1640SU on an HP C200 running HP-UX 10.20 and and a HP
B1000 running HP-UX 11.00.  It works great--many thanks to everybody
involved in the SANE effort!

Some notes:

- One very little patch to sane-find-scanner: In line 397, instead of
  "__hpux__", it should say "__hpux".

- In sanei/sanei_init_debug.c, line 51, for HP-UX it should say
  <syslog.h> instead of <sys/syslog.h>.

- For HP-UX 11: HP-UX 11 supports dlopen() so backend/dll.c, line 264f
  should be modified to look somewhat like this:

   #if defined(HAVE_DLOPEN)
   # define PREFIX "libsane-"
   # ifdef __hpux
   #   define POSTFIX ".sl.%u"
   # else
   #   define POSTFIX ".so.%u"
   # endif

   since the extension for shared libraries is still .sl (and SANE
   assumes this when loading backends on HP-UX).

(Is this sufficient notice, or should I contact someone directly with
a patch file?)

SANE can be compiled with the HP ANSI C Compiler or GCC.  On HP-UX 11
in 64-bit mode, if using the HP Compiler, for reasons having to do
with dlopen(), I would recommend to use the +DA2.0W option to generate
a 64-bit executable. (GCC can only produce 32-bit executables and
behaves like on 10.20).

For an update of the SANE Supported Platforms list:

Platform SANE    Compiler User-level USB     Shared  Dynamic X11 clients
         version          SCSI       Support library loading
         tested           support            support support
------------------------------------------------------------------------
HP-UX    1.0.5   cc -Ae   yes        no      yes     yes     *
10.20
------------------------------------------------------------------------
HP-UX    1.0.5   gcc      yes        no      yes     yes     *
10.20            3.0.1
------------------------------------------------------------------------
HP-UX    1.0.5   cc -Ae   yes        no      yes     yes     *
11.00            +DA2.0W
------------------------------------------------------------------------
HP-UX    1.0.5   gcc      yes        no      yes     yes     *
11.00            3.0.1
------------------------------------------------------------------------

* means that I haven't tried to build the X11 clients yet, but as they
worked in version 1.0.1 on HP-UX, my guess would be that they would
work in 1.0.5, too.

Some time ago (June 26), I reported problems with using SANE on HP-UX.
It seems that these problems were due to system hardware: I couldn't
get it to work on a 715/50, but, as I just said, it works fine on a
C200.  I'm not sure what is causing the problems on the 715, and if
they are due to the model, or due to my particular configuration.

I've also successfully built XSane 0.97 on HP-UX 10.20 (should work on
11, too, but haven't tried it yet) with HP ANSI C and GCC.

I have a small patch to allow compiling XSane with other compilers
than GCC, which I'll mail directly to Oliver.

Greetings

-- 
Michael Piotrowski, M.A.                                  <mxp@dynalabs.de>