• 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: linker error with Xcode 2.4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: linker error with Xcode 2.4


  • Subject: Re: linker error with Xcode 2.4
  • From: Scott Tooker <email@hidden>
  • Date: Fri, 25 Aug 2006 16:58:50 -0700

I second the recommendation that you file a bug about this issue. Please :)

Scott

On Aug 10, 2006, at 1:36 PM, Wyatt Webb wrote:

We actually had that same error on a different QuickTime call. After a conversation with no fewer than 3 Apple Engineers, here's the upshot:

With Xcode 2.4, the 10.3.9 SDK now includes the QuickTime 7.1.2 headers (Xcode 2.3 had a 10.3.9 SDK with the Quicktime 6 headers)

The difference in Movies.h was the addition of several explicit inlines for calls dealing with UPPs since most are pass through for Mach-O.

That's important because those methods are also declared extern at a different point in the file. That gives you the combination of being "extern inline". I then had a self-described gcc compiler grunt tell me that gcc 3.3 had a "feature" that did special work with items marked as "extern inline" which ended up leaving the symbol unavailable for linking. This doesn't happen in gcc 4 as the "feature" was removed.

We tried mucking with compiler flags to no avail. The only suggestion I got that I haven't tried was to back up to the 10.2.8 SDK if you need to target systems before 10.3.9. If 10.3.9 is the minimum for your app, you can use gcc 4 (supposedly, I haven't tried) on the 10.3.9 SDK.

I have to support older than that, so going to gcc 4 was not an option. However, this only happened to me on a single call (New[...] UPP)which is literally a pass though so I can simply skip the call can just assign my callback as-is in my Mach-O code and continue making the call when I compile the same path for CFM with CodeWarrior. You might be able to do something similar and avoid making the problematic call when compiling with Xcode.

Either way, it was recommended I file a Radar bug about the change in SDK causing problems. I can work around, but other folks might not be able to do so. Apple may have to come up with a better general solution for other folks.

Hope that helps,

	-Wyatt

On Aug 9, 2006, at 10:23 AM, Roni Music wrote:


I updated to Xcode 2.4 and one of my apps fails to link with the error below after updating
This is the PPC build of an Universal binary, using gcc 3.3 and 10.3.9 SDK


a QuickTime function
InvokeMovieExportGetDataUP
fails to link

ld: /Users/ingvarnilsson/Desktop/programming/programming/ASD_OS_X/ build/ASD1.build/Imported CodeWarrior Settings/ASD debug.build/ Objects-normal/ppc/CReadM4PQuickTimeFile.o
illegal reference for -dynamic code (section difference reference from section (__TEXT,__eh_frame) relocation entry (4) to symbol: _InvokeMovieExportGetDataUPP defined in dylib:
Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/ QuickTime.framework/QuickTime)


thanks for any help
Rolf

_______________________________________________
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

_______________________________________________ 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: 
 >linker error with Xcode 2.4 (From: Roni Music <email@hidden>)
 >Re: linker error with Xcode 2.4 (From: Wyatt Webb <email@hidden>)

  • Prev by Date: Re: 10.4u SDK system header errors not present in current OS SDK
  • Next by Date: Re: Automate build numbers
  • Previous by thread: Re: linker error with Xcode 2.4
  • Next by thread: XCode 2.4 crashes debugging Dwarf on Intel iMac
  • Index(es):
    • Date
    • Thread