dlopen and RTLD_LOCAL
dlopen and RTLD_LOCAL
- Subject: dlopen and RTLD_LOCAL
- From: "Lyndsey D. Ferguson" <email@hidden>
- Date: Wed, 15 Mar 2006 13:36:53 -0500
Hello everyone,
I have been working on porting our CodeWarrior CFM PPC-application to Xcode Mach-O Universal Binary and seem to come up against a problem that I am unable to find any documentation on so far.
We have plug-ins and I have been using dlopen to open up these plug-ins and dlsym to get to a function and everything has been working fine. We are targeting Mac OS 10.3.9 for PPC and Mac OS 10.4.0 for Intel and have thus been building for each platform. I finally got everything working and we were running tests on our different versions (Win XP, 10.4.5 for Intel and 10.3.9 for PPC). However, we are getting problems loading these plug-ins on 10.3.9. We are unable to open our plug-ins because:
dlcompat: unable to open this file with RTLD_LOCAL.
It works fine under Mac OS 10.4.4 for PPC and Intel. What am I doing wrong? I do not want to load these plug-ins with RTLD_GLOBAL as that causes problems when the plug-ins use similar code and the runtime gets confused calling the wrong function.
My searching on the internet and this list seemed to indicate that I should compile with the "-bundle" c flag, but that doesn't change anything.
Any advice? I'm hoping that it is not to drop 10.3.9 :(
Thanks! Lyndsey
-- Lyndsey D. Ferguson Software Engineer Nemetschek North America, Inc. mailto: email@hidden
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden