You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After deleting the two lines as stated in the build notes, when trying to compile it I end up with this error:
In file included from /corecrypto/corecrypto_test/lib/ccshadow.c:44:
/corecrypto/corecrypto_test/lib/../include/ccshadow_decls.h:28:45: error: unknown type name 'mode_t'
(const char *path, int oflag, mode_t mode),
^
/corecrypto/corecrypto_test/lib/../include/ccshadow_decls.h:28:45: error: unknown type name 'mode_t'
/corecrypto/corecrypto_test/lib/../include/ccshadow_decls.h:28:45: error: unknown type name 'mode_t'
/corecrypto/corecrypto_test/lib/../include/ccshadow_decls.h:28:45: error: unknown type name 'mode_t'
/corecrypto/corecrypto_test/lib/../include/ccshadow_decls.h:48:28: error: unknown type name 'mode_t'
(int fildes, mode_t mode),
^
/corecrypto/corecrypto_test/lib/../include/ccshadow_decls.h:48:28: error: unknown type name 'mode_t'
/corecrypto/corecrypto_test/lib/../include/ccshadow_decls.h:48:28: error: unknown type name 'mode_t'
/corecrypto/corecrypto_test/lib/../include/ccshadow_decls.h:48:28: error: unknown type name 'mode_t'
8 errors generated.
make[2]: *** [CMakeFiles/corecrypto_test_dylib.dir/build.make:2736: CMakeFiles/corecrypto_test_dylib.dir/corecrypto_test/lib/ccshadow.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:139: CMakeFiles/corecrypto_test_dylib.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
Compiling with the two lines gets me:
/usr/bin/ld: libcorecrypto_static.a(ccsae_generate_commitment.c.o): in function `ccsae_generate_commitment_partial_ws':
ccsae_generate_commitment.c:(.text+0x5a5): undefined reference to `__memcpy_chk'
/usr/bin/ld: ccsae_generate_commitment.c:(.text+0x619): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(ccsae.c.o): in function `ccsae_lexographic_order_key':
ccsae.c:(.text+0x1c9): undefined reference to `__memcpy_chk'
/usr/bin/ld: ccsae.c:(.text+0x1e5): undefined reference to `__memcpy_chk'
/usr/bin/ld: ccsae.c:(.text+0x20c): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(ccsae.c.o):ccsae.c:(.text+0x228): more undefined references to `__memcpy_chk' follow
/usr/bin/ld: libcorecrypto_static.a(ccsae.c.o): in function `sae_construct_fixed_data':
ccsae.c:(.text+0x4e5): undefined reference to `__memset_chk'
/usr/bin/ld: ccsae.c:(.text+0x514): undefined reference to `__memset_chk'
/usr/bin/ld: libcorecrypto_static.a(ccsae.c.o): in function `ccsae_ctr_hmac_fixed':
ccsae.c:(.text+0x6b0): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(ccvrf_prove.c.o): in function `ccvrf_irtf_nonce_generation':
ccvrf_prove.c:(.text+0x6d9): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(ccrsa_generate_fips186_key.c.o): in function `ccrsa_generate_auxiliary_primes_ws':
ccrsa_generate_fips186_key.c:(.text+0x133a): undefined reference to `__memcpy_chk'
/usr/bin/ld: ccrsa_generate_fips186_key.c:(.text+0x135b): undefined reference to `__memcpy_chk'
/usr/bin/ld: ccrsa_generate_fips186_key.c:(.text+0x1425): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(ccrsa_generate_fips186_key.c.o):ccrsa_generate_fips186_key.c:(.text+0x1446): more undefined references to `__memcpy_chk' follow
/usr/bin/ld: libcorecrypto_static.a(ccec_verify.c.o): in function `ccec_verify_digest_ws':
ccec_verify.c:(.text+0x5f2): undefined reference to `__memset_chk'
/usr/bin/ld: ccec_verify.c:(.text+0x6f5): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(cchmac_final.c.o): in function `cchmac_final':
cchmac_final.c:(.text+0xa8): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(cchpke.c.o): in function `cchpke_nonce':
cchpke.c:(.text+0xd99): undefined reference to `__memset_chk'
/usr/bin/ld: libcorecrypto_static.a(cchpke.c.o): in function `cchpke_kem_x25519_generate_key_pair':
cchpke.c:(.text+0x15ce): undefined reference to `__memcpy_chk'
/usr/bin/ld: cchpke.c:(.text+0x15e6): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(cchpke.c.o): in function `cchpke_kem_x25519_serialize':
cchpke.c:(.text+0x1684): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(cchpke.c.o): in function `cchpke_kem_x25519_deserialize':
cchpke.c:(.text+0x16f4): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(cchpke.c.o): in function `cchpke_kem_x25519_encap_deterministic':
cchpke.c:(.text+0x1b70): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(cchpke.c.o):cchpke.c:(.text+0x1d97): more undefined references to `__memcpy_chk' follow
/usr/bin/ld: libcorecrypto_static.a(cchmac_init.c.o): in function `cchmac_init':
cchmac_init.c:(.text+0x151): undefined reference to `__memset_chk'
/usr/bin/ld: cchmac_init.c:(.text+0x198): undefined reference to `__memcpy_chk'
/usr/bin/ld: cchmac_init.c:(.text+0x24d): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(ccmd2_ltc.c.o): in function `md2_final':
ccmd2_ltc.c:(.text+0xfe): undefined reference to `__memcpy_chk'
/usr/bin/ld: ccmd2_ltc.c:(.text+0x1eb): undefined reference to `__memcpy_chk'
/usr/bin/ld: ccmd2_ltc.c:(.text+0x21a): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(ccmode_cbc_encrypt.c.o):ccmode_cbc_encrypt.c:(.text+0xe8): more undefined references to `__memcpy_chk' follow
/usr/bin/ld: libcorecrypto_static.a(ccmode_cfb8_encrypt.c.o): in function `ccmode_cfb8_encrypt':
ccmode_cfb8_encrypt.c:(.text+0xd0): undefined reference to `__memmove_chk'
/usr/bin/ld: libcorecrypto_static.a(ccmode_cfb8_init.c.o): in function `ccmode_cfb8_init':
ccmode_cfb8_init.c:(.text+0x8c): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(ccmode_cfb_init.c.o): in function `ccmode_cfb_init':
ccmode_cfb_init.c:(.text+0x80): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(ccmode_gcm_finalize.c.o): in function `ccmode_gcm_finalize':
ccmode_gcm_finalize.c:(.text+0x208): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(ccmode_gcm_set_iv.c.o): in function `ccmode_gcm_set_iv':
ccmode_gcm_set_iv.c:(.text+0xeb): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(ccrng_entropy.c.o): in function `cc_get_entropy':
ccrng_entropy.c:(.text+0x1d1): undefined reference to `CC_MARK_MEMORY_PUBLIC'
/usr/bin/ld: libcorecrypto_static.a(ccn_divmod.c.o): in function `ccn_divmod_ws':
ccn_divmod.c:(.text+0x36d): undefined reference to `__memmove_chk'
/usr/bin/ld: libcorecrypto_static.a(cccbc.c.o): in function `cccbc_copy_iv':
cccbc.c:(.text+0xa8): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(ccansikdf_x963.c.o): in function `ccansikdf_x963_iovec':
ccansikdf_x963.c:(.text+0x29a): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(ccansikdf_x963.c.o): in function `ccansikdf_x963_round':
ccansikdf_x963.c:(.text+0x389): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(ccmode_ctr_setctr.c.o): in function `ccmode_ctr_setctr':
ccmode_ctr_setctr.c:(.text+0x64): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(ccn_random_bits.c.o): in function `ccrng_generate_fips_internal':
ccn_random_bits.c:(.text+0x219): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(ccn_set.c.o): in function `ccn_set':
ccn_set.c:(.text+0x2c): undefined reference to `__memmove_chk'
/usr/bin/ld: libcorecrypto_static.a(ccmode_siv_auth.c.o): in function `ccmode_siv_auth_finalize':
ccmode_siv_auth.c:(.text+0x37c): undefined reference to `__memcpy_chk'
/usr/bin/ld: ccmode_siv_auth.c:(.text+0x45a): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(ccrsa_verify_pss.c.o): in function `ccrsa_verify_pss_digest_ws':
ccrsa_verify_pss.c:(.text+0x25e): undefined reference to `__memset_chk'
/usr/bin/ld: ccrsa_verify_pss.c:(.text+0x471): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(ccmode_siv_encrypt.c.o): in function `ccmode_siv_encrypt':
ccmode_siv_encrypt.c:(.text+0x100): undefined reference to `__memcpy_chk'
/usr/bin/ld: ccmode_siv_encrypt.c:(.text+0x16c): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(ccdrbg_nisthmac.c.o): in function `init':
ccdrbg_nisthmac.c:(.text+0x16b): undefined reference to `__memset_chk'
/usr/bin/ld: ccdrbg_nisthmac.c:(.text+0x186): undefined reference to `__memset_chk'
/usr/bin/ld: libcorecrypto_static.a(ccdrbg_nisthmac.c.o): in function `generate':
ccdrbg_nisthmac.c:(.text+0x321): undefined reference to `__memcpy_chk'
/usr/bin/ld: ccdrbg_nisthmac.c:(.text+0x421): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(cced25519_sign.c.o): in function `ccrng_generate_fips_internal':
cced25519_sign.c:(.text+0x179): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(ccpbkdf2_hmac.c.o): in function `ccpbkdf2_hmac':
ccpbkdf2_hmac.c:(.text+0x102): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(ccpbkdf2_hmac.c.o): in function `F':
ccpbkdf2_hmac.c:(.text+0x379): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(ccpbkdf2_hmac.c.o):ccpbkdf2_hmac.c:(.text+0x40b): more undefined references to `__memcpy_chk' follow
/usr/bin/ld: libcorecrypto_static.a(ccrsa_priv_crypt_blinded.c.o): in function `ccrsa_priv_crypt_blinded_ws':
ccrsa_priv_crypt_blinded.c:(.text+0x8e0): undefined reference to `__memset_chk'
/usr/bin/ld: libcorecrypto_static.a(ccrc2_ltc_setup.c.o): in function `ccrc2_ltc_setup':
ccrc2_ltc_setup.c:(.text+0xd5): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(ccspake_mac.c.o): in function `ccspake_mac_verify_and_get_session_key_ws':
ccspake_mac.c:(.text+0x9b8): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(cccmac_final.c.o): in function `cccmac_final_generate':
cccmac_final.c:(.text+0x18e): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(ccrsa_oaep_encode.c.o): in function `ccrsa_oaep_encode_parameter_ws':
ccrsa_oaep_encode.c:(.text+0x209): undefined reference to `__memcpy_chk'
/usr/bin/ld: ccrsa_oaep_encode.c:(.text+0x2f4): undefined reference to `__memmove_chk'
/usr/bin/ld: ccrsa_oaep_encode.c:(.text+0x35a): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(ccrsa_oaep_encode.c.o): in function `ccrng_generate_fips_internal':
ccrsa_oaep_encode.c:(.text+0x449): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(cchkdf.c.o): in function `cchkdf_expand':
cchkdf.c:(.text+0x24a): undefined reference to `__memcpy_chk'
/usr/bin/ld: cchkdf.c:(.text+0x2f1): undefined reference to `__memcpy_chk'
/usr/bin/ld: cchkdf.c:(.text+0x318): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(ccrsa_verify_pkcs1v15.c.o): in function `ccrsa_verify_pkcs1v15_digest_ws':
ccrsa_verify_pkcs1v15.c:(.text+0x263): undefined reference to `__memset_chk'
/usr/bin/ld: ccrsa_verify_pkcs1v15.c:(.text+0x2d3): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(cced25519_make_key_pair.c.o): in function `ccrng_generate_fips_internal':
cced25519_make_key_pair.c:(.text+0x1b9): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(ccgcm.c.o): in function `ccgcm_inc_iv':
ccgcm.c:(.text+0x1e5): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(ccsha512_ltc_compress.c.o): in function `ccsha512_final':
ccsha512_ltc_compress.c:(.text+0x1250): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(cced25519_vrf.c.o): in function `ge_from_uniform':
cced25519_vrf.c:(.text+0x2e1): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(ccec_verify_internal.c.o): in function `ccec_verify_internal_with_base_ws':
ccec_verify_internal.c:(.text+0x193): undefined reference to `__memset_chk'
/usr/bin/ld: ccec_verify_internal.c:(.text+0x1cb): undefined reference to `__memset_chk'
/usr/bin/ld: libcorecrypto_static.a(ccvrf_verify.c.o): in function `ccvrf_irtf_ed25519_verify_internal':
ccvrf_verify.c:(.text+0x2cd): undefined reference to `__memset_chk'
/usr/bin/ld: ccvrf_verify.c:(.text+0x2f8): undefined reference to `__memset_chk'
/usr/bin/ld: libcorecrypto_static.a(cczp_init.c.o): in function `cczp_init_compute_r2_ws':
cczp_init.c:(.text+0x227): undefined reference to `__memset_chk'
/usr/bin/ld: libcorecrypto_static.a(cccmac_update.c.o): in function `cccmac_update':
cccmac_update.c:(.text+0x158): undefined reference to `__memcpy_chk'
/usr/bin/ld: cccmac_update.c:(.text+0x352): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(ltc_des.c.o): in function `cookey':
ltc_des.c:(.text+0x54f): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(ccrng_cryptographic.c.o): in function `ccrng_cryptographic_generate':
ccrng_cryptographic.c:(.text+0x71f): undefined reference to `__memcpy_chk'
/usr/bin/ld: ccrng_cryptographic.c:(.text+0x7bc): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(ccdrbg_df.c.o):ccdrbg_df.c:(.text+0x5ca): more undefined references to `__memcpy_chk' follow
/usr/bin/ld: libcorecrypto_static.a(cc_memory.c.o): in function `cc_malloc_clear':
cc_memory.c:(.text+0x56): undefined reference to `__memset_chk'
/usr/bin/ld: libcorecrypto_static.a(ccmode_ccm_set_iv.c.o): in function `ccmode_ccm_set_iv':
ccmode_ccm_set_iv.c:(.text+0x27b): undefined reference to `__memcpy_chk'
/usr/bin/ld: ccmode_ccm_set_iv.c:(.text+0x32a): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(ccmode_ccm_finalize.c.o): in function `ccmode_ccm_finalize':
ccmode_ccm_finalize.c:(.text+0xb8): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(ccmode_siv_decrypt.c.o): in function `ccmode_siv_decrypt':
ccmode_siv_decrypt.c:(.text+0xbe): undefined reference to `__memcpy_chk'
/usr/bin/ld: ccmode_siv_decrypt.c:(.text+0xd4): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(ccsrp_client.c.o):ccsrp_client.c:(.text+0x10a1): more undefined references to `__memcpy_chk' follow
/usr/bin/ld: libcorecrypto_static.a(ccaes_gladman_crypt.c.o): in function `ccaes_gladman_decrypt':
ccaes_gladman_crypt.c:(.text+0x2d7c): undefined reference to `__memmove_chk'
/usr/bin/ld: libcorecrypto_static.a(ccmode_siv_init.c.o): in function `ccmode_siv_init':
ccmode_siv_init.c:(.text+0xa3): undefined reference to `__memcpy_chk'
/usr/bin/ld: ccmode_siv_init.c:(.text+0xcc): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(ccec_generate_scalar_legacy.c.o): in function `ccec_generate_scalar_legacy_ws':
ccec_generate_scalar_legacy.c:(.text+0xa9): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(ccder_blob_encode_body.c.o): in function `ccder_blob_encode_body':
ccder_blob_encode_body.c:(.text+0x74): undefined reference to `__memmove_chk'
/usr/bin/ld: libcorecrypto_static.a(ccsha3_c_final.c.o): in function `ccsha3_c_final':
ccsha3_c_final.c:(.text+0xc1): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(cch2c_hash_to_base.c.o): in function `cch2c_hash_to_base_rfc_ws':
cch2c_hash_to_base.c:(.text+0x451): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(ccrsa_sign_pss_blinded.c.o): in function `ccrng_generate_fips_internal':
ccrsa_sign_pss_blinded.c:(.text+0x8a9): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(ccdigest_final_64be.c.o): in function `ccdigest_final_64be':
ccdigest_final_64be.c:(.text+0xc0): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(ccdigest_final_64le.c.o): in function `ccdigest_final_64le':
ccdigest_final_64le.c:(.text+0xc0): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(ccrsa_verify_pkcs1v15_internal.c.o): in function `ccrsa_verify_pkcs1v15_internal_ws':
ccrsa_verify_pkcs1v15_internal.c:(.text+0x3e): undefined reference to `__memset_chk'
/usr/bin/ld: libcorecrypto_static.a(ccmgf.c.o): in function `ccmgf':
ccmgf.c:(.text+0x157): undefined reference to `__memmove_chk'
/usr/bin/ld: libcorecrypto_static.a(ccmode_cfb8_decrypt.c.o): in function `ccmode_cfb8_decrypt':
ccmode_cfb8_decrypt.c:(.text+0xd0): undefined reference to `__memmove_chk'
/usr/bin/ld: libcorecrypto_static.a(ccmode_ofb_init.c.o): in function `ccmode_ofb_init':
ccmode_ofb_init.c:(.text+0x4f): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(ccrsa_emsa_pss_decode.c.o): in function `ccrsa_emsa_pss_decode_canary_out_ws':
ccrsa_emsa_pss_decode.c:(.text+0x55): undefined reference to `__memset_chk'
/usr/bin/ld: libcorecrypto_static.a(ccrsa_emsa_pkcs1v15_encode.c.o): in function `ccrsa_emsa_pkcs1v15_encode':
ccrsa_emsa_pkcs1v15_encode.c:(.text+0x1bd): undefined reference to `__memset_chk'
/usr/bin/ld: ccrsa_emsa_pkcs1v15_encode.c:(.text+0x25f): undefined reference to `__memcpy_chk'
/usr/bin/ld: ccrsa_emsa_pkcs1v15_encode.c:(.text+0x2d9): undefined reference to `__memcpy_chk'
/usr/bin/ld: libcorecrypto_static.a(ccrsa_emsa_pkcs1v15_verify.c.o): in function `ccrsa_emsa_pkcs1v15_verify_canary_out':
ccrsa_emsa_pkcs1v15_verify.c:(.text+0x33): undefined reference to `__memset_chk'
/usr/bin/ld: libcorecrypto_static.a(ccrsa_oaep_decode.c.o): in function `ccrsa_oaep_decode_parameter_ws':
ccrsa_oaep_decode.c:(.text+0x190): undefined reference to `__memcpy_chk'
/usr/bin/ld: ccrsa_oaep_decode.c:(.text+0x1c2): undefined reference to `__memcpy_chk'
/usr/bin/ld: ccrsa_oaep_decode.c:(.text+0x513): undefined reference to `__memcpy_chk'
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [CMakeFiles/corecrypto_perf.dir/build.make:819: corecrypto_perf] Error 1
make[1]: *** [CMakeFiles/Makefile2:89: CMakeFiles/corecrypto_perf.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
Either way, it seems like something is missing, but I don't know what.
The text was updated successfully, but these errors were encountered:
After deleting the two lines as stated in the build notes, when trying to compile it I end up with this error:
Compiling with the two lines gets me:
Either way, it seems like something is missing, but I don't know what.
The text was updated successfully, but these errors were encountered: