• 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
Uber-Dynamic Linkery
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Uber-Dynamic Linkery


  • Subject: Uber-Dynamic Linkery
  • From: Jerry Krinock <email@hidden>
  • Date: Thu, 30 May 2013 21:25:53 -0700

My Firefox extension contains a dynamic library that I build in Xcode.  It links to a function, NS_GetServiceManager(), which, until Firefox version 22, is defined in libxpcom.dylib, which is one of the dozen or so libraries that Mozilla ships in Firefox.  But starting in Firefox 22, the definition of NS_GetServiceManager() got moved to a different library, XUL.

So, if I build *my* dylib linked to libxpcom.dylib, it works OK in Firefox 21 but fails to load in Firefox 22.  If I build it linked to XUL, it works OK in Firefox 22, but in Firefox 21, Firefox crashes when NS_GetServiceManager() is invoked.

Is there any kind of linking trickery I could use to build a dylib which will work in both new and old Firefox versions?

Thanks!

Jerry Krinock


 _______________________________________________
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

  • Follow-Ups:
    • Re: Uber-Dynamic Linkery
      • From: Jonas Maebe <email@hidden>
  • Prev by Date: Re: Debugging a CALayer Bad Access
  • Next by Date: Re: Uber-Dynamic Linkery
  • Previous by thread: Re: Debugging a CALayer Bad Access
  • Next by thread: Re: Uber-Dynamic Linkery
  • Index(es):
    • Date
    • Thread