Message283699
Download the python version 3.5.2 source code from official web site.
Compile the python code by the following steps:
sudo ./configure
sudo make
sudo make install
but from make, I get the following errors:
/home/boot/tools/Python-3.5.2/Modules/_ssl.c:2582:46: error: dereferencing pointer to incomplete type ‘X509_STORE {aka struct x509_store_st}’
flags = X509_VERIFY_PARAM_get_flags(store->param);
^
/home/boot/tools/Python-3.5.2/Modules/_ssl.c: In function ‘_ssl__SSLContext_load_cert_chain_impl’:
/home/boot/tools/Python-3.5.2/Modules/_ssl.c:2782:48: error: dereferencing pointer to incomplete type ‘SSL_CTX {aka struct ssl_ctx_st}’
pem_password_cb *orig_passwd_cb = self->ctx->default_passwd_callback;
^
/home/boot/tools/Python-3.5.2/Modules/_ssl.c: In function ‘_ssl__SSLContext_cert_store_stats_impl’:
/home/boot/tools/Python-3.5.2/Modules/_ssl.c:3443:20: error: dereferencing pointer to incomplete type ‘X509_OBJECT {aka struct x509_object_st}’
switch (obj->type) {
^
/home/boot/tools/Python-3.5.2/Modules/_ssl.c:3453:18: error: ‘X509_LU_PKEY’ undeclared (first use in this function)
case X509_LU_PKEY:
then I install the openssl by compiling download code,and the ssl can work, and compile python code,the error still exists.
please help me check where I take a mistake.
Thanks a lot. |
|
Date |
User |
Action |
Args |
2016-12-20 15:15:44 | kevin.zhai80 | set | recipients:
+ kevin.zhai80, christian.heimes |
2016-12-20 15:15:44 | kevin.zhai80 | set | messageid: <1482246944.19.0.555352966537.issue29027@psf.upfronthosting.co.za> |
2016-12-20 15:15:44 | kevin.zhai80 | link | issue29027 messages |
2016-12-20 15:15:43 | kevin.zhai80 | create | |
|