Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

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

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, 05:43 PM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
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, 03:50 AM   #3
LQ Newbie
Registered: Jan 2006
Posts: 8

Original Poster
Rep: Reputation: 0
Conversion process!!

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,

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


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

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

All times are GMT -5. The time now is 01:08 PM.

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