• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Multiple symbol definitions causing application crash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple symbol definitions causing application crash


  • Subject: Re: Multiple symbol definitions causing application crash
  • From: Andrew Pontious <email@hidden>
  • Date: Sun, 6 Apr 2008 12:14:57 -0700

Others may have more information for you, but in my understanding, in general, it's not going to be possible to load two different versions of the same dynamic library in the same executable at the same time.

You will need to make sure your bundle links against the same version of the framework that the application does, or use a different library or other code entirely for that functionality.

-- Andrew

On Apr 1, 2008, at 10:36 AM, Andrew Buza wrote:

I'm writing a plug-in (bundle/shared library) for another application
and am having a bit of trouble that I'm not sure how to resolve. Both
my bundle and the host application use different versions of the same
3rd party library (omniORB); the host app loads libOmniCore.XC.dylib
while my plug-in loads libomniDynamic4.dylib.

As my plug-in loads, the application terminates with SIGABRT due to an
exception thrown from libomniDynamic4. The function
NP_marshalComplexParams is defined in both libraries, and what appears
to be happening, based on the stack trace & module addresses,  is that
one of the functions called during omniDynamic4's initialization
procedure is using the function in OmniCore.XC instead of its own.

I'm not sure how to fix this problem since I'm not very familiar with
the ins & outs of mac development in general or dynamic linking on the
mac in particular. I've made sure that -flat_namespace isn't being
passed to the linker, but I'm not sure what else to try.

Any ideas?
_______________________________________________
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

_______________________________________________ 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
References: 
 >Multiple symbol definitions causing application crash (From: "Andrew Buza" <email@hidden>)

  • Prev by Date: Re: Xcode 3.0 and Java Code Completion
  • Next by Date: Re: followup to: broken ref lib: java api lookup fails in 2.5 on tiger
  • Previous by thread: Multiple symbol definitions causing application crash
  • Next by thread: Custom executable, yellow breakpoints
  • Index(es):
    • Date
    • Thread