Compiling for all OS X versions
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Hi all, Starting this binary on a G3 Mac with 10.4.11 installed results in: dyld: lazy symbol binding failed: Symbol not found: _getopt$UNIX2003 Referenced from: /tmp/testapp Expected in: /usr/lib/libSystem.B.dylib dyld: Symbol not found: _getopt$UNIX2003 Referenced from: /tmp/testapp Expected in: /usr/lib/libSystem.B.dylib Starting this binary on a G4 Mac with 10.3.9 installed results in: Thanks for your help, Uwe _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... I am trying to compile C sources on a MacBook with Mac OS X 10.5.6 and "XCode 3.0 Developer Tools for Mac OS X v10.5 Leopard" from the original MacBook installation media as well as "Mac OS X v10.3.9 Support" from the same source installed. 1. To compile Intel binaries from the makefiles on the 10.5.6 MacBook I use: CC=gcc CFLAGS= LDFLAGS= The results are as expected and the binaries can be launched on Intel Macs. 2. To compile PPC binaries for Mac OS X 10.3.9 from the makefiles on the 10.5.6 MacBook I use: CC=gcc-3.3 CFLAGS=-arch ppc LDFLAGS=-arch ppc -macosx_version_min=10.3.9 I expect the result should run on PPC G3, G4, G5 Macs with 10.3.9 and later installed, but: dyld: /tmp/testapp Undefined symbols: /tmp/testapp undefined reference to ___stderrp expected to be defined in /usr/lib/libSystem.B.dylib Trace/BPT trap 3. Compiling the same makefile from 2. on a G3 Mac OS X 10.4.11 produces binaries which can be run on PPC G3, G4 and G5 as expected. What am I doing wrong in approach 2? What does the dyld messages mean? What do I need to do in order to compile on the Intel 10.5.6 machine for all PPC processors and Mac OS X versions 10.3.9 and 10.4.11? This email sent to site_archiver@lists.apple.com
participants (1)
-
mlists@ugsoft.de