Re: Second and last code freeze snapshot (20000227)

From: Henning Meier-Geinitz (hmg-ml@gmx.de)
Date: Sat Mar 04 2000 - 15:36:33 PST

  • Next message: John Fremlin: "USB Microtek ScanMaker X6"

    Hi,

    > The only vital unsolved problem left is the shared library naming on
    > Irix 6.5. The libraries are called libsane-*.2 instead of the
    > expected libsane-*.1. This makes the DLL backend fail on Irix 6.5.
    > If anyone knows how to fix this, please post a patch. I will release
    > 1.0.2 even if this problem remains.

    No patch, just an observation: I am using Irix 5.3 and the versions of
    libsane that are written to /usr/local/lib (after compiling the "rev"
    program) are .1 but the binaries expect .2:

    /usr/local/lib/libsane.a -> sane/libsane-dll.a
    /usr/local/lib/libsane.la
    /usr/local/lib/libsane.so -> sane/libsane-dll.so
    /usr/local/lib/libsane.so.1 -> sane/libsane-dll.so.1

    [example for pnm in lib/sane]
    /usr/local/lib/sane/libsane-pnm.a
    /usr/local/lib/sane/libsane-pnm.la
    /usr/local/lib/sane/libsane-pnm.so -> libsane-pnm.so.2.1
    /usr/local/lib/sane/libsane-pnm.so.1 -> libsane-pnm.so.2
    /usr/local/lib/sane/libsane-pnm.so.2 -> libsane-pnm.so.2.1
    /usr/local/lib/sane/libsane-pnm.so.2.1

    $ scanimage -L
     9951:scanimage: rld: Fatal Error: cannot map soname 'libsane.so.2' using
    any of the filenames [...]

    $ ln -s libsane.so.1 libsane.so.2
    $ scanimage -L
    device pnm:0' is a Noname PNM file reader virtual device
    device pnm:1' is a Noname PNM file reader virtual device

    Now I tried to compile using the Irix cc:
    /usr/bin/cc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include
    -D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
    -DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g
    -DSCSIBUFFERSIZE=131072 sanei_pio.c -DPIC -o .libs/sanei_pio.lo
    cfe: Error: /usr/include/sys/types.h, line 214: redeclaration of 'u_int8_t';
    previous declaration at line 22 in file '../include/sane/sanei_backend.h'
     typedef unsigned char u_int8_t ;
     ------- ------------- ^
    cfe: Error: /usr/include/sys/types.h, line 215: redeclaration of
    'u_int16_t'; previous declaration at line 26 in file
    '../include/sane/sanei_backend.h'
     typedef unsigned short u_int16_t ;
     ------- -------------- ^
    cfe: Error: /usr/include/sys/types.h, line 216: redeclaration of
    'u_int32_t'; previous declaration at line 30 in file
    '../include/sane/sanei_backend.h'
     typedef __uint32_t u_int32_t ;
     ------- ---------- ^
    make: *** [sanei_pio.o] Error 1

    This error didn't occur in the last snapshot.

    > Please let us know if there still are problems with this snapshot, and
    > post patches with documentation updated which should go into the next
    > distribution.

    Just a comment: The README points to some man pages but doesn't mention most
    of the backend pages (only sane-umax, sane-hp and sane-mustek).

    Bye, Henning

    --
    Source code, list archive, and docs: http://www.mostang.com/sane/
    To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
    



    This archive was generated by hypermail 2b29 : Sat Mar 04 2000 - 15:38:53 PST