HyeongminSeo / iphone-dataprotection

Automatically exported from code.google.com/p/iphone-dataprotection
0 stars 0 forks source link

Cannot build ramdisk_tools #24

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. cd IphoneDataProtection
2. make -C ramdisk_tools

What is the expected output? What do you see instead?
 - ramdisk_tools begining to build
 - output is attached

What version of the product are you using? On what operating system?
 - the latest at the moment of writing : fc60e7b35bb2
 - Mac OS X Snow Leopard 10.6.7

Please provide any additional information below.
- Previously successfully built emf_decrypter ahdn hfsplus on the same machine. 
hence the need to get the plist with ramdisk_tools

Original issue reported on code.google.com by forge...@gmail.com on 9 Oct 2011 at 6:16

Attachments:

GoogleCodeExporter commented 8 years ago
Hi, you need to fix manually the SDK path in the following line in the Makefile 
:
CFLAGS=-Wall -arch armv6 -isysroot 
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk/

Original comment by jean.sig...@gmail.com on 9 Oct 2011 at 7:44

GoogleCodeExporter commented 8 years ago
Hello. 
Thank you for the prompt response.
I followed your instructions and pointed the cflags to the right SDK.

this is the console output while make-ing:

SidMac:IphoneDataProtection sid$ make -C ramdisk_tools/
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-gcc-
4.0.1  -Wall -arch armv6 -isysroot 
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.1.sdk/ 
-I/usr/local/include -framework IOKit -framework CoreFoundation -framework 
Security -O3 
-F/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.1.sdk/System/L
ibrary/PrivateFrameworks/ -framework IOMobileFramebuffer -framework 
CoreGraphics -framework CoreSurface -framework ImageIO -o data_partition 
data_partition.c device_info.c IOAESAccelerator.c AppleEffaceableStorage.c 
AppleKeyStore.c bsdcrypto/pbkdf2.c bsdcrypto/sha1.c bsdcrypto/key_wrap.c 
bsdcrypto/rijndael.c util.c IOKit.c registry.c
data_partition.c: In function ‘main’:
data_partition.c:9: warning: initialization discards qualifiers from pointer 
target type
AppleEffaceableStorage.c:50:25: warning: multi-character character constant
bsdcrypto/pbkdf2.c: In function ‘pkcs5_pbkdf2’:
bsdcrypto/pbkdf2.c:102: warning: pointer targets in passing argument 3 of 
‘hmac_sha1’ differ in signedness
bsdcrypto/pbkdf2.c:106: warning: pointer targets in passing argument 3 of 
‘hmac_sha1’ differ in signedness
bsdcrypto/key_wrap.c: In function ‘aes_key_wrap’:
bsdcrypto/key_wrap.c:71: warning: pointer targets in passing argument 2 of 
‘rijndael_encrypt’ differ in signedness
bsdcrypto/key_wrap.c:71: warning: pointer targets in passing argument 3 of 
‘rijndael_encrypt’ differ in signedness
bsdcrypto/key_wrap.c: In function ‘aes_key_unwrap’:
bsdcrypto/key_wrap.c:106: warning: pointer targets in passing argument 2 of 
‘rijndael_decrypt’ differ in signedness
bsdcrypto/key_wrap.c:106: warning: pointer targets in passing argument 3 of 
‘rijndael_decrypt’ differ in signedness
ld: warning: -force_cpusubtype_ALL will become unsupported for ARM architectures
ldid -S data_partition
make: ldid: No such file or directory
make: *** [data_partition] Error 1

Original comment by forge...@gmail.com on 10 Oct 2011 at 9:06

GoogleCodeExporter commented 8 years ago
You need ldid, that you can download here
http://code.google.com/p/networkpx/downloads/detail?name=ldid&can=2&q=
Place it somewhere in your path like /usr/bin or /usr/local/bin

Original comment by jean.sig...@gmail.com on 10 Oct 2011 at 3:30

GoogleCodeExporter commented 8 years ago
Worked as a charm. Thank you very much :)
onto trying to puzzle all the pieces together now.

Original comment by forge...@gmail.com on 10 Oct 2011 at 6:26

GoogleCodeExporter commented 8 years ago

Original comment by jean.sig...@gmail.com on 14 Oct 2011 at 12:51