Compiling the Wii Unscrambler in OSX
When you try to compile the WII Unscrambler in OSX using GCC (which is available with xcode tools) using:
gcc -o unsc04 ecma-267.c unscrambler.c
you'll receive a warning:
$ gcc -o unsc04 ecma-267.c unscrambler.cunscrambler.c: In function ‘main':
unscrambler.c:128: warning: assignment makes pointer from integer without a cast
unscrambler.c:133: warning: assignment makes pointer from integer without a cast
/usr/bin/ld: Undefined symbols:
_fopen64
Easy solution:
Change the fopen64 parts of the unscrambler.c to "fopen" as OS X does not have'fopen64' since regular ‘fopen' works fine with 64-bit extents.
$ gcc -o unsc04 ecma-267.c unscrambler.c$ ./unsc04
GOD/WOD unscrambler 0.4 ([email protected])
This program is distributed under GPL license,
see the LICENSE file for more info../unsc04 input output
EDIT: Over here you can get the universal binary