maloader
maloader copied to clipboard
Rez - any advice appreciated
I'm calling
LD_LIBRARY_PATH=/usr/local/lib32 ./ld-mac32 /usr/i686-apple-darwin10/usr/bin/Rez
and the dump is
__is_threaded: undefined symbol
AddResource: undefined symbol
BlockMoveData: undefined symbol
CharacterByteType: undefined symbol
CloseResFile: undefined symbol
CopyPascalStringToC: undefined symbol
CoreEndianFlipData: undefined symbol
Count1Resources: undefined symbol
CurResFile: undefined symbol
DateToSeconds: undefined symbol
Debugger: undefined symbol
DisposeHandle: undefined symbol
FSClose: undefined symbol
FSCreateResourceFile: undefined symbol
FSGetDataForkName: undefined symbol
FSGetResourceForkName: undefined symbol
FSRead: undefined symbol
FSWrite: undefined symbol
FSpDelete: undefined symbol
FSpMakeFSRef: undefined symbol
FSpOpenDataForkAsResourceFile: undefined symbol
FSpOpenResFile: undefined symbol
Get1IndResource: undefined symbol
Get1NamedResource: undefined symbol
Get1Resource: undefined symbol
GetDateTime: undefined symbol
GetEOF: undefined symbol
GetResAttrs: undefined symbol
GetResFileAttrs: undefined symbol
GetResInfo: undefined symbol
HLock: undefined symbol
HNoPurge: undefined symbol
HPurge: undefined symbol
HUnlock: undefined symbol
HomeResFile: undefined symbol
NativePathNameToFSSpec: undefined symbol
PBHGetFInfoSync: undefined symbol
PBHOpenDFSync: undefined symbol
PBHOpenRFSync: undefined symbol
PBHSetFInfoSync: undefined symbol
PtrToHand: undefined symbol
ReleaseResource: undefined symbol
RemoveResource: undefined symbol
ResError: undefined symbol
SecondsToDate: undefined symbol
SetEOF: undefined symbol
SetFPos: undefined symbol
SetResAttrs: undefined symbol
SetResInfo: undefined symbol
SetResLoad: undefined symbol
UpdateResFile: undefined symbol
UseResFile: undefined symbol
WriteResource: undefined symbol
Undefined function called
Aborted(6) -6 (@0x4787) PC: 0xf7780430
0x1
/usr/i686-apple-darwin10/usr/bin/Rez(_mh_execute_header+8ad) [0x18ad(8ad)]
/usr/i686-apple-darwin10/usr/bin/Rez(_mh_execute_header+21a0) [0x31a0(21a0)]
./ld-mac32() [0x804a1bc]
/lib/libc.so.6(abort+0x143) [0xf7485c03]
/lib/libc.so.6(gsignal+0x4f) [0xf748431f]
linux-gate.so.1(__kernel_vsyscall+0x10) [0xf7780430]
linux-gate.so.1(__kernel_rt_sigreturn+0) [0xf7780410]
Aborted
I've found the Rez is 32bit app so I've compiled OpenCF Lite as 32bit and placed it to /usr/local/lib32 (/usr/local/lib contains 64bit OpenCF Lite as well). The 32bit apps (like hello world) are works. But some of them produces an errors (I guess it is because it uses Carbon functions).
Not sure but maybe there is a workaround available?
I've copied most of the MacOSX 10.6 contents (except /Applications) to my linux box.
The otool running from the linux displays the following:
$ ./ld-mac32 /usr/i686-apple-darwin10/usr/bin/otool -L /usr/i686-apple-darwin10/usr/bin/Rez
/usr/i686-apple-darwin10/usr/bin/Rez (architecture i386):
/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 44.0.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 830.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.0)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 550.29.0)
/usr/i686-apple-darwin10/usr/bin/Rez (architecture ppc7400):
/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 44.0.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 830.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.0)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 550.29.0)
The /System and /Library are symlinks to the mac installation as well as /usr/lib/system.