C Board  

Go Back   C Board > Platform Specific Boards > Linux Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 06-08-2006, 01:28 PM   #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.
ichijoji is offline   Reply With Quote
Old 06-08-2006, 01:50 PM   #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.
ichijoji is offline   Reply With Quote
Old 06-08-2006, 04:40 PM   #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.
ichijoji is offline   Reply With Quote
Old 06-08-2006, 07:01 PM   #4
Registered User
 
Join Date: May 2006
Posts: 35
glad we could help
computation is offline   Reply With Quote
Old 06-08-2006, 09:43 PM   #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.
ichijoji is offline   Reply With Quote
Old 06-08-2006, 11:37 PM   #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
computation is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 01:12 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

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