Hi, all. Thanks for your help, I could finish compilation to the end.
However, athough I successfully compiled with _no-asm_ options, I found a problem when loading the compiled library in the 3rd party code base.
When looking into the source code, the definition of some function seems to require a specific preprocessor to be compiled.
(For example, PEM_write_bio_DSAPrivateKey needs '#define OPENSSL_FIPS'.)
I installed openssl-1.0.2r.tar.gz and only provided no-asm for configuration.
Am I missing some dependencies or necessary options?
The error I'm facing is as follows:
error: undefined symbol: AES_ctr128_encryptwarning: To disable errors for undefined symbols use `-s ERROR_ON_UNDEFINED_SYMBOLS=0`error: undefined symbol: AES_set_encrypt_keyerror: undefined symbol: BIO_ctrlerror: undefined symbol: BIO_freeerror: undefined symbol: BIO_newerror: undefined symbol: BIO_s_memerror: undefined symbol: BN_bn2binerror: undefined symbol: BN_freeerror: undefined symbol: BN_is_bit_seterror: undefined symbol: BN_newerror: undefined symbol: BN_num_bitserror: undefined symbol: BN_set_worderror: undefined symbol: CRYPTO_freeerror: undefined symbol: CRYPTO_mallocerror: undefined symbol: DSA_freeerror: undefined symbol: DSA_generate_keyerror: undefined symbol: DSA_generate_parameters_exerror: undefined symbol: DSA_newerror: undefined symbol: EC_KEY_freeerror: undefined symbol: EC_KEY_generate_keyerror: undefined symbol: EC_KEY_get0_grouperror: undefined symbol: EC_KEY_get0_public_keyerror: undefined symbol: EC_KEY_new_by_curve_nameerror: undefined symbol: EC_KEY_set_asn1_flagerror: undefined symbol: EC_POINT_point2oct
Any advice would be a great help!....
Thank you.
On Thu, May 9, 2019 at 10:43 PM Dr Paul Dale <paul.dale@xxxxxxxxxx> wrote:
Configure with the _no-asm_ option.It will be a **lot** slower.Pauli--
Dr Paul Dale | Cryptographer | Network Security & Encryption
Phone +61 7 3031 7217
Oracle Australia
On 10 May 2019, at 3:33 pm, Sunghyun Park <sunggg@xxxxxxxxx> wrote:Nice to meet you all :)I faced a problem while building assembly code in OpenSSL (e.g., crypto/x86_64cpuid.s) with Emscripten.Since Emscripten does not support compilation for assembly code (As far as I know), I'm wondering if there is any version of OpenSSL that does not require compiling assembly code.Or, if there is anyone who experienced the similar problem, please share your experience.Thank you!--Best, Sung
Best, Sung