Synss / python-mbedtls

Cryptographic library with an mbed TLS back end
MIT License
79 stars 28 forks source link

won't install/compile #60

Closed folkertvanheusden closed 2 years ago

folkertvanheusden commented 2 years ago

Hi,

Trying to build it fails:

building 'mbedtls._md' extension gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-g cc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python3.6m -c build-3.6.8/temp.linux-x86_64-3.6/src/mbedtls/_md.c -o build-3.6.8/temp.linux- x86_64-3.6/build-3.6.8/temp.linux-x86_64-3.6/src/mbedtls/_md.o build-3.6.8/temp.linux-x86_64-3.6/src/mbedtls/_md.c: In function ‘pyx_pf_7mbedtls_3_md_6MDBase_10blocksizeget’: build-3.6.8/temp.linux-x86_64-3.6/src/mbedtls/_md.c:4795:62: error: dereferencing pointer to incomplete type pyx_t_1 = Pyx_PyInt_From_int(__pyx_v_self->_ctx.md_info->block_size); if (unlikely(!pyx_t_1)) __PYX_ERR(0, 100, __pyx_L1_error)

This is with:

folkertvanheusden commented 2 years ago

Never mind, got it to install eventually via pip. The problem was related to the version of mbedtls.