[sane-devel] [dev] Compilation tests on FreeBSD, OpenBSD and NetBSD

Henning Meier-Geinitz henning@meier-geinitz.de
Fri, 17 Aug 2001 22:12:04 +0200


Hi,

During the last week I have installed FreeBSD, OpenBSD and NetBSD on
my system (an Athlon Thunderbird i386 compatible). After some little
nightmares with installation I tried to compile and use SANE 1.0.5
(and the CVS version) on these systems. As I have never used NetBSD
and OpenBSD before and have little experience with FreeBSD, so please
excuse my ignorance. Here are the results:

----------------------------------------------------------------------------

                         Platform: FreeBSD i386 4.3 
       Latest SANE version tested: 1.0.5 (+CVS)
                         Compiler: gcc 2.95.3
          User-level SCSI support: yes
                      USB support: yes (1)
           Shared library support: yes
          Dynamic loading support: yes
X11 clients (xscanimage and xcam): yes (2)

(1) I don't know how to detect vendor and device ids as with current Linux
    scanner driver versions. I can't test USB with SANE 1.0.5 because
    I don't have USB scanners supported by this version. The CVS
    version works, however and I can run my test program for the
    BearPaw 1200 scanner.
(2) It's necessary to set the variable GTK_CONFIG to
    /usr/X11R6/bin/gtk12-config when running configure.

Summary: (Nearly) everything works fine.

----------------------------------------------------------------------------

                         Platform: OpenBsd i386 2.9
       Latest SANE version tested: 1.0.5 (+CVS)
                         Compiler: gcc 2.95.3
          User-level SCSI support: ? (1)
                      USB support: ? (2)
           Shared library support: yes
          Dynamic loading support: yes
X11 clients (xscanimage and xcam): yes (3)

(1) My SCSI scanner is detected as /dev/ss0 but I can't access it with this
    device. The device /dev/uk0 doesn't seem to be connected. Maybe I must
    compile a new kernel for generic SCSI support?
(2) There seems to be a uscanner kernel driver, but nothing was detected during
    boot. Also there are no /dev/uscanner0 or similar device files. Maybe i need
    to compile a new kernel?
(3) The compilation ran fine but I couldn't test because the configuration
    of X failed.

Summary: No Compilation problems but I can't get it scanning at all.

----------------------------------------------------------------------------

                         Platform: NetBSD i386 1.5.1
       Latest SANE version tested: 1.0.5 (+CVS)
                         Compiler: egcs 2.91.66 (1.1.2)
          User-level SCSI support: yes
                      USB support: no (1)
           Shared library support: no (2)
          Dynamic loading support: no (2)
X11 clients (xscanimage and xcam): no (3)

Compilation fails because configure thinks, libusb is present, but NetBSD has
a different libusb than expected. There was a bug in configure (my fault) that
resulted in compiling sm3600.c even if the "wrong" libusb was found. That's
fixed in CVS now. I have quiete a lot of problems with NetBSD, e.g. I can't
easily edit existing files ("write failed") and configure can't write
config.cache. So maybe there are severe installation problems and this report
isn't that exact.

(1) ugen detects my USB scanner, but there doesn't seem to be a scanner 
    driver like uscanner in FreeBSD. Maybe it's possible to support ugen?
(2) When shared libraries are compiled/installed, everything looks fine but
    when running scannimage I get only the message 
    `Cannot open "../backend/.libs/libsane.so'. During compilation there is
    a warning (probably from libtool) about dropping inter library
    dependencies. Static compilation works.
(3) I can't get sane-frontends' configure detecting gtk. There seem to be a
    problem during running the test program but I couldn't find out which one.

Summary: Only static scanimage with SCSI scanners works for me.

----------------------------------------------------------------------------

Any tips and information is appreciated. If there are further tests on
these systems that can be done, please contact me.

Bye,
  Henning