I have a node project that relies on gyp to build and add c++ addons to the nodejs program.
The addons are builded without errors.
But at runtime i get a:
/pool/zano-node-util/build/Release/cryptonote.node: undefined symbol: _ZN6crypto21bpp_ct_generators_UGX5bpp_HE
i tried the following command nm: nm /pool/zano-node-util/build/Release/cryptonote.node | grep crypto21bpp to get the following result:
00000000003aab68 u _ZGVZN6crypto21bpp_crypto_trait_zanoINS_21bpp_ct_generators_UGXELm64ELm32EE13get_generatorEbmE10generators 00000000003aab88 u _ZGVZN6crypto21bpp_crypto_trait_zanoINS_21bpp_ct_generators_UGXELm64ELm32EE22get_initial_transcriptEvE5value 00000000003aab30 u _ZGVZN6crypto21bpp_crypto_trait_zanoINS_21bpp_ct_generators_UGXELm64ELm32EE31get_2_to_the_power_of_N_minus_1EvE6result 00000000000cf6d0 W _ZN6crypto21bpp_crypto_trait_zanoINS_21bpp_ct_generators_UGXELm64ELm32EE13get_generatorEbm 00000000000cf4a0 W _ZN6crypto21bpp_crypto_trait_zanoINS_21bpp_ct_generators_UGXELm64ELm32EE22get_initial_transcriptEv 00000000000cf330 W _ZN6crypto21bpp_crypto_trait_zanoINS_21bpp_ct_generators_UGXELm64ELm32EE24calc_pedersen_commitmentERKNS_8scalar_tES5_RNS_7point_tE U _ZN6crypto21bpp_ct_generators_UGX5bpp_GE U _ZN6crypto21bpp_ct_generators_UGX5bpp_HE 00000000003aab60 u _ZZN6crypto21bpp_crypto_trait_zanoINS_21bpp_ct_generators_UGXELm64ELm32EE13get_generatorEbmE10calculated 00000000003aab70 u _ZZN6crypto21bpp_crypto_trait_zanoINS_21bpp_ct_generators_UGXELm64ELm32EE13get_generatorEbmE10generators 00000000003aaba0 u _ZZN6crypto21bpp_crypto_trait_zanoINS_21bpp_ct_generators_UGXELm64ELm32EE22get_initial_transcriptEvE5value 00000000003aab40 u _ZZN6crypto21bpp_crypto_trait_zanoINS_21bpp_ct_generators_UGXELm64ELm32EE31get_2_to_the_power_of_N_minus_1EvE6result
Now i see many “U” (undefined symbols), how could i debug further to find what dependency is not correctly linked ?
Matéo Nouvel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.