fink error: environment variable set to: 10.1 2

Posted by jro
on Monday, January 21

I, recently, decided to move some of my home rails sites to my aging PPC-based mac mini. I’m still running Tiger on it because I’m lazy, don’t need any new features, and know how macports & fink work in Tiger. I ran through the normal, install fink, ruby package,… routine. But, when I got to compiling some of my gems, I got this error:

/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: flag: -undefined dynamic_lookup can't be used with MACOSX_DEPLOYMENT_TARGET environment variable set to: 10.1

Which seems pretty strange since I’m obviously running on 10.4. And, while I don’t know why the system is getting it wrong, a quick work around is to set the environment variable yourself.

export MACOSX_DEPLOYMENT_TARGET=10.4

Oddly, it doesn’t happen on my intel macs, so I suspect that there’s a bug somewhere in the PPC fink stack that just doesn’t effect all compilations. /shrug.

Comments

Leave a response

  1. Han,XiaoMarch 31, 2008 @ 10:09 PM
    Hi, thank you for this tip. I didn't realize I could set the environment variable manually.
  2. jroApril 15, 2008 @ 10:53 AM
    Glad I could help!
Comment