gcc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -o bin/i386/program -arch i386 -Wall -D_LARGEFILE64_SOURCE -o sansapatcher-i386 main.c sansapatcher.c sansaio-posix.c bootimg.c
In file included from sansapatcher.h:23,
from main.c:29:
sansaio.h:54: error: parse error before 'loff_t'
sansaio.h:54: warning: no semicolon at end of struct or union
sansaio.h:61: error: parse error before 'loff_t'
main.c: In function 'display_partinfo':
main.c:98: error: dereferencing pointer to incomplete type
main.c:102: error: dereferencing pointer to incomplete type
main.c:105: error: dereferencing pointer to incomplete type
main.c:106: error: dereferencing pointer to incomplete type
main.c:106: error: dereferencing pointer to incomplete type
main.c:107: error: dereferencing pointer to incomplete type
main.c:108: error: dereferencing pointer to incomplete type
main.c:109: error: dereferencing pointer to incomplete type
main.c: In function 'main':
main.c:127: error: storage size of 'sansa' isn't known
main.c:127: warning: unused variable 'sansa'
main.c:123: warning: unused variable 'inputsize'
main.c:122: warning: unused variable 'outfile'
main.c:122: warning: unused variable 'infile'
In file included from sansapatcher.c:30:
sansaio.h:54: error: parse error before 'loff_t'
sansaio.h:54: warning: no semicolon at end of struct or union
sansaio.h:61: error: parse error before 'loff_t'
sansapatcher.c: In function 'read_partinfo':
sansapatcher.c:142: error: dereferencing pointer to incomplete type
sansapatcher.c:153: error: dereferencing pointer to incomplete type
sansapatcher.c:154: error: dereferencing pointer to incomplete type
sansapatcher.c:155: error: dereferencing pointer to incomplete type
sansapatcher.c:158: error: dereferencing pointer to incomplete type
sansapatcher.c:168: error: dereferencing pointer to incomplete type
sansapatcher.c:168: error: 'loff_t' undeclared (first use in this function)
sansapatcher.c:168: error: (Each undeclared identifier is reported only once
sansapatcher.c:168: error: for each function it appears in.)
sansapatcher.c:168: error: parse error before 'sansa'
sansapatcher.c: In function 'is_e200':
sansapatcher.c:325: error: dereferencing pointer to incomplete type
sansapatcher.c:325: error: dereferencing pointer to incomplete type
sansapatcher.c:326: error: dereferencing pointer to incomplete type
sansapatcher.c:326: error: dereferencing pointer to incomplete type
sansapatcher.c:333: error: dereferencing pointer to incomplete type
sansapatcher.c:335: error: dereferencing pointer to incomplete type
sansapatcher.c:339: error: dereferencing pointer to incomplete type
sansapatcher.c:341: error: dereferencing pointer to incomplete type
sansapatcher.c:352: error: dereferencing pointer to incomplete type
sansapatcher.c:354: error: dereferencing pointer to incomplete type
sansapatcher.c:358: error: dereferencing pointer to incomplete type
sansapatcher.c:360: error: dereferencing pointer to incomplete type
sansapatcher.c: In function 'sansa_scan':
sansapatcher.c:389: error: dereferencing pointer to incomplete type
sansapatcher.c:408: error: dereferencing pointer to incomplete type
sansapatcher.c:411: error: dereferencing pointer to incomplete type
sansapatcher.c:417: error: dereferencing pointer to incomplete type
sansapatcher.c: In function 'load_original_firmware':
sansapatcher.c:438: error: dereferencing pointer to incomplete type
sansapatcher.c: In function 'add_bootloader':
sansapatcher.c:565: error: dereferencing pointer to incomplete type
sansapatcher.c:567: error: dereferencing pointer to incomplete type
In file included from sansaio-posix.c:43:
sansaio.h:54: error: parse error before 'loff_t'
sansaio.h:54: warning: no semicolon at end of struct or union
sansaio.h:61: error: parse error before 'loff_t'
sansaio-posix.c: In function 'sansa_open':
sansaio-posix.c:52: error: dereferencing pointer to incomplete type
sansaio-posix.c:52: error: dereferencing pointer to incomplete type
sansaio-posix.c:53: error: dereferencing pointer to incomplete type
sansaio-posix.c:54: error: dereferencing pointer to incomplete type
sansaio-posix.c:58: error: dereferencing pointer to incomplete type
sansaio-posix.c:58: error: dereferencing pointer to incomplete type
sansaio-posix.c:59: error: dereferencing pointer to incomplete type
sansaio-posix.c:62: error: dereferencing pointer to incomplete type
sansaio-posix.c: In function 'sansa_reopen_rw':
sansaio-posix.c:71: error: dereferencing pointer to incomplete type
sansaio-posix.c:72: error: dereferencing pointer to incomplete type
sansaio-posix.c:72: error: dereferencing pointer to incomplete type
sansaio-posix.c:73: error: dereferencing pointer to incomplete type
sansaio-posix.c:74: error: dereferencing pointer to incomplete type
sansaio-posix.c: In function 'sansa_close':
sansaio-posix.c:82: error: dereferencing pointer to incomplete type
sansaio-posix.c: At top level:
sansaio-posix.c:95: error: parse error before 'loff_t'
sansaio-posix.c: In function 'sansa_seek':
sansaio-posix.c:99: warning: implicit declaration of function 'lseek64'
sansaio-posix.c:99: error: 'sansa' undeclared (first use in this function)
sansaio-posix.c:99: error: (Each undeclared identifier is reported only once
sansaio-posix.c:99: error: for each function it appears in.)
sansaio-posix.c:99: error: 'pos' undeclared (first use in this function)
sansaio-posix.c: In function 'sansa_read':
sansaio-posix.c:109: error: dereferencing pointer to incomplete type
sansaio-posix.c: In function 'sansa_write':
sansaio-posix.c:114: error: dereferencing pointer to incomplete type
make: *** [sansapatcher-i386] Error 1