Re: XForms: XForms 1.0 Release Candidate 3

From: Peter S Galbraith (p.galbraith@globetrotter.net)
Date: Thu Jun 06 2002 - 19:44:00 EDT

  • Next message: John Levon: "Re: XForms: XForms 1.0 Release Candidate 3"

    # To subscribers of the xforms list from Peter S Galbraith <p.galbraith@globetrotter.net> :

    John Levon <moz@compsoc.man.ac.uk> wrote:

    > On Thu, Jun 06, 2002 at 04:17:18PM -0400, Peter S Galbraith wrote:
    >
    > > Really? I figured it was unresolved in the libforms library so it
    > > should be fixed there. (But I am about the farthest you can get from
    > > being an expert on shared libraries...)
    >
    > Not at all, there's no good reason to build Xpm and jpeg into xforms
    > statically by default

    Sorry, I didn't mean statically.

    If I build it with my patch, I get a library like so:

    $ ldd libforms.so.1.0
            libc.so.6 => /lib/libc.so.6 (0x2ab53000)
            libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x2ac70000)
            libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x2ac90000)
            /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x55555000)

    So it's not static.
    If I build it without patching, I get:

    $ ldd libforms.so.1.0
            libc.so.6 => /lib/libc.so.6 (0x2ab53000)
            /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x55555000)

    There are no refs to Xpm or jpeg, but then building an app that does
    itself doesn't use Xpm leads to the following error:

    cc -o xcolmix.new xcolmix.o callbacks.o initforms.o makecolor.o usage.o design.o loadlookupbrowser.o -lforms -lX11 -lm -L /usr/X11R6/lib
    /usr/lib/libforms.so: undefined reference to `XpmCreatePixmapFromData'
    /usr/lib/libforms.so: undefined reference to `XpmFreeAttributes'
    /usr/lib/libforms.so: undefined reference to `XpmAttributesSize'
    /usr/lib/libforms.so: undefined reference to `XpmReadFileToPixmap'
    /usr/lib/libforms.so: undefined reference to `XpmLibraryVersion'
    collect2: ld returned 1 exit status

    Seems to me that it's the libforms library needing xpm, so it should be
    the one dynamically linking to it. It's easy to find other libraries on
    my system that do, e.g.:

    $ ldd libXaw.so.7.0
            libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x2ab05000)
            libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x2ab19000)
            libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x2ab64000)
            libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x2ab6c000)
            libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x2ab82000)
            libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x2ab8f000)
            libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x2ac69000)
            libc.so.6 => /lib/libc.so.6 (0x2ac77000)
            /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x55555000)

    Does this make sense?
    _________________________________________________
    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/



    This archive was generated by hypermail 2b29 : Thu Jun 06 2002 - 19:49:24 EDT