New submission from ada:

Download the python version 2.7.12 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:
/Modules/_ssl.c: In function ‘_create_tuple_for_X509_NAME’:
./Modules/_ssl.c:684: error: dereferencing pointer to incomplete type
./Modules/_ssl.c:701: error: dereferencing pointer to incomplete type
./Modules/_ssl.c: In function ‘_get_peer_alt_names’:
./Modules/_ssl.c:804: error: dereferencing pointer to incomplete type
./Modules/_ssl.c:809: error: dereferencing pointer to incomplete type
./Modules/_ssl.c:815: error: dereferencing pointer to incomplete type
./Modules/_ssl.c:876: warning: ‘ASN1_STRING_data’ is deprecated (declared at 
/usr/local/include/openssl/asn1.h:553)
./Modules/_ssl.c: In function ‘_get_crl_dp’:
./Modules/_ssl.c:1029: error: dereferencing pointer to incomplete type
./Modules/_ssl.c: In function ‘PySSL_compression’:
./Modules/_ssl.c:1446: error: dereferencing pointer to incomplete type
./Modules/_ssl.c:1448: error: dereferencing pointer to incomplete type
./Modules/_ssl.c: In function ‘context_new’:
./Modules/_ssl.c:2000: warning: ‘TLSv1_method’ is deprecated (declared at 
/usr/local/include/openssl/ssl.h:1596)
./Modules/_ssl.c:2003: warning: ‘TLSv1_1_method’ is deprecated (declared at 
/usr/local/include/openssl/ssl.h:1602)

please help me check where I take a mistake. The related information is:
Linux version: 
Linux root:2.6.32-358.el6.x86_64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 
x86_64 x86_64 GNU/Linux
OpenSSL version: 
[root@root Python-2.7.12]# rpm -aq | grep openssl
openssl-static-1.0.1e-48.el6_8.4.x86_64
openssl-1.0.1e-48.el6_8.4.x86_64
openssl-devel-1.0.1e-48.el6_8.4.x86_64
COMPILER version: 
[root@root Python-2.7.12]# yum list installed | grep -i  gcc
gcc.x86_64                           4.4.7-17.el6                       
gcc-c++.x86_64                       4.4.7-17.el6                       
gcc-gfortran.x86_64                  4.4.7-17.el6                       
libgcc.i686                          4.4.7-17.el6                       
libgcc.x86_64                        4.4.7-17.el6                       


Thanks in advance.

----------
assignee: christian.heimes
components: SSL
messages: 289262
nosy: ada, christian.heimes
priority: normal
severity: normal
status: open
title: 2.7.12 compile error from ssl related
type: compile error
versions: Python 2.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29765>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to