<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>Hello, </div>
<div><br>
</div>
<div>I have problems with compiling Openssl FIPS library for iOS 7.1 (openssl-fips 2.0.9) on Yosemite (using Xcode 6.2).</div>
<div><br>
</div>
<div>After checking few build scripts available on net (mainly for older versions of openssl-fips library) I came across the testing instructions   ( <a href="http://opensslfoundation.com/testing/validation-2.0/platforms/ios-7.1/TestingInstructions-iOS-7.1.pdf">http://opensslfoundation.com/testing/validation-2.0/platforms/ios-7.1/TestingInstructions-iOS-7.1.pdf</a>).
 I’ve tried to compile it with the openssl-fips 2.0.10 (which contains the patches described in instruction). Nevertheless I've stuck on cross compilation of FIPS module.</div>
<div><br>
</div>
<div>The problem is:</div>
<div><span class="Apple-tab-span" style="white-space: pre;"></span>ld: building for iOS Simulator, but linking against dylib built for MacOSX file '/usr/lib/libSystem.dylib' for architecture i386</div>
<div>clang: error: linker command failed with exit code 1 (use -v to see invocation)</div>
<div><br>
</div>
<div> What I’m doing wrong? Is there a known issue (or maybe some workaround) about compiling the Openssl FIPS library on Yosemite?</div>
<div>I would appreciate any help.</div>
<ul>
<li>Instructions: <a href="http://opensslfoundation.com/testing/validation-2.0/platforms/ios-7.1/TestingInstructions-iOS-7.1.pdf">http://opensslfoundation.com/testing/validation-2.0/platforms/ios-7.1/TestingInstructions-iOS-7.1.pdf</a></li><li>Source files: <a href="http://opensslfoundation.com/testing/validation-2.0/source/openssl-fips-2.0.10.tar.gz">http://opensslfoundation.com/testing/validation-2.0/source/openssl-fips-2.0.10.tar.gz</a></li><li>Build scripts: <a href="http://opensslfoundation.com/testing/validation-2.0/platforms/ios-7.1/">http://opensslfoundation.com/testing/validation-2.0/platforms/ios-7.1/</a></li><li>Environment:</li></ul>
<blockquote style="margin: 0px 0px 0px 40px; border: none; padding: 0px;">
<blockquote style="margin: 0px 0px 0px 40px; border: none; padding: 0px;"><b>$ uname -a</b></blockquote>
</blockquote>
<div>
<blockquote style="margin: 0px 0px 0px 40px; border: none; padding: 0px;">
<blockquote style="margin: 0px 0px 0px 40px; border: none; padding: 0px;">
<div>Darwin lkaweaosxeu.local 14.3.0 Darwin Kernel Version 14.3.0: Mon Mar 23 11:59:05 PDT 2015; root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64</div>
<div><b>$ sw_vers -productVersion</b></div>
<div>10.10.3</div>
<div><b>$ sysctl -n machdep.cpu.brand_string</b></div>
<div>Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz</div>
</blockquote>
</blockquote>
</div>
<div><br>
</div>
<ul>
<li>Error: (log files attached)</li></ul>
<div>
<blockquote style="margin: 0px 0px 0px 40px; border: none; padding: 0px;">
<blockquote style="margin: 0px 0px 0px 40px; border: none; padding: 0px;">
<div>ld: building for iOS Simulator, but linking against dylib built for MacOSX file '/usr/lib/libSystem.dylib' for architecture i386</div>
<div>clang: error: linker command failed with exit code 1 (use -v to see invocation)</div>
<div>make[3]: *** [../fips_standalone_sha1] Error 1</div>
<div>make[2]: *** [subdirs] Error 1</div>
<div>make[1]: *** [all] Error 2</div>
<div>make: *** [build_fips] Error 1</div>
</blockquote>
</blockquote>
<ul>
<li>The attached iOS-7.1.zip containing files I used for compiling. 
<ul>
<li>The output from myBuild-step1-compilationOfIncoreMacho.sh (instructions from chapter 4.3) is in file log-step1-compilationOfIncoreMacho.log</li><li>The output from myBuild-step2-crossCompilationOfFIPS.sh (instructions from chapter 4.4) is in file log-step2-crossCompilationOfFIPS.log</li></ul>
</li></ul>
<blockquote style="margin: 0px 0px 0px 40px; border: none; padding: 0px;">
<blockquote style="margin: 0px 0px 0px 40px; border: none; padding: 0px;"><br>
</blockquote>
</blockquote>
</div>
<div><br>
</div>
<div>Thanks in advance, </div>
<div>Anna Kawecka</div>
<div>
<div>
<p class="MsoNormal" style="font-size: 11pt; margin: 0cm 0cm 0.0001pt;"><span style="color: rgb(31, 73, 125); font-family: Arial, sans-serif; text-decoration: none;"></span></p>
</div>
</div>
<div style="font-family: Calibri;"></div>
</body>
</html>