LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 02-08-2006, 06:33 AM   #1
unclesam
LQ Newbie
 
Registered: Jan 2006
Posts: 8

Rep: Reputation: 0
How to overcome symbol lookup error?


Hi
I am facing a problem which is as follows:

I have converted an PE file (DLL) of windows into ELF format (shared object). This DLL contains some functions which are used by the application on windows as well as linux but when the application on linux is executed it gives a following error :

'application name' symbol lookup error : 'app name ' undefined symbol 'symbol name'

But when i load that shared object inside the application by dlopen it gives error :
nonloadable sections

Also i havent included the debug section in my application (when converted from PE to ELF)
So no question of debugging . So i included one printf statement just before the function call ( symbol imported from shared object) in application. When executed ,it runs upto the printf statement after that it terminates and gives the error of non loadable sections found.

Is it a problem in linker or is it mapping problem ?


Can anybody help ????
 
Old 02-09-2006, 04:43 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,527

Rep: Reputation: 147Reputation: 147
My guess is that the problem is caused by conversion. What do you exactly mean? Have you used a conversion tool or recompiled the library?
 
Old 02-10-2006, 02:50 AM   #3
unclesam
LQ Newbie
 
Registered: Jan 2006
Posts: 8

Original Poster
Rep: Reputation: 0
Conversion process!!

Actually,
I converted the file formats manually without using any conversion tool. I read the format of the ELF file and then the needed fields for the Dynamic Shared Object. I then extracted the necessary information from the PE ( i.e.DLL) and then mapped that information into the given format of ELF. where necessary fields were DT_NEEDED,DT_NULL,DT_HASH,DT_STRTAB,DT_SYMTAB,
DT_STRSZ,DT_SYMENT.

But still the problem is there. So what to do?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
libgtk-x11 symbol lookup error with gaim deus_machinarum Linux - Software 0 12-11-2005 04:19 PM
Starting httpd: /usr/sbin/httpd: symbol lookup error: /usr/local/lib/libaprutil-0.so. bijuhpd Linux - Newbie 1 10-30-2005 05:07 PM
snort failed: snort: symbol lookup error: undefined symbol: usmAES192PrivProtocol Emmanuel_uk Linux - Security 1 07-10-2005 10:29 AM
mplayer: symbol lookup error Nudicles Linux - Software 1 03-28-2005 05:53 AM
Firefox Symbol Lookup Error Aeiri Linux - Software 2 11-16-2004 04:30 PM


All times are GMT -5. The time now is 05:38 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration