debugging so files

This is a discussion on debugging so files within the Linux Programming forums, part of the Platform Specific Boards category; I've been tasked with porting some code to 64 bit linux (FC5). I got pretty far with it and it ...

  1. #1
    GA ichijoji's Avatar
    Join Date
    Nov 2002
    Posts
    179

    debugging so files

    I've been tasked with porting some code to 64 bit linux (FC5). I got pretty far with it and it compiles and links now, but when I run it I get this error:
    Code:
    hypno/bin/linuxd/libenkiduo.so: undefined symbol: _ZN3TNL9dVsprintfEPcjPKcPv
    This error is being returned from these calls:
    Code:
        void *dll = _dlopen_wrapper(name, true);
        if (!dll) {
            char *err1 = n_strdup(dlerror());
    I barely have an understanding of how to use .so files, and I have _no_ idea how to debug them. What's the general method for fixing something like this?
    Illusion and reality become impartiality and confidence.

  2. #2
    GA ichijoji's Avatar
    Join Date
    Nov 2002
    Posts
    179
    A symbol lookup reveals that a similar symbol is defined in the file:
    Code:
    $ nm libenkiduo.so | grep _ZN3TNL9dVsprintf
    00000000007b8d64 T _ZN3TNL9dVsprintfEPcjPKcP13__va_list_tag
                     U _ZN3TNL9dVsprintfEPcjPKcPv
    Illusion and reality become impartiality and confidence.

  3. #3
    GA ichijoji's Avatar
    Join Date
    Nov 2002
    Posts
    179
    I got it. It turned out to be some obscure vprintf function way on the other side of the project that didn't match its header and had never been compiled before.
    Illusion and reality become impartiality and confidence.

  4. #4
    Registered User
    Join Date
    May 2006
    Posts
    35
    glad we could help

  5. #5
    GA ichijoji's Avatar
    Join Date
    Nov 2002
    Posts
    179
    This happens whenever I stop to put together a question to ask somebody else. I think what I'll do is institute a mandatory 1 hour delay before actually posting anything.
    Illusion and reality become impartiality and confidence.

  6. #6
    Registered User
    Join Date
    May 2006
    Posts
    35
    I ussually wait until i'm completely fed up with the problem and then post.......and then realize I could have had an answer 2 and a half hours earlier

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Ressources files
    By mikahell in forum Windows Programming
    Replies: 4
    Last Post: 06-19-2006, 06:50 AM
  2. add source files to embedded VC 4.0
    By George2 in forum C++ Programming
    Replies: 4
    Last Post: 06-13-2006, 03:28 AM
  3. *.cpp and *.h files understanding
    By ElastoManiac in forum C++ Programming
    Replies: 4
    Last Post: 06-11-2006, 04:45 AM
  4. Linking header files, Source files and main program(Accel. C++)
    By Daniel Primed in forum C++ Programming
    Replies: 3
    Last Post: 01-17-2006, 10:46 AM
  5. Multiple Cpp Files
    By w4ck0z in forum C++ Programming
    Replies: 5
    Last Post: 11-14-2005, 01:41 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21