Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Modifying the build script #6

Closed
scompt opened this Issue Sep 29, 2012 · 2 comments

Comments

Projects
None yet
2 participants

scompt commented Sep 29, 2012

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?

Owner

st3fan commented Oct 2, 2012

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

  • ./Configure BSD-generic32 --openssldir="/tmp/openssl-${OPENSSL_VERSION}-${ARCH}" &> "/tmp/openssl-${OPENSSL_VERSION}-${ARCH}.log"
  • ./Configure BSD-generic32 no-md5 --openssldir="/tmp/openssl-${OPENSSL_VERSION}-${ARCH}" &> "/tmp/openssl-${OPENSSL_VERSION}-${ARCH}.log"

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 Oct 2, 2012

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.

@st3fan st3fan closed this Dec 3, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment