Re: Compile problems (and fixes) for 1.0.4

From: oliver.rauch@Wolfsburg.DE
Date: Thu Dec 28 2000 - 01:12:44 PST

  • Next message: oliver.rauch@Wolfsburg.DE: "Re: new configure script for xsane-0.6[678]"

    Derrell Lipman wrote:
    >
    > Hi. I downloaded all the latest SANE stuff today.
    >
    > - sane-1.0.3 compiled and installed fine, , but caused problems
    > for sane-frontends-1.0.4 and xsane-0.68.
    >
    > On RedHat 7.0, the LIBS line in sane-config must contain -ldl or the
    > sane-frontends-1.0.4 and xsane-0.68 installations fail.
    >
    > LIBS="-lnsl -lm -ljpeg -ldl"

    Hi Derrell,

    when you compile sane-backends without special options for configure
    it should compile as shared library. dl is linked to the shared libraries
    libsane-*.so* . When you link a program against libsane-*.so* it should
    use tbe link to dl.
    When you compile everything static, the backends are preloaded into libsane.a.
    So when I donīt forget anything we do not need dl when we use static linking.

    So in my opinion everything should be ok, but may be I forgot something here.

    How did you compile it (configure options, anything special)?

    > (Also, looking at it now, -lm should generally be the *last* library
    > linked, as anything could end up using it. It didn't make a
    > difference here, though.)
    That is correct because it could make problems with static linking,
    for shared libs we do not need to care about the order of the libs.

    > - sane-frontends-1.0.4 would not install. The first problem was the
    > sane-config issue discussed above. Secondly, two makefiles needs to
    > be modified (they appear to have some local munging that didn't get
    > removed before the release).
    >
    > src/Makefile and doc/Makefile both require changing:
    >
    > INSTALL = ../'/usr/bin/install -c'
    >
    > to
    >
    > INSTALL = /usr/bin/install -c

    The Makefile is created from Makefile.in by the configure script.
    The variable INSTALL that is used for this is set up by a standard
    function of autoconf and I do not think that there is a problem with
    this. Is it possible that your system is not set up correct?

     
    Bye
    Oliver

    --
    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 : Thu Dec 28 2000 - 01:02:49 PST