Re: XForms: undefined reference to `fl_initialize' and

From: Jeremy C. Reed (reed@reedmedia.net)
Date: Fri Feb 02 2001 - 12:52:28 EST

  • Next message: Steve Lamont: "Re: XForms: undefined reference to `fl_initialize' and"

    # To subscribers of the xforms list from "Jeremy C. Reed" <reed@reedmedia.net> :

    On Fri, 2 Feb 2001, Steve Lamont wrote:

    > Be sure you are have the right version of the library for your object/
    > executable format.
    >
    > Note that there are two different versions of the library:
    >
    > -rw-r--r-- 1 100 851405 Sep 4 1999 bxform-088-ELF.tgz
    > -rw-r--r-- 1 100 887615 Feb 24 1998 bxform-088.tgz

    Thanks. I didn't realize there were two binaries. Yes, my system is ELF
    and I double-checked and my system used bxform-088-ELF.tgz.

    It is interesting to note that the NetBSD package installer for this
    says: "Run-time link editor tries to resolve libGL.so symbols when
    linking with shared libxforms, but all the packages that requre xforms seem
    to work OK without -lGL, so for now, remove the shared lib." And then this
    installer does:

     /bin/rm -f /usr/X11R6/lib/libforms.so.0.88 /usr/X11R6/lib/libforms.so.0
     /usr/X11R6/lib/libforms.so /usr/X11R6/lib/libxforms.so.0.88
     /usr/X11R6/lib/libxforms.so.0 /usr/X11R6/lib/libxforms.so

    Also, I found a note that says:

    Libraries have been installed in:
       /usr/X11R6/lib

     If you ever happen to want to link against installed libraries
     in a given directory, LIBDIR, you must either use libtool, and
     specify the full pathname of the library, or use `-LLIBDIR'
     flag during linking and do at least one of the following:
        - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
          during execution
        - add LIBDIR to the `LD_RUN_PATH' environment variable
          during linking
        - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
        - have your system administrator add LIBDIR to `/etc/ld.so.conf'

    So I tried:

     rainier:~/projects/homebsd$ gcc -I/usr/X11R6/include/X11
     -I/usr/X11R6/include -L/usr/X11R6/lib -Wl,--rpath -Wl,/usr/X11R6/lib
     test2.c
     /tmp/ccXROeII.o: In function `main':
     /tmp/ccXROeII.o(.text+0x12): undefined reference to `fl_initialize'
     collect2: ld returned 1 exit status

    I guess I need to research further. I have heard about this libtool a lot,
    but I am not sure what it is.

       Jeremy C. Reed
       http://www.reedmedia.net/

    _________________________________________________
    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 : Fri Feb 02 2001 - 12:54:33 EST