This seems to work with Sage 7.6. Somehow, it must have gotten fixed along 
the way.

On Thursday, February 23, 2017 at 1:41:37 PM UTC-8, Dima Pasechnik wrote:
>
> looks like typical (by now) Apple's bug/feature --- using Objective C 
> syntax (blocks?) in plain C headers.
>
>
> On Thursday, February 23, 2017 at 9:31:03 PM UTC, Matthias Goerner wrote:
>>
>> This seems to be specific to 10.12.1 and happens both for Sage 7.4 and 
>> Sage 7.5.1.
>>
>> On Thursday, February 23, 2017 at 1:05:25 PM UTC-8, Matthias Goerner 
>> wrote:
>>>
>>> I am trying to to install pyopenssl with:
>>>     sage -i openssl
>>>     sage -i -f python2
>>>     sage -i pyopenssl
>>> but the last step fails. This seems to be a general problem with Sage 
>>> 7.5.1 under Mac OS X 10.2.1 since this was also reported to me by someone 
>>> else with the same configuration. The above steps worked with Sage 7.4 a 
>>> couple of months ago.
>>>
>>> ...
>>> sage-logger -p 'sage --pip install pyopenssl' 
>>> /Applications/SageMath-7.5.1.app/Contents/Resources/sage/logs/pkgs/pyopenssl.log
>>> [pyopenssl] Collecting pyopenssl
>>> [pyopenssl]   Using cached pyOpenSSL-16.2.0-py2.py3-none-any.whl
>>> [pyopenssl] Collecting cryptography>=1.3.4 (from pyopenssl)
>>> [pyopenssl]   Downloading cryptography-1.7.2.tar.gz (420kB)
>>> [pyopenssl] Requirement already satisfied (use --upgrade to upgrade): 
>>> six>=1.5.2 in 
>>> /Applications/SageMath-7.5.1.app/Contents/Resources/sage/local/lib/python2.7/site-packages
>>>  
>>> (from pyopenssl)
>>> [pyopenssl] Collecting idna>=2.0 (from cryptography>=1.3.4->pyopenssl)
>>> [pyopenssl]   Downloading idna-2.2-py2.py3-none-any.whl (55kB)
>>> [pyopenssl] Collecting pyasn1>=0.1.8 (from 
>>> cryptography>=1.3.4->pyopenssl)
>>> [pyopenssl]   Downloading pyasn1-0.2.2-py2.py3-none-any.whl (51kB)
>>> [pyopenssl] Requirement already satisfied (use --upgrade to upgrade): 
>>> setuptools>=11.3 in 
>>> /Applications/SageMath-7.5.1.app/Contents/Resources/sage/local/lib/python2.7/site-packages
>>>  
>>> (from cryptography>=1.3.4->pyopenssl)
>>> [pyopenssl] Collecting enum34 (from cryptography>=1.3.4->pyopenssl)
>>> [pyopenssl]   Using cached enum34-1.1.6-py2-none-any.whl
>>> [pyopenssl] Collecting ipaddress (from cryptography>=1.3.4->pyopenssl)
>>> [pyopenssl]   Downloading ipaddress-1.0.18-py2-none-any.whl
>>> [pyopenssl] Collecting cffi>=1.4.1 (from cryptography>=1.3.4->pyopenssl)
>>> [pyopenssl]   Using cached cffi-1.9.1-cp27-cp27mu-macosx_10_10_x86_64.whl
>>> [pyopenssl] Collecting pycparser (from 
>>> cffi>=1.4.1->cryptography>=1.3.4->pyopenssl)
>>> [pyopenssl]   Using cached pycparser-2.17.tar.gz
>>> [pyopenssl] Installing collected packages: idna, pyasn1, enum34, 
>>> ipaddress, pycparser, cffi, cryptography, pyopenssl
>>> [pyopenssl]   Running setup.py install for pycparser: started
>>> [pyopenssl]     Running setup.py install for pycparser: finished with 
>>> status 'done'
>>> [pyopenssl]   Running setup.py install for cryptography: started
>>> [pyopenssl]     Running setup.py install for cryptography: finished with 
>>> status 'error'
>>> [pyopenssl]     Complete output from command 
>>> /Applications/SageMath-7.5.1.app/Contents/Resources/sage/local/bin/python 
>>> -u -c "import setuptools, 
>>> tokenize;__file__='/private/var/folders/qf/wr6_n5s56m780kv130nznmlc0000gn/T/pip-build-YqN6_t/cryptography/setup.py';exec(compile(getattr(tokenize,
>>>  
>>> 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" 
>>> install --record 
>>> /var/folders/qf/wr6_n5s56m780kv130nznmlc0000gn/T/pip-_Mvdak-record/install-record.txt
>>>  
>>> --single-version-externally-managed --compile:
>>> [pyopenssl]     running install
>>> [pyopenssl]     running build
>>> [pyopenssl]     running build_py
>>> [pyopenssl]     creating build
>>> [pyopenssl]     creating build/lib.macosx-10.9-x86_64-2.7
>>> [pyopenssl]     creating build/lib.macosx-10.9-x86_64-2.7/cryptography
>>> [pyopenssl]     copying src/cryptography/__about__.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography
>>> [pyopenssl]     copying src/cryptography/__init__.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography
>>> [pyopenssl]     copying src/cryptography/exceptions.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography
>>> [pyopenssl]     copying src/cryptography/fernet.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography
>>> [pyopenssl]     copying src/cryptography/utils.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography
>>> [pyopenssl]     creating 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat
>>> [pyopenssl]     copying src/cryptography/hazmat/__init__.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat
>>> [pyopenssl]     creating 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/x509
>>> [pyopenssl]     copying src/cryptography/x509/__init__.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/x509
>>> [pyopenssl]     copying src/cryptography/x509/base.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/x509
>>> [pyopenssl]     copying src/cryptography/x509/extensions.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/x509
>>> [pyopenssl]     copying src/cryptography/x509/general_name.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/x509
>>> [pyopenssl]     copying src/cryptography/x509/name.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/x509
>>> [pyopenssl]     copying src/cryptography/x509/oid.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/x509
>>> [pyopenssl]     creating 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/backends
>>> [pyopenssl]     copying src/cryptography/hazmat/backends/__init__.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/backends
>>> [pyopenssl]     copying src/cryptography/hazmat/backends/interfaces.py 
>>> -> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/backends
>>> [pyopenssl]     copying src/cryptography/hazmat/backends/multibackend.py 
>>> -> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/backends
>>> [pyopenssl]     creating 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/bindings
>>> [pyopenssl]     copying src/cryptography/hazmat/bindings/__init__.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/bindings
>>> [pyopenssl]     creating 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/primitives
>>> [pyopenssl]     copying src/cryptography/hazmat/primitives/__init__.py 
>>> -> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/primitives
>>> [pyopenssl]     copying src/cryptography/hazmat/primitives/cmac.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/primitives
>>> [pyopenssl]     copying 
>>> src/cryptography/hazmat/primitives/constant_time.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/primitives
>>> [pyopenssl]     copying src/cryptography/hazmat/primitives/hashes.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/primitives
>>> [pyopenssl]     copying src/cryptography/hazmat/primitives/hmac.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/primitives
>>> [pyopenssl]     copying src/cryptography/hazmat/primitives/keywrap.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/primitives
>>> [pyopenssl]     copying src/cryptography/hazmat/primitives/padding.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/primitives
>>> [pyopenssl]     copying 
>>> src/cryptography/hazmat/primitives/serialization.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/primitives
>>> [pyopenssl]     creating 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
>>> [pyopenssl]     copying 
>>> src/cryptography/hazmat/backends/commoncrypto/__init__.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
>>> [pyopenssl]     copying 
>>> src/cryptography/hazmat/backends/commoncrypto/backend.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
>>> [pyopenssl]     copying 
>>> src/cryptography/hazmat/backends/commoncrypto/ciphers.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
>>> [pyopenssl]     copying 
>>> src/cryptography/hazmat/backends/commoncrypto/hashes.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
>>> [pyopenssl]     copying 
>>> src/cryptography/hazmat/backends/commoncrypto/hmac.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
>>> [pyopenssl]     creating 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/backends/openssl
>>> [pyopenssl]     copying 
>>> src/cryptography/hazmat/backends/openssl/__init__.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/backends/openssl
>>> [pyopenssl]     copying 
>>> src/cryptography/hazmat/backends/openssl/backend.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/backends/openssl
>>> [pyopenssl]     copying 
>>> src/cryptography/hazmat/backends/openssl/ciphers.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/backends/openssl
>>> [pyopenssl]     copying src/cryptography/hazmat/backends/openssl/cmac.py 
>>> -> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/backends/openssl
>>> [pyopenssl]     copying 
>>> src/cryptography/hazmat/backends/openssl/decode_asn1.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/backends/openssl
>>> [pyopenssl]     copying src/cryptography/hazmat/backends/openssl/dh.py 
>>> -> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/backends/openssl
>>> [pyopenssl]     copying src/cryptography/hazmat/backends/openssl/dsa.py 
>>> -> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/backends/openssl
>>> [pyopenssl]     copying src/cryptography/hazmat/backends/openssl/ec.py 
>>> -> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/backends/openssl
>>> [pyopenssl]     copying 
>>> src/cryptography/hazmat/backends/openssl/encode_asn1.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/backends/openssl
>>> [pyopenssl]     copying 
>>> src/cryptography/hazmat/backends/openssl/hashes.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/backends/openssl
>>> [pyopenssl]     copying src/cryptography/hazmat/backends/openssl/hmac.py 
>>> -> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/backends/openssl
>>> [pyopenssl]     copying src/cryptography/hazmat/backends/openssl/rsa.py 
>>> -> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/backends/openssl
>>> [pyopenssl]     copying 
>>> src/cryptography/hazmat/backends/openssl/utils.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/backends/openssl
>>> [pyopenssl]     copying src/cryptography/hazmat/backends/openssl/x509.py 
>>> -> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/backends/openssl
>>> [pyopenssl]     creating 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
>>> [pyopenssl]     copying 
>>> src/cryptography/hazmat/bindings/commoncrypto/__init__.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
>>> [pyopenssl]     copying 
>>> src/cryptography/hazmat/bindings/commoncrypto/binding.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
>>> [pyopenssl]     creating 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/bindings/openssl
>>> [pyopenssl]     copying 
>>> src/cryptography/hazmat/bindings/openssl/__init__.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/bindings/openssl
>>> [pyopenssl]     copying 
>>> src/cryptography/hazmat/bindings/openssl/_conditional.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/bindings/openssl
>>> [pyopenssl]     copying 
>>> src/cryptography/hazmat/bindings/openssl/binding.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/bindings/openssl
>>> [pyopenssl]     creating 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
>>> [pyopenssl]     copying 
>>> src/cryptography/hazmat/primitives/asymmetric/__init__.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
>>> [pyopenssl]     copying 
>>> src/cryptography/hazmat/primitives/asymmetric/dh.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
>>> [pyopenssl]     copying 
>>> src/cryptography/hazmat/primitives/asymmetric/dsa.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
>>> [pyopenssl]     copying 
>>> src/cryptography/hazmat/primitives/asymmetric/ec.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
>>> [pyopenssl]     copying 
>>> src/cryptography/hazmat/primitives/asymmetric/padding.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
>>> [pyopenssl]     copying 
>>> src/cryptography/hazmat/primitives/asymmetric/rsa.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
>>> [pyopenssl]     copying 
>>> src/cryptography/hazmat/primitives/asymmetric/utils.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
>>> [pyopenssl]     creating 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/primitives/ciphers
>>> [pyopenssl]     copying 
>>> src/cryptography/hazmat/primitives/ciphers/__init__.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/primitives/ciphers
>>> [pyopenssl]     copying 
>>> src/cryptography/hazmat/primitives/ciphers/algorithms.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/primitives/ciphers
>>> [pyopenssl]     copying 
>>> src/cryptography/hazmat/primitives/ciphers/base.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/primitives/ciphers
>>> [pyopenssl]     copying 
>>> src/cryptography/hazmat/primitives/ciphers/modes.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/primitives/ciphers
>>> [pyopenssl]     creating 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/primitives/interfaces
>>> [pyopenssl]     copying 
>>> src/cryptography/hazmat/primitives/interfaces/__init__.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/primitives/interfaces
>>> [pyopenssl]     creating 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/primitives/kdf
>>> [pyopenssl]     copying 
>>> src/cryptography/hazmat/primitives/kdf/__init__.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/primitives/kdf
>>> [pyopenssl]     copying 
>>> src/cryptography/hazmat/primitives/kdf/concatkdf.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/primitives/kdf
>>> [pyopenssl]     copying src/cryptography/hazmat/primitives/kdf/hkdf.py 
>>> -> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/primitives/kdf
>>> [pyopenssl]     copying src/cryptography/hazmat/primitives/kdf/kbkdf.py 
>>> -> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/primitives/kdf
>>> [pyopenssl]     copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py 
>>> -> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/primitives/kdf
>>> [pyopenssl]     copying src/cryptography/hazmat/primitives/kdf/scrypt.py 
>>> -> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/primitives/kdf
>>> [pyopenssl]     copying 
>>> src/cryptography/hazmat/primitives/kdf/x963kdf.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/primitives/kdf
>>> [pyopenssl]     creating 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/primitives/twofactor
>>> [pyopenssl]     copying 
>>> src/cryptography/hazmat/primitives/twofactor/__init__.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/primitives/twofactor
>>> [pyopenssl]     copying 
>>> src/cryptography/hazmat/primitives/twofactor/hotp.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/primitives/twofactor
>>> [pyopenssl]     copying 
>>> src/cryptography/hazmat/primitives/twofactor/totp.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/primitives/twofactor
>>> [pyopenssl]     copying 
>>> src/cryptography/hazmat/primitives/twofactor/utils.py -> 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/primitives/twofactor
>>> [pyopenssl]     running egg_info
>>> [pyopenssl]     writing requirements to 
>>> src/cryptography.egg-info/requires.txt
>>> [pyopenssl]     writing src/cryptography.egg-info/PKG-INFO
>>> [pyopenssl]     writing top-level names to 
>>> src/cryptography.egg-info/top_level.txt
>>> [pyopenssl]     writing dependency_links to 
>>> src/cryptography.egg-info/dependency_links.txt
>>> [pyopenssl]     writing entry points to 
>>> src/cryptography.egg-info/entry_points.txt
>>> [pyopenssl]     warning: manifest_maker: standard file '-c' not found
>>> [pyopenssl]
>>> [pyopenssl]     reading manifest file 
>>> 'src/cryptography.egg-info/SOURCES.txt'
>>> [pyopenssl]     reading manifest template 'MANIFEST.in'
>>> [pyopenssl]     no previously-included directories found matching 
>>> 'docs/_build'
>>> [pyopenssl]     warning: no previously-included files matching '*' found 
>>> under directory 'vectors'
>>> [pyopenssl]     writing manifest file 
>>> 'src/cryptography.egg-info/SOURCES.txt'
>>> [pyopenssl]     running build_ext
>>> [pyopenssl]     generating cffi module 
>>> 'build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c'
>>> [pyopenssl]     creating build/temp.macosx-10.9-x86_64-2.7
>>> [pyopenssl]     generating cffi module 
>>> 'build/temp.macosx-10.9-x86_64-2.7/_padding.c'
>>> [pyopenssl]     generating cffi module 
>>> 'build/temp.macosx-10.9-x86_64-2.7/_constant_time.c'
>>> [pyopenssl]     generating cffi module 
>>> 'build/temp.macosx-10.9-x86_64-2.7/_openssl.c'
>>> [pyopenssl]     building '_openssl' extension
>>> [pyopenssl]     creating build/temp.macosx-10.9-x86_64-2.7/build
>>> [pyopenssl]     creating 
>>> build/temp.macosx-10.9-x86_64-2.7/build/temp.macosx-10.9-x86_64-2.7
>>> [pyopenssl]     gcc -fno-strict-aliasing 
>>> -I/Applications/SageMath-7.5.1.app/Contents/Resources/sage/local/var/tmp/sage/build/python2-2.7.13.p0/include
>>>  
>>> -DNDEBUG -g -fwrapv -O3 -Wall -Wno-unused 
>>> -I/Applications/SageMath-7.5.1.app/Contents/Resources/sage/local/include/python2.7
>>>  
>>> -c build/temp.macosx-10.9-x86_64-2.7/_openssl.c -o 
>>> build/temp.macosx-10.9-x86_64-2.7/build/temp.macosx-10.9-x86_64-2.7/_openssl.o
>>> [pyopenssl]     gcc -bundle -undefined dynamic_lookup 
>>> -L/Applications/SageMath-7.5.1.app/Contents/Resources/sage/local/lib 
>>> -Wl,-rpath,/Applications/SageMath-7.5.1.app/Contents/Resources/sage/local/lib
>>>  
>>> -L/Applications/SageMath-7.5.1.app/Contents/Resources/sage/local/lib 
>>> -Wl,-rpath,/Applications/SageMath-7.5.1.app/Contents/Resources/sage/local/lib
>>>  
>>> build/temp.macosx-10.9-x86_64-2.7/build/temp.macosx-10.9-x86_64-2.7/_openssl.o
>>>  
>>> -L/Applications/SageMath-7.5.1.app/Contents/Resources/sage/local/lib -lssl 
>>> -lcrypto -o 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/bindings/_openssl.so
>>> [pyopenssl]     building '_constant_time' extension
>>> [pyopenssl]     gcc -fno-strict-aliasing 
>>> -I/Applications/SageMath-7.5.1.app/Contents/Resources/sage/local/var/tmp/sage/build/python2-2.7.13.p0/include
>>>  
>>> -DNDEBUG -g -fwrapv -O3 -Wall -Wno-unused 
>>> -I/Applications/SageMath-7.5.1.app/Contents/Resources/sage/local/include/python2.7
>>>  
>>> -c build/temp.macosx-10.9-x86_64-2.7/_constant_time.c -o 
>>> build/temp.macosx-10.9-x86_64-2.7/build/temp.macosx-10.9-x86_64-2.7/_constant_time.o
>>> [pyopenssl]     gcc -bundle -undefined dynamic_lookup 
>>> -L/Applications/SageMath-7.5.1.app/Contents/Resources/sage/local/lib 
>>> -Wl,-rpath,/Applications/SageMath-7.5.1.app/Contents/Resources/sage/local/lib
>>>  
>>> -L/Applications/SageMath-7.5.1.app/Contents/Resources/sage/local/lib 
>>> -Wl,-rpath,/Applications/SageMath-7.5.1.app/Contents/Resources/sage/local/lib
>>>  
>>> build/temp.macosx-10.9-x86_64-2.7/build/temp.macosx-10.9-x86_64-2.7/_constant_time.o
>>>  
>>> -L/Applications/SageMath-7.5.1.app/Contents/Resources/sage/local/lib -o 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/bindings/_constant_time.so
>>> [pyopenssl]     building '_padding' extension
>>> [pyopenssl]     gcc -fno-strict-aliasing 
>>> -I/Applications/SageMath-7.5.1.app/Contents/Resources/sage/local/var/tmp/sage/build/python2-2.7.13.p0/include
>>>  
>>> -DNDEBUG -g -fwrapv -O3 -Wall -Wno-unused 
>>> -I/Applications/SageMath-7.5.1.app/Contents/Resources/sage/local/include/python2.7
>>>  
>>> -c build/temp.macosx-10.9-x86_64-2.7/_padding.c -o 
>>> build/temp.macosx-10.9-x86_64-2.7/build/temp.macosx-10.9-x86_64-2.7/_padding.o
>>> [pyopenssl]     gcc -bundle -undefined dynamic_lookup 
>>> -L/Applications/SageMath-7.5.1.app/Contents/Resources/sage/local/lib 
>>> -Wl,-rpath,/Applications/SageMath-7.5.1.app/Contents/Resources/sage/local/lib
>>>  
>>> -L/Applications/SageMath-7.5.1.app/Contents/Resources/sage/local/lib 
>>> -Wl,-rpath,/Applications/SageMath-7.5.1.app/Contents/Resources/sage/local/lib
>>>  
>>> build/temp.macosx-10.9-x86_64-2.7/build/temp.macosx-10.9-x86_64-2.7/_padding.o
>>>  
>>> -L/Applications/SageMath-7.5.1.app/Contents/Resources/sage/local/lib -o 
>>> build/lib.macosx-10.9-x86_64-2.7/cryptography/hazmat/bindings/_padding.so
>>> [pyopenssl]     building '_commoncrypto' extension
>>> [pyopenssl]     gcc -fno-strict-aliasing 
>>> -I/Applications/SageMath-7.5.1.app/Contents/Resources/sage/local/var/tmp/sage/build/python2-2.7.13.p0/include
>>>  
>>> -DNDEBUG -g -fwrapv -O3 -Wall -Wno-unused 
>>> -I/Applications/SageMath-7.5.1.app/Contents/Resources/sage/local/include/python2.7
>>>  
>>> -c build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c -o 
>>> build/temp.macosx-10.9-x86_64-2.7/build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.o
>>> [pyopenssl]     In file included from /usr/include/Availability.h:184:0,
>>> [pyopenssl]                      from /usr/include/stdio.h:65,
>>> [pyopenssl]                      from 
>>> /Applications/SageMath-7.5.1.app/Contents/Resources/sage/local/include/python2.7/Python.h:33,
>>> [pyopenssl]                      from 
>>> build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c:18:
>>> [pyopenssl]     
>>> /System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:53:34:
>>>  
>>> error: expected ',' or '}' before '__attribute__'
>>> [pyopenssl]          kCFISO8601DateFormatWithYear 
>>> API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0)) = (1UL << 
>>> 0),
>>> [pyopenssl]                                       ^
>>> [pyopenssl]     
>>> /System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:80:126:
>>>  
>>> error: 'introduced' undeclared here (not in a function)
>>> [pyopenssl]      CFDateFormatterRef 
>>> CFDateFormatterCreateISO8601Formatter(CFAllocatorRef allocator, 
>>> CFISO8601DateFormatOptions formatOptions) API_AVAILABLE(macosx(10.12), 
>>> ios(10.0), watchos(3.0), tvos(10.0));
>>> [pyopenssl]                                                             
>>>                                                                       ^
>>> [pyopenssl]     
>>> /System/Library/Frameworks/CoreFoundation.framework/Headers/CFURL.h:777:39: 
>>> error: 'deprecated' undeclared here (not in a function)
>>> [pyopenssl]      const CFStringRef kCFURLLabelColorKey 
>>> API_DEPRECATED("Use NSURLLabelColorKey", macosx(10.6, 10.12), ios(4.0, 
>>> 10.0), watchos(2.0, 3.0), tvos(9.0, 10.0));
>>> [pyopenssl]                                            ^
>>> [pyopenssl]     
>>> /System/Library/Frameworks/CoreFoundation.framework/Headers/CFURL.h:777:39: 
>>> error: 'message' undeclared here (not in a function)
>>> [pyopenssl]      const CFStringRef kCFURLLabelColorKey 
>>> API_DEPRECATED("Use NSURLLabelColorKey", macosx(10.6, 10.12), ios(4.0, 
>>> 10.0), watchos(2.0, 3.0), tvos(9.0, 10.0));
>>> [pyopenssl]                                            ^
>>> [pyopenssl]     In file included from 
>>> /System/Library/Frameworks/Security.framework/Headers/SecDigestTransform.h:28:0,
>>> [pyopenssl]                      from 
>>> build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c:470:
>>> [pyopenssl]     
>>> /System/Library/Frameworks/Security.framework/Headers/SecTransform.h:580:15:
>>>  
>>> error: expected identifier or '(' before '^' token
>>> [pyopenssl]      typedef void (^SecMessageBlock)(CFTypeRef __nullable 
>>> message, CFErrorRef __nullable error,
>>> [pyopenssl]                    ^
>>> [pyopenssl]     
>>> /System/Library/Frameworks/Security.framework/Headers/SecTransform.h:613:8: 
>>> error: unknown type name 'SecMessageBlock'
>>> [pyopenssl]             SecMessageBlock deliveryBlock)
>>> [pyopenssl]             ^
>>> [pyopenssl]     build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c: In 
>>> function '_cffi_var_kSecEncryptKey':
>>> [pyopenssl]     
>>> build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c:9383:10: warning: return 
>>> discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
>>> [pyopenssl]        return &(kSecEncryptKey);
>>> [pyopenssl]               ^
>>> [pyopenssl]     build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c: In 
>>> function '_cffi_var_kSecEncryptionMode':
>>> [pyopenssl]     
>>> build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c:9388:10: warning: return 
>>> discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
>>> [pyopenssl]        return &(kSecEncryptionMode);
>>> [pyopenssl]               ^
>>> [pyopenssl]     build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c: In 
>>> function '_cffi_var_kSecIVKey':
>>> [pyopenssl]     
>>> build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c:9393:10: warning: return 
>>> discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
>>> [pyopenssl]        return &(kSecIVKey);
>>> [pyopenssl]               ^
>>> [pyopenssl]     build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c: In 
>>> function '_cffi_var_kSecImportExportAccess':
>>> [pyopenssl]     
>>> build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c:9398:10: warning: return 
>>> discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
>>> [pyopenssl]        return &(kSecImportExportAccess);
>>> [pyopenssl]               ^
>>> [pyopenssl]     build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c: In 
>>> function '_cffi_var_kSecImportExportKeychain':
>>> [pyopenssl]     
>>> build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c:9403:10: warning: return 
>>> discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
>>> [pyopenssl]        return &(kSecImportExportKeychain);
>>> [pyopenssl]               ^
>>> [pyopenssl]     build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c: In 
>>> function '_cffi_var_kSecImportExportPassphrase':
>>> [pyopenssl]     
>>> build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c:9408:10: warning: return 
>>> discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
>>> [pyopenssl]        return &(kSecImportExportPassphrase);
>>> [pyopenssl]               ^
>>> [pyopenssl]     build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c: In 
>>> function '_cffi_var_kSecInputIsAttributeName':
>>> [pyopenssl]     
>>> build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c:9413:10: warning: return 
>>> discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
>>> [pyopenssl]        return &(kSecInputIsAttributeName);
>>> [pyopenssl]               ^
>>> [pyopenssl]     build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c: In 
>>> function '_cffi_var_kSecInputIsDigest':
>>> [pyopenssl]     
>>> build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c:9418:10: warning: return 
>>> discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
>>> [pyopenssl]        return &(kSecInputIsDigest);
>>> [pyopenssl]               ^
>>> [pyopenssl]     build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c: In 
>>> function '_cffi_var_kSecInputIsPlainText':
>>> [pyopenssl]     
>>> build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c:9423:10: warning: return 
>>> discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
>>> [pyopenssl]        return &(kSecInputIsPlainText);
>>> [pyopenssl]               ^
>>> [pyopenssl]     build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c: In 
>>> function '_cffi_var_kSecInputIsRaw':
>>> [pyopenssl]     
>>> build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c:9428:10: warning: return 
>>> discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
>>> [pyopenssl]        return &(kSecInputIsRaw);
>>> [pyopenssl]               ^
>>> [pyopenssl]     build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c: In 
>>> function '_cffi_var_kSecModeCBCKey':
>>> [pyopenssl]     
>>> build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c:9433:10: warning: return 
>>> discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
>>> [pyopenssl]        return &(kSecModeCBCKey);
>>> [pyopenssl]               ^
>>> [pyopenssl]     build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c: In 
>>> function '_cffi_var_kSecModeCFBKey':
>>> [pyopenssl]     
>>> build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c:9438:10: warning: return 
>>> discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
>>> [pyopenssl]        return &(kSecModeCFBKey);
>>> [pyopenssl]               ^
>>> [pyopenssl]     build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c: In 
>>> function '_cffi_var_kSecModeECBKey':
>>> [pyopenssl]     
>>> build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c:9443:10: warning: return 
>>> discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
>>> [pyopenssl]        return &(kSecModeECBKey);
>>> [pyopenssl]               ^
>>> [pyopenssl]     build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c: In 
>>> function '_cffi_var_kSecModeNoneKey':
>>> [pyopenssl]     
>>> build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c:9448:10: warning: return 
>>> discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
>>> [pyopenssl]        return &(kSecModeNoneKey);
>>> [pyopenssl]               ^
>>> [pyopenssl]     build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c: In 
>>> function '_cffi_var_kSecModeOFBKey':
>>> [pyopenssl]     
>>> build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c:9453:10: warning: return 
>>> discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
>>> [pyopenssl]        return &(kSecModeOFBKey);
>>> [pyopenssl]               ^
>>> [pyopenssl]     build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c: In 
>>> function '_cffi_var_kSecOAEPEncodingParametersAttributeName':
>>> [pyopenssl]     
>>> build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c:9458:10: warning: return 
>>> discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
>>> [pyopenssl]        return &(kSecOAEPEncodingParametersAttributeName);
>>> [pyopenssl]               ^
>>> [pyopenssl]     build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c: In 
>>> function '_cffi_var_kSecPaddingKey':
>>> [pyopenssl]     
>>> build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c:9463:10: warning: return 
>>> discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
>>> [pyopenssl]        return &(kSecPaddingKey);
>>> [pyopenssl]               ^
>>> [pyopenssl]     build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c: In 
>>> function '_cffi_var_kSecPaddingNoneKey':
>>> [pyopenssl]     
>>> build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c:9468:10: warning: return 
>>> discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
>>> [pyopenssl]        return &(kSecPaddingNoneKey);
>>> [pyopenssl]               ^
>>> [pyopenssl]     build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c: In 
>>> function '_cffi_var_kSecPaddingOAEPKey':
>>> [pyopenssl]     
>>> build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c:9473:10: warning: return 
>>> discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
>>> [pyopenssl]        return &(kSecPaddingOAEPKey);
>>> [pyopenssl]               ^
>>> [pyopenssl]     build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c: In 
>>> function '_cffi_var_kSecPaddingPKCS1Key':
>>> [pyopenssl]     
>>> build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c:9478:10: warning: return 
>>> discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
>>> [pyopenssl]        return &(kSecPaddingPKCS1Key);
>>> [pyopenssl]               ^
>>> [pyopenssl]     build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c: In 
>>> function '_cffi_var_kSecPaddingPKCS5Key':
>>> [pyopenssl]     
>>> build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c:9483:10: warning: return 
>>> discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
>>> [pyopenssl]        return &(kSecPaddingPKCS5Key);
>>> [pyopenssl]               ^
>>> [pyopenssl]     build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c: In 
>>> function '_cffi_var_kSecPaddingPKCS7Key':
>>> [pyopenssl]     
>>> build/temp.macosx-10.9-x86_64-2.7/_commoncrypto.c:9488:10: warning: return 
>>> discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
>>> [pyopenssl]        return &(kSecPaddingPKCS7Key);
>>> [pyopenssl]               ^
>>> [pyopenssl]     error: command 'gcc' failed with exit status 1
>>> [pyopenssl]
>>> [pyopenssl]     ----------------------------------------
>>> [pyopenssl] Command 
>>> "/Applications/SageMath-7.5.1.app/Contents/Resources/sage/local/bin/python 
>>> -u -c "import setuptools, 
>>> tokenize;__file__='/private/var/folders/qf/wr6_n5s56m780kv130nznmlc0000gn/T/pip-build-YqN6_t/cryptography/setup.py';exec(compile(getattr(tokenize,
>>>  
>>> 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" 
>>> install --record 
>>> /var/folders/qf/wr6_n5s56m780kv130nznmlc0000gn/T/pip-_Mvdak-record/install-record.txt
>>>  
>>> --single-version-externally-managed --compile" failed with error code 1 in 
>>> /private/var/folders/qf/wr6_n5s56m780kv130nznmlc0000gn/T/pip-build-YqN6_t/cryptography/
>>> [pyopenssl] You are using pip version 8.1.2, however version 9.0.1 is 
>>> available.
>>> [pyopenssl] You should consider upgrading via the 'pip install --upgrade 
>>> pip' command.
>>> make[1]: *** [pyopenssl] Error 1
>>>
>>> real   0m34.263s
>>> user   0m25.682s
>>> sys     0m3.271s
>>> ***************************************************************
>>> Error building Sage.
>>>
>>> The following package(s) may have failed to build (not necessarily
>>> during this run of 'make pyopenssl'):
>>>
>>> The build directory may contain configuration files and other potentially
>>> helpful information. WARNING: if you now run 'make' again, the build
>>> directory will, by default, be deleted. Set the environment variable
>>> SAGE_KEEP_BUILT_SPKGS to 'yes' to prevent this.
>>>
>>> make: *** [pyopenssl] Error 1
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to