Re: XForms: Today's commits

From: Peter S Galbraith (GalbraithP@dfo-mpo.gc.ca)
Date: Thu Apr 10 2003 - 09:52:37 EDT

  • Next message: Jeff Pierce: "Re: XForms: keyboard entry and threads"

    # To subscribers of the xforms list from Peter S Galbraith <GalbraithP@dfo-mpo.gc.ca> :

    Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr> wrote:

    > >>>>> "Peter" == Peter S Galbraith <GalbraithP@dfo-mpo.gc.ca> writes:
    >
    > Peter> Just to be clear, that should only be done when the programming
    > Peter> interfaces change (new function added to library or arguments
    > Peter> to old ones have changed). That forces a re-compile of all
    > Peter> binary packages that link to XForms.
    >
    > Which part of the soname should be up-ed? I though that it was
    > something like
    >
    > - increase minor number: old programs will still run, but there are
    > new functions for new programs
    >
    > - increase major number: all programs should be rebuilt.
    >
    > JMarc

    I'm far from being an expert on dynamic libraries.

    If there are new functions for new programs, and you compile a binary
    using these and install it on a second computer, then the library soname
    must be changed because otherwise the library on the second computer
    might not have those new functions.

    The XForms soname is currently:

    $ objdump -p /usr/X11R6/lib/libforms.so.1.0 | grep SONAME
      SONAME libforms.so.1

    e.g. lyx looks for libforms.so.1 at runtime:

    $ ldd /usr/bin/lyx | grep libforms
            libforms.so.1 => /usr/X11R6/lib/libforms.so.1 (0x4008a000)

    It seems to me that if you introduce an incompatible change, that will
    need to change (maybe to libforms.so.1.1?) in order to force
    applications to be rebuilt. I could be wrong...

    Peter

    _________________________________________________
    To unsubscribe, send the message "unsubscribe" to
    xforms-request@bob.usuhs.mil or see
    http://bob.usuhs.mil/mailserv/xforms.html
    XForms Home Page: http://world.std.com/~xforms
    List Archive: http://bob.usuhs.mil/mailserv/list-archives/
    Development: http://savannah.nongnu.org/files/?group=xforms



    This archive was generated by hypermail 2b29 : Thu Apr 10 2003 - 09:54:35 EDT