• 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 once again
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unknown required load command 0x80000022 once again


  • Subject: Re: unknown required load command 0x80000022 once again
  • From: mogambo <email@hidden>
  • Date: Mon, 3 May 2010 10:59:31 -0700

You can try this to confirm that Leopard is loading the x86_64 architecture and that's the source of the problem:

       arch -arch i386 ./mount_fsd

If that works, then mount_fsd's i386 architecture is just fine and Leopard-compatbile in terms of Mach-O load commands.

Yup, that works.  So, it is loading x86_64 arch.
 
You could, of course, build with "-mmacosx-version-min=10.5", but then you'd have to be careful to make the code Leopard-compatible.  If it's not using any Snow Leopard-specific APIs, the simplest way is to switch to the 10.5 SDK, too.

I switched to "-mmacosx-version-min=10.5", but mount() returns EFAULT.  The manpage for mount(2) says:
EFAULT: Dir pointer outside the process's allocated address space

I have not looked at the mount() code, but I can understand the requirement that the mount utility, the kernel and the VFS driver all need to be of one architecture.  So, I somehow want to prevent 10.5 from loading the x86_64 arch, or specify the arch to load on 10.5.  Does anyone know how that can be done?

Thanks,
-m.
 _______________________________________________
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 once again
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: [iphone] SDK 3.2 and 4 beta
  • Next by Date: Re: unknown required load command 0x80000022 once again
  • Previous by thread: Re: unknown required load command 0x80000022 once again
  • Next by thread: Re: unknown required load command 0x80000022 once again
  • Index(es):
    • Date
    • Thread