Mac OS X on x86 Hardware 2008–2024 Technical Archive
InfiniteMac OSx86 › Hardware, Systems & Dev › xcode 3.2 gcc terminal
6,227 reads · 2009-08-01 – 2009-09-12

xcode 3.2 gcc terminal

everything i build in the terminal with xcode 3.2 under snow leo does not run under 10.5. i tried gcc 4.2 and 4.0. also different options like -arch i386 etc. -isysroot as a CFLAG doesn't seem to work at all. no matter what i do i always…

Primary Author
@tham50 Published 2009-08-01
Collection
Hardware, Systems & Dev
Archival Footprint
6,227 historical reads · 2 curated field notes (from 4 dispatches) · 2009-08-01 – 2009-09-12
Credited Voices (3)
@tham50 (2)@MoC@jcarcinogen

everything i build in the terminal with xcode 3.2 under snow leo does not run under 10.5. i tried gcc 4.2 and 4.0. also different options like -arch i386 etc.
-isysroot as a CFLAG doesn't seem to work at all.

no matter what i do i always get:

dyld: unknown required load command 0x80000022
Trace/BPT trap

and it's the same no matter which app i try.

how can i get the apps built under 10.6 via terminal to run under 10.5?

any hints are welcome

Author Updates & Technical Revisions

Follow-up dispatches by @tham50

Author Update #1 @tham50 2009-09-12 ↳ Re: @jcarcinogen
@jcarcinogenIf you want compatibility with leopard you need to use the 10.5 SDK in 10.6. If you use the terminal instead of xcode you need to use a compiler flag to let it know it needs the 10.5sdk.

which is the -isysroot i used afaik

Synthesized Community Field Notes

2 technical responses curated from 4 original dispatches

Field Note #1 @MoC 2009-08-19

I think there might be some API change that we don't know about, I don't see any other reason :

Field Note #2 @jcarcinogen 2009-08-24

If you want compatibility with leopard you need to use the 10.5 SDK in 10.6. If you use the terminal instead of xcode you need to use a compiler flag to let it know it needs the 10.5sdk.

Sources & Contributor Provenance (3 credited usernames · Thread #3519)
UsernameDossier ContributionDispatchesActive Window
@tham50Primary Author22009-08-01 → 2009-09-12
@MoCContributor12009-08-19
@jcarcinogenContributor12009-08-24