st3fan / ios-openssl

Port of OpenSSL for iOS
389 stars 118 forks source link

ARM builds fail #2

Closed Stokestack closed 13 years ago

Stokestack commented 13 years ago

Thanks for posting this! Unfortunately, all builds except i386 fail. I checked the logs under the /tmp directory, and the ARM builds start with:

making all in crypto... /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -arch armv7 -I. -I.. -I../include -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk -DOPENSSL_THREADS -pthread -D_THREAD_SAFE -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DTERMIOS -O3 -fomit-frame-pointer -Wall -c -o cryptlib.o cryptlib.c In file included from cryptlib.c:117: cryptlib.h:62:20: error: stdlib.h: No such file or directory cryptlib.h:63:20: error: string.h: No such file or directory

and continue with similar errors on std symbols and other things like size_t.

This is under OS 10.6.7, Xcode 4.0.2. Any ideas? Thanks!

Stokestack commented 13 years ago

OK, it looks like this arose from the hard-coded 4.2 SDK path. Ironwolf's branch solves the problem by changing the path to one appropriate for 4.3.