running build running build_ext building '_ssl' extension gcc -pthread -fPIC -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration -I./Include -I. -I/home/floppym/tmp/openssl/include -I/usr/local/include -I/home/floppym/src/cpython/Include -I/home/floppym/src/cpython -c /home/floppym/src/cpython/Modules/_ssl.c -o build/temp.linux-x86_64-3.7/home/floppym/src/cpython/Modules/_ssl.o /home/floppym/src/cpython/Modules/_ssl.c: In function ‘_get_peer_alt_names’: /home/floppym/src/cpython/Modules/_ssl.c:1029:57: error: implicit declaration of function ‘ASN1_STRING_data’ [-Werror=implicit-function-declaration] v = PyUnicode_FromStringAndSize((char *)ASN1_STRING_data(as), ^ /home/floppym/src/cpython/Modules/_ssl.c:1029:49: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] v = PyUnicode_FromStringAndSize((char *)ASN1_STRING_data(as), ^ /home/floppym/src/cpython/Modules/_ssl.c: In function ‘_decode_certificate’: /home/floppym/src/cpython/Modules/_ssl.c:1338:17: error: implicit declaration of function ‘X509_get_notBefore’ [-Werror=implicit-function-declaration] notBefore = X509_get_notBefore(certificate); ^ /home/floppym/src/cpython/Modules/_ssl.c:1338:15: warning: assignment makes pointer from integer without a cast [-Wint-conversion] notBefore = X509_get_notBefore(certificate); ^ /home/floppym/src/cpython/Modules/_ssl.c:1355:16: error: implicit declaration of function ‘X509_get_notAfter’ [-Werror=implicit-function-declaration] notAfter = X509_get_notAfter(certificate); ^ /home/floppym/src/cpython/Modules/_ssl.c:1355:14: warning: assignment makes pointer from integer without a cast [-Wint-conversion] notAfter = X509_get_notAfter(certificate); ^ /home/floppym/src/cpython/Modules/_ssl.c: In function ‘_ssl__SSLContext_impl’: /home/floppym/src/cpython/Modules/_ssl.c:2611:27: error: implicit declaration of function ‘TLSv1_method’ [-Werror=implicit-function-declaration] ctx = SSL_CTX_new(TLSv1_method()); ^ /home/floppym/src/cpython/Modules/_ssl.c:2611:27: warning: passing argument 1 of ‘SSL_CTX_new’ makes pointer from integer without a cast [-Wint-conversion] In file included from /home/floppym/src/cpython/Modules/_ssl.c:72:0: /home/floppym/tmp/openssl/include/openssl/ssl.h:1305:17: note: expected ‘const SSL_METHOD * {aka const struct ssl_method_st *}’ but argument is of type ‘int’ __owur SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth); ^ /home/floppym/src/cpython/Modules/_ssl.c:2614:27: error: implicit declaration of function ‘TLSv1_1_method’ [-Werror=implicit-function-declaration] ctx = SSL_CTX_new(TLSv1_1_method()); ^ /home/floppym/src/cpython/Modules/_ssl.c:2614:27: warning: passing argument 1 of ‘SSL_CTX_new’ makes pointer from integer without a cast [-Wint-conversion] In file included from /home/floppym/src/cpython/Modules/_ssl.c:72:0: /home/floppym/tmp/openssl/include/openssl/ssl.h:1305:17: note: expected ‘const SSL_METHOD * {aka const struct ssl_method_st *}’ but argument is of type ‘int’ __owur SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth); ^ /home/floppym/src/cpython/Modules/_ssl.c:2616:27: error: implicit declaration of function ‘TLSv1_2_method’ [-Werror=implicit-function-declaration] ctx = SSL_CTX_new(TLSv1_2_method()); ^ /home/floppym/src/cpython/Modules/_ssl.c:2616:27: warning: passing argument 1 of ‘SSL_CTX_new’ makes pointer from integer without a cast [-Wint-conversion] In file included from /home/floppym/src/cpython/Modules/_ssl.c:72:0: /home/floppym/tmp/openssl/include/openssl/ssl.h:1305:17: note: expected ‘const SSL_METHOD * {aka const struct ssl_method_st *}’ but argument is of type ‘int’ __owur SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth); ^ /home/floppym/src/cpython/Modules/_ssl.c:2723:14: error: implicit declaration of function ‘SSLeay’ [-Werror=implicit-function-declaration] libver = SSLeay(); ^ /home/floppym/src/cpython/Modules/_ssl.c: In function ‘_ssl__SSLContext_load_dh_params’: /home/floppym/src/cpython/Modules/_ssl.c:3570:5: error: implicit declaration of function ‘DH_free’ [-Werror=implicit-function-declaration] DH_free(dh); ^ /home/floppym/src/cpython/Modules/_ssl.c: In function ‘PySSL_RAND’: /home/floppym/src/cpython/Modules/_ssl.c:4523:14: error: implicit declaration of function ‘RAND_pseudo_bytes’ [-Werror=implicit-function-declaration] ok = RAND_pseudo_bytes((unsigned char*)PyBytes_AS_STRING(bytes), len); ^ /home/floppym/src/cpython/Modules/_ssl.c: In function ‘PyInit__ssl’: /home/floppym/src/cpython/Modules/_ssl.c:5174:5: error: implicit declaration of function ‘SSL_load_error_strings’ [-Werror=implicit-function-declaration] SSL_load_error_strings(); ^ /home/floppym/src/cpython/Modules/_ssl.c:5175:5: error: implicit declaration of function ‘SSL_library_init’ [-Werror=implicit-function-declaration] SSL_library_init(); ^ /home/floppym/src/cpython/Modules/_ssl.c:5187:5: error: implicit declaration of function ‘OpenSSL_add_all_algorithms’ [-Werror=implicit-function-declaration] OpenSSL_add_all_algorithms(); ^ /home/floppym/src/cpython/Modules/_ssl.c:5469:30: error: implicit declaration of function ‘SSLeay_version’ [-Werror=implicit-function-declaration] r = PyUnicode_FromString(SSLeay_version(SSLEAY_VERSION)); ^ /home/floppym/src/cpython/Modules/_ssl.c:5469:45: error: ‘SSLEAY_VERSION’ undeclared (first use in this function) r = PyUnicode_FromString(SSLeay_version(SSLEAY_VERSION)); ^ /home/floppym/src/cpython/Modules/_ssl.c:5469:45: note: each undeclared identifier is reported only once for each function it appears in cc1: some warnings being treated as errors building '_hashlib' extension gcc -pthread -fPIC -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration -I./Include -I. -I/home/floppym/tmp/openssl/include -I/usr/local/include -I/home/floppym/src/cpython/Include -I/home/floppym/src/cpython -c /home/floppym/src/cpython/Modules/_hashopenssl.c -o build/temp.linux-x86_64-3.7/home/floppym/src/cpython/Modules/_hashopenssl.o /home/floppym/src/cpython/Modules/_hashopenssl.c: In function ‘PyInit__hashlib’: /home/floppym/src/cpython/Modules/_hashopenssl.c:1002:5: error: implicit declaration of function ‘OpenSSL_add_all_digests’ [-Werror=implicit-function-declaration] OpenSSL_add_all_digests(); ^ /home/floppym/src/cpython/Modules/_hashopenssl.c:1003:5: error: implicit declaration of function ‘ERR_load_crypto_strings’ [-Werror=implicit-function-declaration] ERR_load_crypto_strings(); ^ cc1: some warnings being treated as errors The following modules found by detect_modules() in setup.py, have been built by the Makefile instead, as configured by the Setup files: atexit pwd time Failed to build these modules: _hashlib _ssl running build_scripts copying and adjusting /home/floppym/src/cpython/Tools/scripts/pydoc3 -> build/scripts-3.7 copying and adjusting /home/floppym/src/cpython/Tools/scripts/idle3 -> build/scripts-3.7 copying and adjusting /home/floppym/src/cpython/Tools/scripts/2to3 -> build/scripts-3.7 copying and adjusting /home/floppym/src/cpython/Tools/scripts/pyvenv -> build/scripts-3.7 changing mode of build/scripts-3.7/pydoc3 from 644 to 755 changing mode of build/scripts-3.7/idle3 from 644 to 755 changing mode of build/scripts-3.7/2to3 from 644 to 755 changing mode of build/scripts-3.7/pyvenv from 644 to 755 renaming build/scripts-3.7/pydoc3 to build/scripts-3.7/pydoc3.7 renaming build/scripts-3.7/idle3 to build/scripts-3.7/idle3.7 renaming build/scripts-3.7/2to3 to build/scripts-3.7/2to3-3.7 renaming build/scripts-3.7/pyvenv to build/scripts-3.7/pyvenv-3.7