PasCocoa won't build on Darwin x86_64
Original Reporter info from Mantis: kanzels
-
Reporter name: Pavel Kanzelsberger
Original Reporter info from Mantis: kanzels
- Reporter name: Pavel Kanzelsberger
Description:
PasCocoa package compiles fine for i386 on darwin, but on x86_64 there are some bad casts usually using Single type. Mac is using native size of a floating type so it is correct for i386, but for x86_64 it should be Double.
Also there are some type casts for enumerations combined with pointers, since pointer is 8 bytes on x86_64 and enumeration is I think 4, compiler will end with errors. I added PtrUInt typecasts for these problematic parts. This is included in diff as well.
I'm attaching a diff of changes I made to get it compiled on darwin x86_64.
Additional information:
There's additional problem with ObjC bindings. I always get these undefine symbols even if I link to Cocoa.framework, AppKit.framework and also -k-lobjc
Undefined symbols:
"_class_addMethods", referenced from:
_FOUNDATION_NSOBJECT_$__ADDMETHOD$ANSISTRING$ANSISTRING$POINTER in foundation.o
"_objc_addClass", referenced from:
_FOUNDATION_NSOBJECT_$__CREATECLASSDEFINITION$ANSISTRING$ANSISTRING$$BOOLEAN in foundation.o
ld: symbol(s) not found
An error occurred while linking
This is on Snow Leopard 10.6, linking against 10.6 SDK as well.
Mantis conversion info:
- Mantis ID: 15931
- Version: 0.9.26.2