Cryptography: pip install cryptography version 1.5.1 fauls on Manjaro (Arch) Linux

Created on 3 Jul 2017  Â·  4Comments  Â·  Source: pyca/cryptography

We use cryptography version 1.5.1 in our product. I've been developing on OSx and Ubuntu till date but shifted to Manjaro (Arch Linux based) just two days ago.

I did a fresh install of Manjaro. Upon attempting to install this package via pip, I found that it was failing (error below - it's a big one :( ). I could really use some help resolving it.

Most of it were GCC warning. The only error I could find was this:

    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -I/usr/include/python3.6m -c build/temp.linux-x86_64-3.6/_openssl.c -o build/temp.linux-x86_64-3.6/build/temp.linux-x86_64-3.6/_openssl.o
    build/temp.linux-x86_64-3.6/_openssl.c:659:23: error: conflicting types for ‘ASN1_TIME_to_generalizedtime’
     ASN1_GENERALIZEDTIME *ASN1_TIME_to_generalizedtime(ASN1_TIME *,
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

To Recreate:
Run pip install cryptography==1.5.1

Here is the full trace.

Error:

```
Running setup.py install for cryptography ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-er1vnoo9/cryptography/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-ij6eefmq-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/cryptography
copying src/cryptography/utils.py -> build/lib.linux-x86_64-3.6/cryptography
copying src/cryptography/fernet.py -> build/lib.linux-x86_64-3.6/cryptography
copying src/cryptography/exceptions.py -> build/lib.linux-x86_64-3.6/cryptography
copying src/cryptography/__init__.py -> build/lib.linux-x86_64-3.6/cryptography
copying src/cryptography/__about__.py -> build/lib.linux-x86_64-3.6/cryptography
creating build/lib.linux-x86_64-3.6/cryptography/x509
copying src/cryptography/x509/oid.py -> build/lib.linux-x86_64-3.6/cryptography/x509
copying src/cryptography/x509/name.py -> build/lib.linux-x86_64-3.6/cryptography/x509
copying src/cryptography/x509/general_name.py -> build/lib.linux-x86_64-3.6/cryptography/x509
copying src/cryptography/x509/extensions.py -> build/lib.linux-x86_64-3.6/cryptography/x509
copying src/cryptography/x509/base.py -> build/lib.linux-x86_64-3.6/cryptography/x509
copying src/cryptography/x509/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/x509
creating build/lib.linux-x86_64-3.6/cryptography/hazmat
copying src/cryptography/hazmat/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat
creating build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/serialization.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/padding.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives
creating build/lib.linux-x86_64-3.6/cryptography/hazmat/bindings
copying src/cryptography/hazmat/bindings/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/bindings
creating build/lib.linux-x86_64-3.6/cryptography/hazmat/backends
copying src/cryptography/hazmat/backends/multibackend.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends
copying src/cryptography/hazmat/backends/interfaces.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends
copying src/cryptography/hazmat/backends/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends
creating build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/utils.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/twofactor
creating build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/kdf
creating build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/interfaces
copying src/cryptography/hazmat/primitives/interfaces/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/interfaces
creating build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/ciphers
creating build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric
creating build/lib.linux-x86_64-3.6/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/bindings/openssl
creating build/lib.linux-x86_64-3.6/cryptography/hazmat/bindings/commoncrypto
copying src/cryptography/hazmat/bindings/commoncrypto/binding.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/bindings/commoncrypto
copying src/cryptography/hazmat/bindings/commoncrypto/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/bindings/commoncrypto
creating build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/encode_asn1.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl
creating build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/commoncrypto
copying src/cryptography/hazmat/backends/commoncrypto/hmac.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/commoncrypto
copying src/cryptography/hazmat/backends/commoncrypto/hashes.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/commoncrypto
copying src/cryptography/hazmat/backends/commoncrypto/ciphers.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/commoncrypto
copying src/cryptography/hazmat/backends/commoncrypto/backend.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/commoncrypto
copying src/cryptography/hazmat/backends/commoncrypto/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/commoncrypto
running egg_info
writing src/cryptography.egg-info/PKG-INFO
writing dependency_links to src/cryptography.egg-info/dependency_links.txt
writing entry points to src/cryptography.egg-info/entry_points.txt
writing requirements to src/cryptography.egg-info/requires.txt
writing top-level names to src/cryptography.egg-info/top_level.txt
reading manifest file 'src/cryptography.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'docs/_build'
warning: no previously-included files matching '' found under directory 'vectors'
writing manifest file 'src/cryptography.egg-info/SOURCES.txt'
running build_ext
generating cffi module 'build/temp.linux-x86_64-3.6/_padding.c'
creating build/temp.linux-x86_64-3.6
generating cffi module 'build/temp.linux-x86_64-3.6/_constant_time.c'
generating cffi module 'build/temp.linux-x86_64-3.6/_openssl.c'
building '_openssl' extension
creating build/temp.linux-x86_64-3.6/build
creating build/temp.linux-x86_64-3.6/build/temp.linux-x86_64-3.6
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -I/usr/include/python3.6m -c build/temp.linux-x86_64-3.6/_openssl.c -o build/temp.linux-x86_64-3.6/build/temp.linux-x86_64-3.6/_openssl.o
build/temp.linux-x86_64-3.6/_openssl.c:659:23: error: conflicting types for ‘ASN1_TIME_to_generalizedtime’
ASN1_GENERALIZEDTIME *ASN1_TIME_to_generalizedtime(ASN1_TIME *,
^~~~~~~~
In file included from build/temp.linux-x86_64-3.6/_openssl.c:468:0:
/usr/include/openssl/asn1.h:628:23: note: previous declaration of ‘ASN1_TIME_to_generalizedtime’ was here
ASN1_GENERALIZEDTIME *ASN1_TIME_to_generalizedtime(const ASN1_TIME *t,
^~~~~~~~
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_d_ASN1_STRING_data’:
build/temp.linux-x86_64-3.6/_openssl.c:13341:3: warning: ‘ASN1_STRING_data’ is deprecated [-Wdeprecated-declarations]
return ASN1_STRING_data(x0);
^~
In file included from /usr/include/openssl/bn.h:31:0,
from /usr/include/openssl/asn1.h:24,
from build/temp.linux-x86_64-3.6/_openssl.c:468:
/usr/include/openssl/asn1.h:553:1: note: declared here
DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x))
^
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_f_ASN1_STRING_data’:
build/temp.linux-x86_64-3.6/_openssl.c:13364:3: warning: ‘ASN1_STRING_data’ is deprecated [-Wdeprecated-declarations]
{ result = ASN1_STRING_data(x0); }
^
In file included from /usr/include/openssl/bn.h:31:0,
from /usr/include/openssl/asn1.h:24,
from build/temp.linux-x86_64-3.6/_openssl.c:468:
/usr/include/openssl/asn1.h:553:1: note: declared here
DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x))
^
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_d_BIO_f_buffer’:
build/temp.linux-x86_64-3.6/_openssl.c:14704:10: warning: return discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
return BIO_f_buffer();
^~~~
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_f_BIO_f_buffer’:
build/temp.linux-x86_64-3.6/_openssl.c:14714:12: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
{ result = BIO_f_buffer(); }
^
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_d_BIO_f_null’:
build/temp.linux-x86_64-3.6/_openssl.c:14728:10: warning: return discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
return BIO_f_null();
^
~~~
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_f_BIO_f_null’:
build/temp.linux-x86_64-3.6/_openssl.c:14738:12: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
{ result = BIO_f_null(); }
^
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_d_BIO_s_fd’:
build/temp.linux-x86_64-3.6/_openssl.c:16157:10: warning: return discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
return BIO_s_fd();
^
~~~
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_f_BIO_s_fd’:
build/temp.linux-x86_64-3.6/_openssl.c:16167:12: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
{ result = BIO_s_fd(); }
^
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_d_BIO_s_file’:
build/temp.linux-x86_64-3.6/_openssl.c:16181:10: warning: return discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
return BIO_s_file();
^~~~
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_f_BIO_s_file’:
build/temp.linux-x86_64-3.6/_openssl.c:16191:12: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
{ result = BIO_s_file(); }
^
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_d_BIO_s_mem’:
build/temp.linux-x86_64-3.6/_openssl.c:16205:10: warning: return discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
return BIO_s_mem();
^~~
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_f_BIO_s_mem’:
build/temp.linux-x86_64-3.6/_openssl.c:16215:12: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
{ result = BIO_s_mem(); }
^
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_d_BIO_s_null’:
build/temp.linux-x86_64-3.6/_openssl.c:16229:10: warning: return discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
return BIO_s_null();
^~~~
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_f_BIO_s_null’:
build/temp.linux-x86_64-3.6/_openssl.c:16239:12: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
{ result = BIO_s_null(); }
^
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_d_BIO_s_socket’:
build/temp.linux-x86_64-3.6/_openssl.c:16253:10: warning: return discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
return BIO_s_socket();
^~~~
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_f_BIO_s_socket’:
build/temp.linux-x86_64-3.6/_openssl.c:16263:12: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
{ result = BIO_s_socket(); }
^
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_d_DTLSv1_client_method’:
build/temp.linux-x86_64-3.6/_openssl.c:22735:3: warning: ‘DTLSv1_client_method’ is deprecated [-Wdeprecated-declarations]
return DTLSv1_client_method();
^
~
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from build/temp.linux-x86_64-3.6/_openssl.c:552:
/usr/include/openssl/ssl.h:1632:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *DTLSv1_client_method(void)) /
DTLSv1.0 /
^
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_f_DTLSv1_client_method’:
build/temp.linux-x86_64-3.6/_openssl.c:22745:3: warning: ‘DTLSv1_client_method’ is deprecated [-Wdeprecated-declarations]
{ result = DTLSv1_client_method(); }
^
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from build/temp.linux-x86_64-3.6/_openssl.c:552:
/usr/include/openssl/ssl.h:1632:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *DTLSv1_client_method(void)) /
DTLSv1.0 /
^
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_d_DTLSv1_method’:
build/temp.linux-x86_64-3.6/_openssl.c:22759:3: warning: ‘DTLSv1_method’ is deprecated [-Wdeprecated-declarations]
return DTLSv1_method();
^
~
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from build/temp.linux-x86_64-3.6/_openssl.c:552:
/usr/include/openssl/ssl.h:1630:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *DTLSv1_method(void)) /
DTLSv1.0 /
^
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_f_DTLSv1_method’:
build/temp.linux-x86_64-3.6/_openssl.c:22769:3: warning: ‘DTLSv1_method’ is deprecated [-Wdeprecated-declarations]
{ result = DTLSv1_method(); }
^
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from build/temp.linux-x86_64-3.6/_openssl.c:552:
/usr/include/openssl/ssl.h:1630:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *DTLSv1_method(void)) /
DTLSv1.0 /
^
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_d_DTLSv1_server_method’:
build/temp.linux-x86_64-3.6/_openssl.c:22783:3: warning: ‘DTLSv1_server_method’ is deprecated [-Wdeprecated-declarations]
return DTLSv1_server_method();
^
~
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from build/temp.linux-x86_64-3.6/_openssl.c:552:
/usr/include/openssl/ssl.h:1631:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *DTLSv1_server_method(void)) /
DTLSv1.0 /
^
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_f_DTLSv1_server_method’:
build/temp.linux-x86_64-3.6/_openssl.c:22793:3: warning: ‘DTLSv1_server_method’ is deprecated [-Wdeprecated-declarations]
{ result = DTLSv1_server_method(); }
^
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from build/temp.linux-x86_64-3.6/_openssl.c:552:
/usr/include/openssl/ssl.h:1631:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *DTLSv1_server_method(void)) /
DTLSv1.0 /
^
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_d_OPENSSL_config’:
build/temp.linux-x86_64-3.6/_openssl.c:39464:3: warning: ‘OPENSSL_config’ is deprecated [-Wdeprecated-declarations]
OPENSSL_config(x0);
^
~~~
In file included from /usr/include/openssl/x509_vfy.h:20:0,
from /usr/include/openssl/x509.h:309,
from /usr/include/openssl/cms.h:16,
from build/temp.linux-x86_64-3.6/_openssl.c:483:
/usr/include/openssl/conf.h:92:1: note: declared here
DEPRECATEDIN_1_1_0(void OPENSSL_config(const char *config_name))
^
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_f_OPENSSL_config’:
build/temp.linux-x86_64-3.6/_openssl.c:39486:3: warning: ‘OPENSSL_config’ is deprecated [-Wdeprecated-declarations]
{ OPENSSL_config(x0); }
^
In file included from /usr/include/openssl/x509_vfy.h:20:0,
from /usr/include/openssl/x509.h:309,
from /usr/include/openssl/cms.h:16,
from build/temp.linux-x86_64-3.6/_openssl.c:483:
/usr/include/openssl/conf.h:92:1: note: declared here
DEPRECATEDIN_1_1_0(void OPENSSL_config(const char *config_name))
^
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_d_TLSv1_1_client_method’:
build/temp.linux-x86_64-3.6/_openssl.c:52660:3: warning: ‘TLSv1_1_client_method’ is deprecated [-Wdeprecated-declarations]
return TLSv1_1_client_method();
^~
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from build/temp.linux-x86_64-3.6/_openssl.c:552:
/usr/include/openssl/ssl.h:1620:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_client_method(void)) /
TLSv1.1 /
^
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_f_TLSv1_1_client_method’:
build/temp.linux-x86_64-3.6/_openssl.c:52670:3: warning: ‘TLSv1_1_client_method’ is deprecated [-Wdeprecated-declarations]
{ result = TLSv1_1_client_method(); }
^
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from build/temp.linux-x86_64-3.6/_openssl.c:552:
/usr/include/openssl/ssl.h:1620:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_client_method(void)) /
TLSv1.1 /
^
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_d_TLSv1_1_method’:
build/temp.linux-x86_64-3.6/_openssl.c:52684:3: warning: ‘TLSv1_1_method’ is deprecated [-Wdeprecated-declarations]
return TLSv1_1_method();
^~
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from build/temp.linux-x86_64-3.6/_openssl.c:552:
/usr/include/openssl/ssl.h:1618:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_method(void)) /
TLSv1.1 /
^
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_f_TLSv1_1_method’:
build/temp.linux-x86_64-3.6/_openssl.c:52694:3: warning: ‘TLSv1_1_method’ is deprecated [-Wdeprecated-declarations]
{ result = TLSv1_1_method(); }
^
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from build/temp.linux-x86_64-3.6/_openssl.c:552:
/usr/include/openssl/ssl.h:1618:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_method(void)) /
TLSv1.1 /
^
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_d_TLSv1_1_server_method’:
build/temp.linux-x86_64-3.6/_openssl.c:52708:3: warning: ‘TLSv1_1_server_method’ is deprecated [-Wdeprecated-declarations]
return TLSv1_1_server_method();
^~
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from build/temp.linux-x86_64-3.6/_openssl.c:552:
/usr/include/openssl/ssl.h:1619:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_server_method(void)) /
TLSv1.1 /
^
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_f_TLSv1_1_server_method’:
build/temp.linux-x86_64-3.6/_openssl.c:52718:3: warning: ‘TLSv1_1_server_method’ is deprecated [-Wdeprecated-declarations]
{ result = TLSv1_1_server_method(); }
^
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from build/temp.linux-x86_64-3.6/_openssl.c:552:
/usr/include/openssl/ssl.h:1619:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_server_method(void)) /
TLSv1.1 /
^
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_d_TLSv1_2_client_method’:
build/temp.linux-x86_64-3.6/_openssl.c:52732:3: warning: ‘TLSv1_2_client_method’ is deprecated [-Wdeprecated-declarations]
return TLSv1_2_client_method();
^~
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from build/temp.linux-x86_64-3.6/_openssl.c:552:
/usr/include/openssl/ssl.h:1626:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_client_method(void)) /
TLSv1.2 /
^
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_f_TLSv1_2_client_method’:
build/temp.linux-x86_64-3.6/_openssl.c:52742:3: warning: ‘TLSv1_2_client_method’ is deprecated [-Wdeprecated-declarations]
{ result = TLSv1_2_client_method(); }
^
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from build/temp.linux-x86_64-3.6/_openssl.c:552:
/usr/include/openssl/ssl.h:1626:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_client_method(void)) /
TLSv1.2 /
^
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_d_TLSv1_2_method’:
build/temp.linux-x86_64-3.6/_openssl.c:52756:3: warning: ‘TLSv1_2_method’ is deprecated [-Wdeprecated-declarations]
return TLSv1_2_method();
^~
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from build/temp.linux-x86_64-3.6/_openssl.c:552:
/usr/include/openssl/ssl.h:1624:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_method(void)) /
TLSv1.2 /
^
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_f_TLSv1_2_method’:
build/temp.linux-x86_64-3.6/_openssl.c:52766:3: warning: ‘TLSv1_2_method’ is deprecated [-Wdeprecated-declarations]
{ result = TLSv1_2_method(); }
^
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from build/temp.linux-x86_64-3.6/_openssl.c:552:
/usr/include/openssl/ssl.h:1624:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_method(void)) /
TLSv1.2 /
^
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_d_TLSv1_2_server_method’:
build/temp.linux-x86_64-3.6/_openssl.c:52780:3: warning: ‘TLSv1_2_server_method’ is deprecated [-Wdeprecated-declarations]
return TLSv1_2_server_method();
^~
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from build/temp.linux-x86_64-3.6/_openssl.c:552:
/usr/include/openssl/ssl.h:1625:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_server_method(void)) /
TLSv1.2 /
^
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_f_TLSv1_2_server_method’:
build/temp.linux-x86_64-3.6/_openssl.c:52790:3: warning: ‘TLSv1_2_server_method’ is deprecated [-Wdeprecated-declarations]
{ result = TLSv1_2_server_method(); }
^
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from build/temp.linux-x86_64-3.6/_openssl.c:552:
/usr/include/openssl/ssl.h:1625:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_server_method(void)) /
TLSv1.2 /
^
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_d_TLSv1_client_method’:
build/temp.linux-x86_64-3.6/_openssl.c:52804:3: warning: ‘TLSv1_client_method’ is deprecated [-Wdeprecated-declarations]
return TLSv1_client_method();
^~
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from build/temp.linux-x86_64-3.6/_openssl.c:552:
/usr/include/openssl/ssl.h:1614:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_client_method(void)) /
TLSv1.0 /
^
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_f_TLSv1_client_method’:
build/temp.linux-x86_64-3.6/_openssl.c:52814:3: warning: ‘TLSv1_client_method’ is deprecated [-Wdeprecated-declarations]
{ result = TLSv1_client_method(); }
^
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from build/temp.linux-x86_64-3.6/_openssl.c:552:
/usr/include/openssl/ssl.h:1614:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_client_method(void)) /
TLSv1.0 /
^
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_d_TLSv1_method’:
build/temp.linux-x86_64-3.6/_openssl.c:52828:3: warning: ‘TLSv1_method’ is deprecated [-Wdeprecated-declarations]
return TLSv1_method();
^~
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from build/temp.linux-x86_64-3.6/_openssl.c:552:
/usr/include/openssl/ssl.h:1612:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_method(void)) /
TLSv1.0 /
^
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_f_TLSv1_method’:
build/temp.linux-x86_64-3.6/_openssl.c:52838:3: warning: ‘TLSv1_method’ is deprecated [-Wdeprecated-declarations]
{ result = TLSv1_method(); }
^
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from build/temp.linux-x86_64-3.6/_openssl.c:552:
/usr/include/openssl/ssl.h:1612:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_method(void)) /
TLSv1.0 /
^
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_d_TLSv1_server_method’:
build/temp.linux-x86_64-3.6/_openssl.c:52852:3: warning: ‘TLSv1_server_method’ is deprecated [-Wdeprecated-declarations]
return TLSv1_server_method();
^~
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from build/temp.linux-x86_64-3.6/_openssl.c:552:
/usr/include/openssl/ssl.h:1613:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_server_method(void)) /
TLSv1.0 /
^
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_f_TLSv1_server_method’:
build/temp.linux-x86_64-3.6/_openssl.c:52862:3: warning: ‘TLSv1_server_method’ is deprecated [-Wdeprecated-declarations]
{ result = TLSv1_server_method(); }
^
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from build/temp.linux-x86_64-3.6/_openssl.c:552:
/usr/include/openssl/ssl.h:1613:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_server_method(void)) /
TLSv1.0 /
^
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_d_X509_CRL_get_lastUpdate’:
build/temp.linux-x86_64-3.6/_openssl.c:53897:3: warning: ‘X509_CRL_get_lastUpdate’ is deprecated [-Wdeprecated-declarations]
return X509_CRL_get_lastUpdate(x0);
^~
In file included from /usr/include/openssl/x509_vfy.h:20:0,
from /usr/include/openssl/x509.h:309,
from /usr/include/openssl/cms.h:16,
from build/temp.linux-x86_64-3.6/_openssl.c:483:
/usr/include/openssl/x509.h:708:1: note: declared here
DEPRECATEDIN_1_1_0(ASN1_TIME *X509_CRL_get_lastUpdate(X509_CRL *crl))
^
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_f_X509_CRL_get_lastUpdate’:
build/temp.linux-x86_64-3.6/_openssl.c:53920:3: warning: ‘X509_CRL_get_lastUpdate’ is deprecated [-Wdeprecated-declarations]
{ result = X509_CRL_get_lastUpdate(x0); }
^
In file included from /usr/include/openssl/x509_vfy.h:20:0,
from /usr/include/openssl/x509.h:309,
from /usr/include/openssl/cms.h:16,
from build/temp.linux-x86_64-3.6/_openssl.c:483:
/usr/include/openssl/x509.h:708:1: note: declared here
DEPRECATEDIN_1_1_0(ASN1_TIME *X509_CRL_get_lastUpdate(X509_CRL *crl))
^
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_d_X509_CRL_get_nextUpdate’:
build/temp.linux-x86_64-3.6/_openssl.c:53933:3: warning: ‘X509_CRL_get_nextUpdate’ is deprecated [-Wdeprecated-declarations]
return X509_CRL_get_nextUpdate(x0);
^~
In file included from /usr/include/openssl/x509_vfy.h:20:0,
from /usr/include/openssl/x509.h:309,
from /usr/include/openssl/cms.h:16,
from build/temp.linux-x86_64-3.6/_openssl.c:483:
/usr/include/openssl/x509.h:709:1: note: declared here
DEPRECATEDIN_1_1_0(ASN1_TIME *X509_CRL_get_nextUpdate(X509_CRL *crl))
^
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_f_X509_CRL_get_nextUpdate’:
build/temp.linux-x86_64-3.6/_openssl.c:53956:3: warning: ‘X509_CRL_get_nextUpdate’ is deprecated [-Wdeprecated-declarations]
{ result = X509_CRL_get_nextUpdate(x0); }
^
In file included from /usr/include/openssl/x509_vfy.h:20:0,
from /usr/include/openssl/x509.h:309,
from /usr/include/openssl/cms.h:16,
from build/temp.linux-x86_64-3.6/_openssl.c:483:
/usr/include/openssl/x509.h:709:1: note: declared here
DEPRECATEDIN_1_1_0(ASN1_TIME *X509_CRL_get_nextUpdate(X509_CRL *crl))
^
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_d_X509_get0_signature’:
build/temp.linux-x86_64-3.6/_openssl.c:59393:23: warning: passing argument 1 of ‘X509_get0_signature’ from incompatible pointer type [-Wincompatible-pointer-types]
X509_get0_signature(x0, x1, x2);
^~
In file included from /usr/include/openssl/cms.h:16:0,
from build/temp.linux-x86_64-3.6/_openssl.c:483:
/usr/include/openssl/x509.h:552:6: note: expected ‘const ASN1_BIT_STRING *
{aka const struct asn1_string_st *}’ but argument is of type ‘ASN1_OCTET_STRING * {aka struct asn1_string_st *}’
void X509_get0_signature(const ASN1_BIT_STRING *
psig,
^~~~~
build/temp.linux-x86_64-3.6/_openssl.c:59393:27: warning: passing argument 2 of ‘X509_get0_signature’ from incompatible pointer type [-Wincompatible-pointer-types]
X509_get0_signature(x0, x1, x2);
^~
In file included from /usr/include/openssl/cms.h:16:0,
from build/temp.linux-x86_64-3.6/_openssl.c:483:
/usr/include/openssl/x509.h:552:6: note: expected ‘const X509_ALGOR * {aka const struct X509_algor_st *}’ but argument is of type ‘X509_ALGOR * {aka struct X509_algor_st *}’
void X509_get0_signature(const ASN1_BIT_STRING *psig,
^
~~~~
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘_cffi_f_X509_get0_signature’:
build/temp.linux-x86_64-3.6/_openssl.c:59445:25: warning: passing argument 1 of ‘X509_get0_signature’ from incompatible pointer type [-Wincompatible-pointer-types]
{ X509_get0_signature(x0, x1, x2); }
^~
In file included from /usr/include/openssl/cms.h:16:0,
from build/temp.linux-x86_64-3.6/_openssl.c:483:
/usr/include/openssl/x509.h:552:6: note: expected ‘const ASN1_BIT_STRING *
{aka const struct asn1_string_st *}’ but argument is of type ‘ASN1_OCTET_STRING * {aka struct asn1_string_st *}’
void X509_get0_signature(const ASN1_BIT_STRING *
psig,
^~~~~
build/temp.linux-x86_64-3.6/_openssl.c:59445:29: warning: passing argument 2 of ‘X509_get0_signature’ from incompatible pointer type [-Wincompatible-pointer-types]
{ X509_get0_signature(x0, x1, x2); }
^~
In file included from /usr/include/openssl/cms.h:16:0,
from build/temp.linux-x86_64-3.6/_openssl.c:483:
/usr/include/openssl/x509.h:552:6: note: expected ‘const X509_ALGOR * {aka const struct X509_algor_st *}’ but argument is of type ‘X509_ALGOR * {aka struct X509_algor_st *}’
void X509_get0_signature(const ASN1_BIT_STRING **psig,
^
~~~~
error: command 'gcc' failed with exit status 1

----------------------------------------

Rolling back uninstall of cryptography
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-er1vnoo9/cryptography/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-ij6eefmq-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-er1vnoo9/cryptography/

````

Most helpful comment

You'll need to upgrade cryptography to a newer version. OpenSSL changed a function signature and this is causing your error with the old cryptography.

All 4 comments

What version of OpenSSL are you using?

Can you try with the most recent version of cryptography? We do not support cryptography 1.5.1 anymore.

You'll need to upgrade cryptography to a newer version. OpenSSL changed a function signature and this is causing your error with the old cryptography.

@alex , I'm running version 1.1.0 of openSSL. Oh, I was afraid of it not being supported anymore :(

@reaperhulk, That's interesting! It seems to work on Ubuntu and OSx. If there's no other solution, I guess it can do an update.

You can refer to our changelog for exact details, but we regularly fix bugs that lead to compilation errors on certain cryptography/openssl version combinations. We recommend always using the latest version of cryptography.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kamikaze picture kamikaze  Â·  7Comments

MortenEriksen picture MortenEriksen  Â·  5Comments

webknjaz picture webknjaz  Â·  7Comments

wexi picture wexi  Â·  5Comments

gliush picture gliush  Â·  3Comments