[OpenAFS-port-darwin] 10.5 support

Jonas Maebe jonas.maebe@elis.ugent.be
Thu, 1 Aug 2013 14:02:46 +0200


Hi,

Even though no new builds for 10.5/ppc are distributed anymore, is  
building/installing OpenAFS 1.6.5 for 10.5/ppc still supported? (or at  
least supposed to work?)

After "./configure --with-afs-sysname=ppc_darwin_90", and manually  
setting the OSXSDK variable in src/platform/DARWIN/Makefile to  
macosx10.5.sdk (for some reason that replacement didn't happen  
successfully), I get compilation failures while building the prefpane  
due to missing protocol declarations:

CompileC build/OpenAFS.build/Release/OpenAFS.build/Objects-normal/i386/ 
IpConfiguratorCommander.o /Data/dev/openafs-1.6.5/src/platform/DARWIN/ 
AFSPreference/IpConfiguratorCommander.m normal i386 objective-c  
com.apple.compilers.gcc.4_0
     cd /Data/dev/openafs-1.6.5/src/platform/DARWIN/AFSPreference
     /Developer/usr/bin/gcc-4.0 -x objective-c -arch i386 -fmessage- 
length=0 -pipe -std=gnu99 -Wno-trigraphs -fpascal-strings -fasm-blocks  
-Os -Wreturn-type -Wunused-variable -isysroot /Developer/SDKs/ 
MacOSX10.5.sdk -fobjc-gc -mmacosx-version-min=10.5 -I/Data/dev/ 
openafs-1.6.5/src/platform/DARWIN/AFSPreference/build/OpenAFS.build/ 
Release/OpenAFS.build/OpenAFS.hmap -F/Data/dev/openafs-1.6.5/src/ 
platform/DARWIN/AFSPreference/build/Release -I/Data/dev/openafs-1.6.5/ 
src/platform/DARWIN/AFSPreference/build/Release/include -I/Data/dev/ 
openafs-1.6.5/src/platform/DARWIN/AFSPreference/build/OpenAFS.build/ 
Release/OpenAFS.build/DerivedSources/i386 -I/Data/dev/openafs-1.6.5/ 
src/platform/DARWIN/AFSPreference/build/OpenAFS.build/Release/ 
OpenAFS.build/DerivedSources -include /var/folders/QZ/QZn+OhEP2RWpbk 
+BYmguy+++7yI/-Caches-/com.apple.Xcode.10213/SharedPrecompiledHeaders/ 
AFSCommander_Prefix-aszqskyvcvxmxbbcqetekstmlywa/ 
AFSCommander_Prefix.pch -c /Data/dev/openafs-1.6.5/src/platform/DARWIN/ 
AFSPreference/IpConfiguratorCommander.m -o /Data/dev/openafs-1.6.5/src/ 
platform/DARWIN/AFSPreference/build/OpenAFS.build/Release/ 
OpenAFS.build/Objects-normal/i386/IpConfiguratorCommander.o
In file included from /Data/dev/openafs-1.6.5/src/platform/DARWIN/ 
AFSPreference/IpConfiguratorCommander.h:11,
                  from /Data/dev/openafs-1.6.5/src/platform/DARWIN/ 
AFSPreference/IpConfiguratorCommander.m:9:
/Data/dev/openafs-1.6.5/src/platform/DARWIN/AFSPreference/ 
AFSCommanderPref.h:24: error: cannot find protocol declaration for  
'NSTableViewDataSource'
/Data/dev/openafs-1.6.5/src/platform/DARWIN/AFSPreference/ 
AFSCommanderPref.h:24: error: cannot find protocol declaration for  
'NSTableViewDelegate'


CompileC build/OpenAFS.build/Release/OpenAFS.build/Objects-normal/ppc/ 
AFSCommanderPref.o /Data/dev/openafs-1.6.5/src/platform/DARWIN/ 
AFSPreference/AFSCommanderPref.m normal ppc objective-c  
com.apple.compilers.gcc.4_0
     cd /Data/dev/openafs-1.6.5/src/platform/DARWIN/AFSPreference
     /Developer/usr/bin/gcc-4.0 -x objective-c -arch ppc -fmessage- 
length=0 -pipe -std=gnu99 -Wno-trigraphs -fpascal-strings -fasm-blocks  
-Os -Wreturn-type -Wunused-variable -isysroot /Developer/SDKs/ 
MacOSX10.5.sdk -fobjc-gc -mtune=G5 -mmacosx-version-min=10.5 -I/Data/ 
dev/openafs-1.6.5/src/platform/DARWIN/AFSPreference/build/ 
OpenAFS.build/Release/OpenAFS.build/OpenAFS.hmap -F/Data/dev/ 
openafs-1.6.5/src/platform/DARWIN/AFSPreference/build/Release -I/Data/ 
dev/openafs-1.6.5/src/platform/DARWIN/AFSPreference/build/Release/ 
include -I/Data/dev/openafs-1.6.5/src/platform/DARWIN/AFSPreference/ 
build/OpenAFS.build/Release/OpenAFS.build/DerivedSources/ppc -I/Data/ 
dev/openafs-1.6.5/src/platform/DARWIN/AFSPreference/build/ 
OpenAFS.build/Release/OpenAFS.build/DerivedSources -include /var/ 
folders/QZ/QZn+OhEP2RWpbk+BYmguy+++7yI/-Caches-/com.apple.Xcode.10213/ 
SharedPrecompiledHeaders/AFSCommander_Prefix- 
adtivpdsmpcjtcdrtawcqondpwln/AFSCommander_Prefix.pch -c /Data/dev/ 
openafs-1.6.5/src/platform/DARWIN/AFSPreference/AFSCommanderPref.m -o / 
Data/dev/openafs-1.6.5/src/platform/DARWIN/AFSPreference/build/ 
OpenAFS.build/Release/OpenAFS.build/Objects-normal/ppc/ 
AFSCommanderPref.o
In file included from /Data/dev/openafs-1.6.5/src/platform/DARWIN/ 
AFSPreference/AFSCommanderPref.m:9:
/Data/dev/openafs-1.6.5/src/platform/DARWIN/AFSPreference/ 
AFSCommanderPref.h:24: error: cannot find protocol declaration for  
'NSTableViewDataSource'
/Data/dev/openafs-1.6.5/src/platform/DARWIN/AFSPreference/ 
AFSCommanderPref.h:24: error: cannot find protocol declaration for  
'NSTableViewDelegate'
/Data/dev/openafs-1.6.5/src/platform/DARWIN/AFSPreference/ 
AFSCommanderPref.m: In function '-[AFSCommanderPref removeLink:]':
/Data/dev/openafs-1.6.5/src/platform/DARWIN/AFSPreference/ 
AFSCommanderPref.m:959: warning: 'NSPropertyListSerialization' may not  
respond to '+dataWithPropertyList:format:options:error:'
/Data/dev/openafs-1.6.5/src/platform/DARWIN/AFSPreference/ 
AFSCommanderPref.m:959: warning: (Messages without a matching method  
signature
/Data/dev/openafs-1.6.5/src/platform/DARWIN/AFSPreference/ 
AFSCommanderPref.m:959: warning: will be assumed to return 'id' and  
accept
/Data/dev/openafs-1.6.5/src/platform/DARWIN/AFSPreference/ 
AFSCommanderPref.m:959: warning: '...' as arguments.)

Thanks,


Jonas

PS: I'm mainly interested in the fix from  
3bbd8eacf421c758b112e02d8fb24ac0419b9331 . I can check out and build  
that revision (or 1.6.2) if there is more chance that it will (still)  
work correctly with 10.5/ppc.