Professional Web Applications Themes

Unresovled Symbol. How to tell if executable file compiled ok? - Linux Setup, Configuration & Administration

Dear experts, Lately, while installing, and compiling I've been getting some strange messages. ie. /lib/modules/fglrx/make_install.sh - creating symlink - recreating module dependency list depmod: *** Unresolved symbols in /lib/modules/2.4.9-e.3/kernel/drivers/char/drm/fglrx.o failed. It turned out that the culprit was: dlsym strings /usr/X11R6/lib/libGL.so.1 | grep dlsym dlsym How can you tell if everything compiled ok? That is, after you compiled it? In particular, in these .o files? Also, any good methods for debugging things like this, and fixing them? Thanks...

  1. #1

    Default Unresovled Symbol. How to tell if executable file compiled ok?

    Dear experts,

    Lately, while installing, and compiling I've
    been getting some strange messages.

    ie.

    /lib/modules/fglrx/make_install.sh
    - creating symlink
    - recreating module dependency list
    depmod: *** Unresolved symbols in
    /lib/modules/2.4.9-e.3/kernel/drivers/char/drm/fglrx.o
    failed.

    It turned out that the culprit was: dlsym

    strings /usr/X11R6/lib/libGL.so.1 | grep dlsym
    dlsym


    How can you tell if everything compiled ok?
    That is, after you compiled it? In particular,
    in these .o files?

    Also, any good methods for debugging things like
    this, and fixing them?


    Thanks
    linuxquestion@yahoo.com Guest

  2. #2

    Default Re: Unresovled Symbol. How to tell if executable file compiled ok?

    In comp.os.linux.development.apps com wrote: 
     
     
     

    Everything that tells you is that within /usr/X11R6/lib/libGL.so.1
    there's the string "dlsym" (obviously on it's own line). But why
    you think that is this connected to a failure of depmod I can't
    see at the moment.

    If I don't misunderstand what depmod does too much I would guess
    that your problem is that one of the symbols required by

    /lib/modules/2.4.9-e.3/kernel/drivers/char/drm/fglrx.o

    can't be found neither in the kernel nor in one of the other
    modules you have. I have no idea how this should be connected
    with the libGL library.
     

    When you get an .o file it usually means that the compiler got to
    the end of its work. You can call this successful. depmod (which
    flagged the error) isn't anything related to the compiler.
     

    You could try to figure out what went wrong with depmod by trying
    to run it manually (I guess that the install script isn't showing
    you the error messages). You could also try to insmod the fglrx
    module and look what it tells you about missing symbols etc. How
    far this will help you I can't tell.

    Regards, Jens
    --
    \ Jens Thoms Toerring ___ fu-berlin.de
    \__________________________ http://www.physik.fu-berlin.de/~toerring
    Jens.Toerring@physik.fu-berlin.de Guest

  3. #3

    Default Re: Unresovled Symbol. How to tell if executable file compiled ok?

    com <com> wrote: 

    Um, no. The symbols in the user space library libGL.so.1 are not referenced
    at all when trying to load kernel modules.

    Did you perhaps forget to first

    cd /lib/modules/fglrx/build_mod
    ../make.sh

    before doing

    cd /lib/modules/fglrx
    ../make_install.sh

    ?

    --
    Frank Sweetser fs at wpi.edu
    WPI Network Engineer
    Frank Guest

  4. #4

    Default Re: Unresovled Symbol. How to tell if executable file compiled ok?

    You have experience with this! Cool!
    Yes, I am struggling with video drivers

    ----------------------

    cd /lib/modules/fglrx/build_mod

    ../make.sh


    ATI module generator V 2.0
    ==========================
    initializing...
    cleaning...
    patching 'highmem.h'...
    skipping patch for 'drmP.h', not needed
    probing for VMA API version...
    doing script based build for kernel 2.4.x and similar
    compiling './agpgart_be.c'...
    compiling './agp3.c'...
    compiling './i7505-agp.c'...
    compiling './nvidia-agp.c'...
    compiling './firegl_public.c'...
    linking of fglrx kernel module...
    duplicating results into driver repository...
    done.
    ==============================
    You must change your working directory to /lib/modules/fglrx
    and then call ./make_install.sh in order to install the built module.
    ==============================
    -------------------

    cd /lib/modules/fglrx

    ../make_install.sh

    - creating symlink
    - recreating module dependency list
    depmod: *** Unresolved symbols in
    /lib/modules/2.4.9-e.3/kernel/drivers/char/drm/fglrx.o
    failed.

    ---------------------

    So, the install failed.

    The objective is to eventually get these Radeon video drivers
    to work on Redhat Advanced Server 2.1. If you know the solution,
    please let me know.


    But, my original question here, is what is causing these
    unresolved symbols errors. Where do I look, and what is
    the command?

    Thanks




    ---------------------

    Frank Sweetser <wpi.edu> wrote in message news:<wpi.edu>... 
    >
    > Um, no. The symbols in the user space library libGL.so.1 are not referenced
    > at all when trying to load kernel modules.
    >
    > Did you perhaps forget to first
    >
    > cd /lib/modules/fglrx/build_mod
    > ./make.sh
    >
    > before doing
    >
    > cd /lib/modules/fglrx
    > ./make_install.sh
    >
    > ?[/ref]
    linuxquestion@yahoo.com Guest

  5. #5

    Default Re: Unresovled Symbol. How to tell if executable file compiled ok?

    <com> schrieb 

    Perhaps

    $ man depmod
    ....
    -e, --errsyms
    Show all the unresolved symbols for each module.
    ....

    will be of help?

    But probably not, as you have surely already looked at the manpage
    for the command in question, depmod.

    Martin




    Martin Guest

Similar Threads

  1. Replies: 4
    Last Post: May 28th, 01:34 AM
  2. Run an Executable file in Filemaker
    By SAPS in forum FileMaker
    Replies: 2
    Last Post: November 7th, 05:23 PM
  3. Launching an executable file
    By mickytaggart66 webforumsuser@macromedia.com in forum Macromedia Dreamweaver
    Replies: 3
    Last Post: July 24th, 03:40 PM
  4. Unresolved symbol erros, just compiled 2.4.21
    By Rob Weir in forum Debian
    Replies: 0
    Last Post: June 29th, 06:00 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139