• 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: unknown required load command 0x80000022
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unknown required load command 0x80000022


  • Subject: Re: unknown required load command 0x80000022
  • From: Grant Limberg <email@hidden>
  • Date: Mon, 26 Oct 2009 14:28:32 -0700

On Oct 26, 2009, at 1:11 PM, Kevin Brock wrote:

Peter O'Gorman wrote:
On 10/26/2009 02:07 PM, Kevin Brock wrote:

I haven't seen any information on how to make Xcode *not* include these
load commands...

It's the compressed linkedit segment - see http://developer.apple.com/mac/library/releasenotes/DeveloperTools/RN-dyld/index.html

Properly setting the deployment target is the solution.
It may help Mr. Limberg's problem.  It's not the solution to all the problems introduced by the LC_DYLD* commands.

If I build a framework for deployment target OS X 10.5, LC_DYLD_INFO gets included.  This isn't understood by some build tools on 10.5.  In particular, strip doesn't understand it, so if the framework is copied anywhere by the project things break. (strip during copy is the default setting).

So setting the deployment target properly isn't really enough.  If I build a framework on 10.6 with default settings for deployment target 10.5, I can't go to a 10.5 system and link a project with it unless I alter the defaults...  It will load on 10.5, but can't be used as part of another project in some cases. 

Performing deployment post-processing on the framework helps, but that isn't the default, even in a release build.

The loader release notes you point at talk about the fact that the new load command is going to be included, but don't address the build issues it introduces where people still need to do some builds on 10.5.


Kevin


So as I'm digging deeper into this, it turns out that *NOTHING* compiled on my machine (10.6) with SCons is able to run on Mac OS 10.5.   Everything comes up with the 'unknown required load command 0x800000022' error when loading dylibs.  All of our projects are built with -isysroot /Developer/SDKs/MacOSX10.4u.sdk' and -mmacosx-version-min=10.4.   Adding -no_compact_linkedit to the linker flags which Peter O'Gorman suggested has no effect on our projects, nor when linking/compiling mysql++, which is what started me down this path to begin with.   Something is definitely screwy here, and simply setting the deployment target via -isysroot and -mmacosx-version-min is not solving the problem.

Grant Limberg



email@hidden
http://www.cedrus.com/
 _______________________________________________
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: unknown required load command 0x80000022
      • From: Peter O'Gorman <email@hidden>
References: 
 >unknown required load command 0x80000022 (From: Grant Limberg <email@hidden>)
 >Re: unknown required load command 0x80000022 (From: Kevin Brock <email@hidden>)
 >Re: unknown required load command 0x80000022 (From: Peter O'Gorman <email@hidden>)
 >Re: unknown required load command 0x80000022 (From: Kevin Brock <email@hidden>)

  • Prev by Date: Re: unknown required load command 0x80000022
  • Next by Date: Re: unknown required load command 0x80000022
  • Previous by thread: Re: unknown required load command 0x80000022
  • Next by thread: Re: unknown required load command 0x80000022
  • Index(es):
    • Date
    • Thread