Building packages which require Xcode2.5 on leopard

Steve Renals s.renals at ed.ac.uk
Mon Jun 2 22:59:17 PDT 2008


Hello,

I'm having problems installing packages which require Xcode  
MacOSX10.4u.sdk on Leopard.  A good example of a package with which I  
am having problems is aquaterm.

I'm running 10.5.3 on a macbook pro, and have Xcode 3.0 installed, and  
MacPorts 1.6.

I install Xcode 2.5 alongside 3.0;  it defaults to install as / 
Xcode2.5 ;  packages requiring Xcode2.5 seem to expect /Developer/SDKs/ 
MacOSX10.4u.sdk, so I symlink to /Xcode2.5/SDKs/MacOSX10.4u.sdk.    
This gets me one step further, but the build process picks up / 
Developer/usr/bin/gcc-4.0 (Xcode 3) (rather than /Xcode2.5/usr/bin/ 
gcc-4.0 ?) and compiling with this 'wrong' gcc fails (excerpt below).

How can I build Xcode2.5 packages on leopard with both Xcode2.5 and  
Xcode3.0 installed?  More specifically how do I make the build pick up  
the Xcode2.5 compiler?

thanks - Steve


---------------------


  /Developer/usr/bin/gcc-4.0 -x objective-c-header -arch ppc -pipe - 
Wno-trigraphs -fpascal-strings -fasm-blocks -Os -fmessage-length=0 - 
mtune=G4 -mmacosx-version-min=10.1 -gdwarf-2 -I/opt/local/var/macports/ 
build/ 
_opt_local_var_macports_sources_rsync 
.macports.org_release_ports_aqua_aquaterm/work/aquaterm/build/ 
AquaTerm.build/Deployment/AQTFwk.build/AquaTerm.hmap -Wmost -Wno-four- 
char-constants -Wno-unknown-pragmas -F/opt/local/var/macports/build/ 
_opt_local_var_macports_sources_rsync 
.macports.org_release_ports_aqua_aquaterm/work/aquaterm/build/ 
Deployment -I/opt/local/var/macports/build/ 
_opt_local_var_macports_sources_rsync 
.macports.org_release_ports_aqua_aquaterm/work/aquaterm/build/ 
Deployment/include -I/opt/local/var/macports/build/ 
_opt_local_var_macports_sources_rsync 
.macports.org_release_ports_aqua_aquaterm/work/aquaterm/build/ 
AquaTerm.build/Deployment/AQTFwk.build/DerivedSources -isysroot / 
Developer/SDKs/MacOSX10.4u.sdk -c /Developer/SDKs/MacOSX10.4u.sdk/ 
System/Library/Frameworks/AppKit.framework/Headers/AppKit.h -o / 
Library/Caches/com.apple.Xcode.0/SharedPrecompiledHeaders/AppKit- 
fnqlhyfibnglwocvctysklolcwvr/AppKit.h.gch

In file included from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/ 
Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:12,
                  from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/ 
Frameworks/Foundation.framework/Headers/Foundation.h:6,
                  from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/ 
Frameworks/AppKit.framework/Headers/AppKit.h:10:
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error:  
stdarg.h: No such file or directory
In file included from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/ 
Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16,
                  from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/ 
Frameworks/Foundation.framework/Headers/Foundation.h:6,
                  from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/ 
Frameworks/AppKit.framework/Headers/AppKit.h:10:
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/float.h:8:24: error:  
float.h: No such file or directory

-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.



More information about the macports-users mailing list