This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: 3.5.2 compile error from ssl related.
Type: compile error Stage: resolved
Components: SSL Versions: Python 3.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: christian.heimes Nosy List: christian.heimes, kevin.zhai80
Priority: normal Keywords:

Created on 2016-12-20 15:15 by kevin.zhai80, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (5)
msg283699 - (view) Author: kevin (kevin.zhai80) Date: 2016-12-20 15:15
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.
msg283701 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2016-12-20 15:30
What is your platform, compiler and OpenSSL version?
msg283834 - (view) Author: kevin (kevin.zhai80) Date: 2016-12-22 13:38
Hi Christian,
    Thanks for your reply.

The machine's information as following:

Platform: x86_64;

OS: ubuntu16.04;

Compiler: gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609;

Openssl version:OpenSSL 1.1.0c  10 Nov 2016.
msg283843 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2016-12-22 14:35
Python 3.5.2 is not compatible with OpenSSL 1.1.0. You have to wait until 3.5.3 is released in about a month or downgrade OpenSSL to 1.0.2.
msg283846 - (view) Author: kevin (kevin.zhai80) Date: 2016-12-22 15:12
Hi Christian,

    This issue is resolved.

Thanks a lot.
History
Date User Action Args
2022-04-11 14:58:40adminsetgithub: 73213
2016-12-22 15:12:55kevin.zhai80setresolution: not a bug -> fixed
messages: + msg283846
2016-12-22 14:35:46christian.heimessetstatus: open -> closed
resolution: not a bug
messages: + msg283843

stage: resolved
2016-12-22 13:38:19kevin.zhai80setmessages: + msg283834
2016-12-20 15:30:38christian.heimessetmessages: + msg283701
2016-12-20 15:15:44kevin.zhai80create