[Cryptography-dev] build cryptography-2.2.2 some problem And How to solve

li285913050 li285913050 at 163.com
Mon May 14 06:09:29 EDT 2018


hi:
My system information:
Redhat 5.6    gcc 4.1.2   

and python3.6.1 alerdy install successed.


But build cryptography-2.2.2 this version ,there are problems:       python setup.py build
running build
running build_py
running egg_info
writing src/cryptography.egg-info/PKG-INFO
writing dependency_links to src/cryptography.egg-info/dependency_links.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'
already up-to-date
generating cffi module 'build/temp.linux-x86_64-3.6/_constant_time.c'
already up-to-date
generating cffi module 'build/temp.linux-x86_64-3.6/_openssl.c'
already up-to-date
building '_openssl' extension
gcc -pthread -fno-strict-aliasing -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/python3.6/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 -Wconversion -Wno-error=sign-conversion
cc1: 错误:无法识别的命令行选项“-Wno-error=sign-conversion”
error: command 'gcc' failed with exit status 1




[root at fxqtest cryptography-2.2.2]# gcc -pthread -fno-strict-aliasing -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/python3.6/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:539:26: error:openssl/cmac.h:no file or directory
build/temp.linux-x86_64-3.6/_openssl.c:562:24: error:openssl/ec.h:no file or directory
build/temp.linux-x86_64-3.6/_openssl.c:566:26: error:openssl/ecdh.h:no file or directory
build/temp.linux-x86_64-3.6/_openssl.c:569:27: error:openssl/ecdsa.h:no file or directory
build/temp.linux-x86_64-3.6/_openssl.c:749: error:The function declaration is defined as. ‘typedef’
build/temp.linux-x86_64-3.6/_openssl.c:749: warning:The return type defaults to ‘int’
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘LHASH_OF’:
build/temp.linux-x86_64-3.6/_openssl.c:749: error:expected declaration specifiers before ‘Cryptography_LHASH_OF_CONF_VALUE’
build/temp.linux-x86_64-3.6/_openssl.c:751: error:the parameter ‘Cryptography_STACK_OF_ACCESS_DESCRIPTION’ Specifies the storage class
build/temp.linux-x86_64-3.6/_openssl.c:752: error:the parameter ‘Cryptography_STACK_OF_DIST_POINT’ Specifies the storage class
build/temp.linux-x86_64-3.6/_openssl.c:753: error:the parameter ‘Cryptography_STACK_OF_POLICYQUALINFO’ Specifies the storage class
build/temp.linux-x86_64-3.6/_openssl.c:754: error:the parameter ‘Cryptography_STACK_OF_POLICYINFO’ Specifies the storage class
build/temp.linux-x86_64-3.6/_openssl.c:755: error:the parameter ‘Cryptography_STACK_OF_ASN1_INTEGER’ Specifies the storage class
build/temp.linux-x86_64-3.6/_openssl.c:756: error:the parameter ‘Cryptography_STACK_OF_GENERAL_SUBTREE’ Specifies the storage class
build/temp.linux-x86_64-3.6/_openssl.c:768: error:the parameter ‘Cryptography_STACK_OF_ASN1_OBJECT’ Specifies the storage class
build/temp.linux-x86_64-3.6/_openssl.c:769: error:the parameter ‘Cryptography_STACK_OF_X509_OBJECT’ Specifies the storage class
In file included from /usr/include/sched.h:32,
                 from /usr/include/pthread.h:24,
                 from build/temp.linux-x86_64-3.6/_openssl.c:785:
/usr/include/bits/sched.h:75: error:the parameter ‘clone’ Specifies the storage class
/usr/include/bits/sched.h:78: error:the parameter ‘unshare’ Specifies the storage class
/usr/include/bits/sched.h:104: error:the parameter ‘__cpu_mask’ Specifies the storage class
/usr/include/bits/sched.h:113: error:expected specifier-qualifier-list before ‘__cpu_mask’
/usr/include/bits/sched.h:114: error:the parameter ‘cpu_set_t’ Specifies the storage class
In file included from /usr/include/pthread.h:24,
                 from build/temp.linux-x86_64-3.6/_openssl.c:785:
/usr/include/sched.h:41: error:the parameter ‘sched_setparam’ Specifies the storage class
/usr/include/sched.h:44: error:the parameter ‘sched_getparam’ Specifies the storage class
/usr/include/sched.h:48: error:the parameter ‘sched_setscheduler’ Specifies the storage class
/usr/include/sched.h:51: error:the parameter ‘sched_getscheduler’ Specifies the storage class
/usr/include/sched.h:54: error:the parameter ‘sched_yield’ Specifies the storage class
/usr/include/sched.h:57: error:the parameter ‘sched_get_priority_max’ Specifies the storage class
/usr/include/sched.h:60: error:the parameter ‘sched_get_priority_min’ Specifies the storage class
/usr/include/sched.h:63: error:the parameter ‘sched_rr_get_interval’ Specifies the storage class
/usr/include/sched.h:77: error:expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/include/sched.h:81: error:expected declaration specifiers or ‘...’ before ‘cpu_set_t’




So, please how to solve there are proplem?



Thanks!
2018-05-14


li285913050 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cryptography-dev/attachments/20180514/39a5dfcf/attachment.html>


More information about the Cryptography-dev mailing list