st3fan / ios-openssl

Port of OpenSSL for iOS
389 stars 118 forks source link

Error running builld.sh #8

Closed justinmakaila closed 11 years ago

justinmakaila commented 11 years ago

When I run build.sh, I get this:

~/Documents/Development/iOS/Frameworks/ios-openssl-master ~/Documents/Development/iOS/Frameworks/ios-openssl-master
+ cd openssl-1.0.1c
+ ./Configure BSD-generic32 --openssldir=/tmp/openssl-1.0.1c-i386
+ perl -i -pe 's|static volatile sig_atomic_t intr_signal|static volatile int intr_signal|' crypto/ui/ui_openssl.c
+ perl -i -pe 's|^CC= gcc|CC= /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc -arch i386|g' Makefile
+ perl -i -pe 's|^CFLAG= (.*)|CFLAG= -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk $1|g' Makefile
+ make
+ make install
+ popd
~/Documents/Development/iOS/Frameworks/ios-openssl-master
+ rm -rf openssl-1.0.1c
+ mkdir include
+ cp -r /tmp/openssl-1.0.1c-i386/include/openssl include/
cp: /tmp/openssl-1.0.1c-i386/include/openssl: No such file or directory
+ mkdir lib
+ lipo /tmp/openssl-1.0.1c-armv7/lib/libcrypto.a /tmp/openssl-1.0.1c-armv7s/lib/libcrypto.a /tmp/openssl-1.0.1c-i386/lib/libcrypto.a -create -output lib/libcrypto.a
lipo: can't open input file: /tmp/openssl-1.0.1c-armv7/lib/libcrypto.a (No such file or directory)
+ lipo /tmp/openssl-1.0.1c-armv7/lib/libssl.a /tmp/openssl-1.0.1c-armv7s/lib/libssl.a /tmp/openssl-1.0.1c-i386/lib/libssl.a -create -output lib/libssl.a
lipo: can't open input file: /tmp/openssl-1.0.1c-armv7/lib/libssl.a (No such file or directory)
+ rm -rf '/tmp/openssl-1.0.1c-*'
+ rm -rf '/tmp/openssl-1.0.1c-*.log'

effectively removing the precombiled libcrypto.a and libssl.a

justinmakaila commented 11 years ago

running OSX 10.8.3, 2.2GHz Intel Core i7

boundsj commented 11 years ago

bump

boundsj commented 11 years ago

FYI: There are a few issues on this repo like this one. They can probably all be resolved by changing the build.sh's sdk version value from 6.0 to 6.x (where x is whatever you have on your machine if it's not 6.0, most people probably have 6.1 at the time of this writing).

There is also already a pull request to update the build.sh file to use 6.1 but it might be better just to document it and expect it as an env variable.