From li285913050 at 163.com Mon May 14 06:09:29 2018 From: li285913050 at 163.com (li285913050) Date: Mon, 14 May 2018 18:09:29 +0800 Subject: [Cryptography-dev] build cryptography-2.2.2 some problem And How to solve Message-ID: <671f96b9.82c1ab.1635e2059ff.Coremail.li285913050@163.com> 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: From sigmavirus24 at gmail.com Mon May 14 08:05:08 2018 From: sigmavirus24 at gmail.com (Ian Stapleton Cordasco) Date: Mon, 14 May 2018 07:05:08 -0500 Subject: [Cryptography-dev] build cryptography-2.2.2 some problem And How to solve In-Reply-To: <671f96b9.82c1ab.1635e2059ff.Coremail.li285913050@163.com> References: <671f96b9.82c1ab.1635e2059ff.Coremail.li285913050@163.com> Message-ID: Can you share which version of OpenSSL you're compiling against? I have a suspicion it is too old for cryptography to reasonably support On Mon, May 14, 2018, 06:12 li285913050 wrote: > 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 > _______________________________________________ > Cryptography-dev mailing list > Cryptography-dev at python.org > https://mail.python.org/mailman/listinfo/cryptography-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dlila at google.com Thu May 17 21:28:23 2018 From: dlila at google.com (Denis Lila) Date: Thu, 17 May 2018 18:28:23 -0700 Subject: [Cryptography-dev] Adding support for custom extension methods Message-ID: Hi everyone. I'm trying to add support for custom extensions in pyopenssl. I have two PRs that implement this: 1. PR4202 in pyca/cryptography 2. PR749 in pyca/pyopenssl 4202 was merged about one month ago. 749 is waiting to be reviewed. It also depends on 4202 so that needs to be released first. How does the release process work for pyca/cryptography? Can we create a 2.2.3 release that includes PR4202? Thank you, Denis. -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.l.kehrer at gmail.com Sat May 19 22:06:30 2018 From: paul.l.kehrer at gmail.com (Paul Kehrer) Date: Sat, 19 May 2018 19:06:30 -0700 Subject: [Cryptography-dev] Adding support for custom extension methods In-Reply-To: References: Message-ID: Hi Denis, cryptography releases don't have a formalized process for when we'll release, but at the moment we expect to ship a release in the next few weeks. Once that's out you can raise the minimum version requirement in pyOpenSSL and we can potentially merge your other PR. I haven't reviewed the custom extensions PR so I can't say if anything else might be needed, but hopefully a core maintainer can get to it soon-ish. -Paul (reaperhulk) On May 18, 2018 at 9:28:49 AM, Denis Lila via Cryptography-dev ( cryptography-dev at python.org) wrote: Hi everyone. I'm trying to add support for custom extensions in pyopenssl. I have two PRs that implement this: 1. PR4202 in pyca/cryptography 2. PR749 in pyca/pyopenssl 4202 was merged about one month ago. 749 is waiting to be reviewed. It also depends on 4202 so that needs to be released first. How does the release process work for pyca/cryptography? Can we create a 2.2.3 release that includes PR4202? Thank you, Denis. _______________________________________________ Cryptography-dev mailing list Cryptography-dev at python.org https://mail.python.org/mailman/listinfo/cryptography-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: