st3fan / ios-openssl

Port of OpenSSL for iOS
389 stars 118 forks source link

Modifying the build script #6

Closed scompt closed 10 years ago

scompt commented 11 years ago

Thanks for this script. I've been using it in a number of apps for a couple years now, I think.

My problem is that another library I want to use (Google AdMobs Ads SDK) is colliding with the MD5 from libcrypto. I'm attempting to remove the MD5 support from libcrypto to eliminate the collision.

My approach is to add no-md5 to line 39 of build.sh. To get this to take effect, a log message said I need to run make depend. I added

make depend &> "/tmp/openssl-${OPENSSL_VERSION}-${ARCH}.log"

before the make on line 43.

When I build now, I get tons of errors during make depend: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/include/machine/endian.h:35:25: error: i386/endian.h: No such file or directory In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/include/sys/signal.h:81, from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/include/sys/wait.h:116, from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/include/stdlib.h:65, from LPdir_unix.c:29, from o_dir.c:74:

I'm not sure where I should to resolve these. Can you provide any guidance?

st3fan commented 11 years ago

I'm not sure. I changed the line like this:

But then the build fails with an error different than what you are seeing:

In file included from s3_srvr.c:170: ../include/openssl/md5.h:70:2: error: #error MD5 is disabled.

Which makes me wonder if you can actually disable MD5 without breaking things.

S.

On 2012-09-29, at 6:10 AM, Edward Dale notifications@github.com wrote:

Thanks for this script. I've been using it in a number of apps for a couple years now, I think.

My problem is that another library I want to use (Google AdMobs Ads SDK) is colliding with the MD5 from libcrypto. I'm attempting to remove the MD5 support from libcrypto to eliminate the collision.

My approach is to add no-md5 to line 39 of build.sh. To get this to take effect, a log message said I need to run make depend. I added

make depend &> "/tmp/openssl-${OPENSSL_VERSION}-${ARCH}.log" before the make on line 43.

When I build now, I get tons of errors during make depend: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/include/machine/endian.h:35:25: error: i386/endian.h: No such file or directory In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/include/sys/signal.h:81, from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/include/sys/wait.h:116, from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/include/stdlib.h:65, from LPdir_unix.c:29, from o_dir.c:74:

I'm not sure where I should to resolve these. Can you provide any guidance?

— Reply to this email directly or view it on GitHub.

scompt commented 11 years ago

Sorry, I didn't post some steps that I tried taking.

I got the same error as you posted, which led me to also disable ssl3 using "no-ssl3". I believe that's what led to me to the error I posted before. I'm only using a couple functions from libcrypto, so disabling ssl3 shouldn't be a problem.