Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Fri Jun 05, 2020 10:26 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Problem loading Shared Libraries
PostPosted: Mon Dec 19, 2005 1:58 pm 
Offline

Joined: Wed Oct 05, 2005 12:59 pm
Posts: 40
Location: CT, USA
I am having a strange problem loading a shared library. I am using a Declare to access the functions in the library and when the application starts up I get an Assertion Failure with the message "../Common/loaderX86.cpp: 401 Failure Condition:lib->lib->mLibraryHandle Missing shared library libstrip.so".

I am using RB2005r4 Pro on Windows 2K Pro cand compiling to Linux. I am running the application on ubuntu 5.10.

There are two shared libraries I am using and one is loading with no problem and the other "libstrip.so" fails. I have checked the ld.so.conf and ld.so.cache and these are correct. I ran a strace on the application and can see the application is searching for the library in the correct directories.

I do not have a clue as to why the application can't find the shared library.

David

_________________
Regards
David Abrames
------------------------------------------------------
Never have a battle of wits with an unarmed person. R. E. Abrames


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Dec 19, 2005 2:54 pm 
Offline
User avatar

Joined: Wed Sep 28, 2005 8:39 am
Posts: 9341
Location: St Augusta, MN
Are you running a 64-bit OS?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Dec 19, 2005 3:05 pm 
Offline

Joined: Wed Oct 05, 2005 12:59 pm
Posts: 40
Location: CT, USA
No, running on a Intel Petium-4 processor.

Interestingly in the strace I see RB calling lstat64 on this library and that is failing with a -1 ENOENT

On the other library RB is calling stat64 and it is working.

David

_________________
Regards
David Abrames
------------------------------------------------------
Never have a battle of wits with an unarmed person. R. E. Abrames


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Dec 19, 2005 3:16 pm 
Offline
User avatar

Joined: Wed Sep 28, 2005 8:39 am
Posts: 9341
Location: St Augusta, MN
Is it possible that you've got the 64-bit version of the library?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Dec 19, 2005 3:53 pm 
Offline

Joined: Wed Oct 05, 2005 12:59 pm
Posts: 40
Location: CT, USA
Not likley, we compiled the library ourselfs on the same PC. The developer that created it assures me that this is not possible. The other library that is working was part of the same build.

I don't know if this helps but I was able to get rid of the error message by doing the following:

1. create symbolic link in the application folder to the library "libstrip.so"
2. in the Declare statement for the 'lib' attribute enter "./libstrip.so"

When I run the application I do not get the missing shared library error but I continue to get the cannot resolve function errors, which are the function in libstrip I am trying to run, and the strace looks the same.

David

_________________
Regards
David Abrames
------------------------------------------------------
Never have a battle of wits with an unarmed person. R. E. Abrames


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group