• 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: Kevin Brock <email@hidden>
  • Date: Mon, 26 Oct 2009 12:07:36 -0700

Grant Limberg wrote:
We're using the MySQL++ library for a project.  I've built it on Snow Leopard targeting MacOS 10.4 as the minimum version, but whenever I try to use it on Leopard (10.5), I get the following error when trying to load libmysqlpp.3.0.9.dylib:
dyld: Library not loaded: @executable_path/../Frameworks/libmysqlpp.3.0.9.dylib
  Referenced from: /Volumes/Extras/Users/cruisecontrol/.hudson/jobs/OSX-10.5-Licenser-CI-Debug/workspace/trunk/Licenser/build/scons/scons-out/dbg/staging/./AdminServer
  Reason: no suitable image found.  Did find:
    /Volumes/Extras/Users/cruisecontrol/.hudson/jobs/OSX-10.5-Licenser-CI-Debug/workspace/trunk/Licenser/build/scons/scons-out/dbg/staging/./../Frameworks/libmysqlpp.3.0.9.dylib: unknown required load command 0x80000022
    /Volumes/Extras/Users/cruisecontrol/.hudson/jobs/OSX-10.5-Licenser-CI-Debug/workspace/trunk/Licenser/build/scons/scons-out/dbg/staging/../Frameworks/libmysqlpp.3.0.9.dylib: unknown required load command 0x80000022
Trace/BPT trap

I had a similar problem, though not quite the same.  Xcode 3.2 includes inappropriate load commands (for the target OS) on some binaries.  The one you're running into is LC_DYLD_INFO_ONLY.  There's a page talking about this command here:

http://networkpx.blogspot.com/2009/09/about-lcdyldinfoonly-command.html

Which is largely based on sources here:

http://www.opensource.apple.com/source/ld64/ld64-96.5/src/other/dyldinfo.cpp

My problem was frameworks with LC_DYLD_INFO set, because they were built on 10.6, which I needed to link with an app being built on 10.5.  Checking "Deployment Post Processing" stripped it out of the generated binary in my case.  Don't know if that will apply in your case.

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

Kevin


It's being built with gcc/g++ 4.0 and with the following environment variables set prior to running the ./configure script:

export CC="gcc-4.0"
export CXX="g++-4.0"
export CFLAGS="-arch i386 -arch ppc -mmacosx-version-min=10.4 -DMAC_OS_X_VERSION_MIN_REQUIRED=1040 -isysroot /Developer/SDKs/MacOSX10.4u.sdk"
export CXXFLAGS=$CFLAGS
export LDFLAGS="-arch i386 -arch ppc"

I'm also changing the install_name after build to @executable_path/../Frameworks/libname after it's built.

Any ideas on why I'm getting the above error on Leopard when built from Snow Leopard targeting 10.4?

Thanks in advance.

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

 _______________________________________________
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>
    • Re: unknown required load command 0x80000022
      • From: Grant Limberg <email@hidden>
References: 
 >unknown required load command 0x80000022 (From: Grant Limberg <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