- (simbab) wrote in macfurs,
-
simbab
macfurs

  • Mood:

Bus Error

I have a small Unix application (this, for the interested) that I compiled into a Universal binary on Leopard. It runs fine on Leopard, but on the Macs at work, which run Tiger, it throws a Bus Error on startup no matter how I run it or what options I use. This has been confirmed on both a iMac G5 and an Intel iMac. The version of Tiger is 10.4.11.

Is there anything I need to know about compiling Unix apps to run on Tiger (using Leopard) using Apple's compiler (the Xcode version should be the latest available, but I'm not sure)? Thanks!
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 4 comments

Deleted comment

simbab

November 11 2009, 00:42:51 UTC 7 years ago Edited:  November 11 2009, 00:44:15 UTC

It's an old version, and I either need a Universal binary or I need to be able to build a ppc binary. Seems like some things support the +universal flag and others don't. :X

Edit: It also wants to build an updated version of OpenSSL that is only available by default on Snow Leopard, which is bothersome because it would then be dependent on an additional binary that didn't come with the system.
Yeah, this is pretty disheartening; I went looking around on Google real quick and there's a number of people seeing the same problem... as someone who is still on 10.4 this does not give me a warm fuzzy ;)

Are you building with GCC? You can add this switch to the build to probably resolve the issue, question is if you can find the right place in the make scripts to do so :) Otherwise the solution seems to be build it on 10.4, and then it runs on 10.4 or 10.5.

-mmacosx-version-min=10.4

Good luck!
Ooh. I like this sort of tip. It looks like it just might work. I'm not back at work with 10.4 machines until Thursday though. :X Plenty of time to build a test binary!