Re: XForms: undefined reference to `fl_initialize' and

From: Jeremy C. Reed (
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" <> :

    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 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/ /usr/X11R6/lib/
     /usr/X11R6/lib/ /usr/X11R6/lib/
     /usr/X11R6/lib/ /usr/X11R6/lib/

    Also, I found a note that says:

    Libraries have been installed in:

     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/'

    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
     /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

    To unsubscribe, send the message "unsubscribe" to or see
    XForms Home Page:
    List Archive:

    This archive was generated by hypermail 2b29 : Fri Feb 02 2001 - 12:54:33 EST