<div dir="ltr"><a href="https://stackoverflow.com/questions/52327290/linking-openssl-with-webassembly">https://stackoverflow.com/questions/52327290/linking-openssl-with-webassembly</a>  <br><div>Looks very similar...</div><div><br></div><div>'<span style="color:rgb(36,39,41);font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;font-size:15px">target_link_libraries(mainTest crypto) after that it all worked without warnings.'</span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 20, 2019 at 1:56 AM Richard Levitte <<a href="mailto:levitte@openssl.org">levitte@openssl.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The issue isn't with any defined or not so defined macro, but most<br>
probably rather with how you're loading the library in the 3rd party<br>
code base.  Could it be that you're linking with libssl only?<br>
<br>
Cheers,<br>
Richard<br>
<br>
On Fri, 10 May 2019 22:29:36 +0200,<br>
Sunghyun Park wrote:<br>
> <br>
> Hi, all. Thanks for your help, I could finish compilation to the end. <br>
> However, athough I successfully compiled with _no-asm_ options, I found a problem when loading the<br>
> compiled library in the 3rd party code base.<br>
> When looking into the source code, the definition of some function seems to require a specific<br>
> preprocessor to be compiled. <br>
> (For example, PEM_write_bio_DSAPrivateKey needs '#define OPENSSL_FIPS'.)<br>
> I installed openssl-1.0.2r.tar.gz and only provided no-asm for configuration.<br>
> Am I missing some dependencies or necessary options?<br>
> The error I'm facing is as follows:<br>
> <br>
>     error: undefined symbol: AES_ctr128_encrypt<br>
>     warning: To disable errors for undefined symbols use `-s ERROR_ON_UNDEFINED_SYMBOLS=0`<br>
>     error: undefined symbol: AES_set_encrypt_key<br>
>     error: undefined symbol: BIO_ctrl<br>
>     error: undefined symbol: BIO_free<br>
>     error: undefined symbol: BIO_new<br>
>     error: undefined symbol: BIO_s_mem<br>
>     error: undefined symbol: BN_bn2bin<br>
>     error: undefined symbol: BN_free<br>
>     error: undefined symbol: BN_is_bit_set<br>
>     error: undefined symbol: BN_new<br>
>     error: undefined symbol: BN_num_bits<br>
>     error: undefined symbol: BN_set_word<br>
>     error: undefined symbol: CRYPTO_free<br>
>     error: undefined symbol: CRYPTO_malloc<br>
>     error: undefined symbol: DSA_free<br>
>     error: undefined symbol: DSA_generate_key<br>
>     error: undefined symbol: DSA_generate_parameters_ex<br>
>     error: undefined symbol: DSA_new<br>
>     error: undefined symbol: EC_KEY_free<br>
>     error: undefined symbol: EC_KEY_generate_key<br>
>     error: undefined symbol: EC_KEY_get0_group<br>
>     error: undefined symbol: EC_KEY_get0_public_key<br>
>     error: undefined symbol: EC_KEY_new_by_curve_name<br>
>     error: undefined symbol: EC_KEY_set_asn1_flag<br>
>     error: undefined symbol: EC_POINT_point2oct<br>
> <br>
>     ....<br>
> <br>
> Any advice would be a great help!<br>
> Thank you.<br>
> <br>
> On Thu, May 9, 2019 at 10:43 PM Dr Paul Dale <<a href="mailto:paul.dale@oracle.com" target="_blank">paul.dale@oracle.com</a>> wrote:<br>
> <br>
>     Configure with the _no-asm_ option.<br>
>    <br>
>     It will be a **lot** slower.<br>
> <br>
>     Pauli<br>
>     -- <br>
>     Dr Paul Dale | Cryptographer | Network Security & Encryption <br>
>     Phone +61 7 3031 7217<br>
>     Oracle Australia<br>
> <br>
>         On 10 May 2019, at 3:33 pm, Sunghyun Park <<a href="mailto:sunggg@umich.edu" target="_blank">sunggg@umich.edu</a>> wrote:<br>
>        <br>
>         Nice to meet you all :)<br>
>        <br>
>         I faced a problem while building assembly code in OpenSSL (e.g., crypto/x86_64cpuid.s)<br>
>         with Emscripten. <br>
>         Since Emscripten does not support compilation for assembly code (As far as I know), I'm<br>
>         wondering if there is any version of OpenSSL that does not require compiling assembly<br>
>         code.<br>
>         Or, if there is anyone who experienced the similar problem, please share your experience. <br>
>        <br>
>         Thank you!<br>
>        <br>
>         --<br>
>         Best, Sung<br>
> <br>
> --<br>
> Best, Sung<br>
> <br>
> <br>
-- <br>
Richard Levitte         <a href="mailto:levitte@openssl.org" target="_blank">levitte@openssl.org</a><br>
OpenSSL Project         <a href="http://www.openssl.org/~levitte/" rel="noreferrer" target="_blank">http://www.openssl.org/~levitte/</a><br>
</blockquote></div>