<div dir="auto">Can you share which version of OpenSSL you're compiling against? I have a suspicion it is too old for cryptography to reasonably support</div><br><div class="gmail_quote"><div dir="ltr">On Mon, May 14, 2018, 06:12 li285913050 <<a href="mailto:li285913050@163.com">li285913050@163.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>







<div style="LINE-HEIGHT:1.5;BORDER-RIGHT-WIDTH:0px;MARGIN:12px;FONT-FAMILY:微软雅黑;BORDER-TOP-WIDTH:0px;BORDER-BOTTOM-WIDTH:0px;COLOR:#000000;FONT-SIZE:10.5pt;BORDER-LEFT-WIDTH:0px" marginheight="0" marginwidth="0"><u></u>
<div>hi:</div>
<div style="TEXT-INDENT:2em">My system information:</div>
<div style="TEXT-INDENT:6em">Redhat 5.6    gcc 4.1.2   
</div>
<div style="TEXT-INDENT:2em"> </div>
<div style="TEXT-INDENT:2em">and python3.6.1 alerdy install successed.</div>
<div style="TEXT-INDENT:2em"> </div>
<div style="TEXT-INDENT:2em"> </div>
<div style="TEXT-INDENT:2em">But build cryptography-2.2.2 this version ,there 
are problems:      
<table style="BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;BORDER-COLLAPSE:collapse;FONT-SIZE:10pt;BORDER-TOP:medium none;BORDER-RIGHT:medium none" id="m_-2021762425932709998flashmail_table_2" border="1" cellspacing="0" cellpadding="2">
  <caption><span style="FONT-FAMILY:微软雅黑;FONT-SIZE:10.5pt"></span></caption>
  <tbody>
  <tr>
    <td style="BORDER-BOTTOM:#000000 1px solid;BORDER-LEFT:#000000 1px solid;BORDER-TOP:#000000 1px solid;BORDER-RIGHT:#000000 1px solid" width="1226" nowrap><span style="FONT-FAMILY:微软雅黑;FONT-SIZE:10.5pt">
      <div> python setup.py build<br>running build<br>running 
      build_py<br>running egg_info<br>writing 
      src/cryptography.egg-info/PKG-INFO<br>writing dependency_links to 
      src/cryptography.egg-info/dependency_links.txt<br>writing requirements to 
      src/cryptography.egg-info/requires.txt<br>writing top-level names to 
      src/cryptography.egg-info/top_level.txt<br>reading manifest file 
      'src/cryptography.egg-info/SOURCES.txt'<br>reading manifest template 
      'MANIFEST.in'<br>no previously-included directories found matching 
      'docs/_build'<br>warning: no previously-included files matching '*' found 
      under directory 'vectors'<br>writing manifest file 
      'src/cryptography.egg-info/SOURCES.txt'<br>running build_ext<br>generating 
      cffi module 'build/temp.linux-x86_64-3.6/_padding.c'<br>already 
      up-to-date<br>generating cffi module 
      'build/temp.linux-x86_64-3.6/_constant_time.c'<br>already 
      up-to-date<br>generating cffi module 
      'build/temp.linux-x86_64-3.6/_openssl.c'<br>already up-to-date<br>building 
      '_openssl' extension<br>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<br>cc1: 
      错误:无法识别的命令行选项“-Wno-error=sign-conversion”<br>error: command 'gcc' failed 
      with exit status 1<br></div></span></td></tr></tbody></table></div>
<div style="TEXT-INDENT:2em"> </div>
<div> </div>
<div>
<table style="BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;BORDER-COLLAPSE:collapse;FONT-SIZE:10pt;BORDER-TOP:medium none;BORDER-RIGHT:medium none" id="m_-2021762425932709998flashmail_table_3" border="1" cellspacing="0" cellpadding="2">
  <caption><span style="FONT-FAMILY:微软雅黑;FONT-SIZE:10.5pt"></span></caption>
  <tbody>
  <tr>
    <td style="BORDER-BOTTOM:#000000 1px solid;BORDER-LEFT:#000000 1px solid;BORDER-TOP:#000000 1px solid;BORDER-RIGHT:#000000 1px solid" width="1227" nowrap><span style="FONT-FAMILY:微软雅黑;FONT-SIZE:10.5pt">
      <div>[root@fxqtest cryptography-2.2.2]# <span style="COLOR:#ff0000">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<br></span>build/temp.linux-x86_64-3.6/_openssl.c:539:26: 
      error:openssl/cmac.h:no file or 
      directory<br>build/temp.linux-x86_64-3.6/_openssl.c:562:24: 
      error:openssl/ec.h:no file or 
      directory<br>build/temp.linux-x86_64-3.6/_openssl.c:566:26: 
      error:openssl/ecdh.h:no file or 
      directory<br>build/temp.linux-x86_64-3.6/_openssl.c:569:27: 
      error:openssl/ecdsa.h:no file or 
      directory<br>build/temp.linux-x86_64-3.6/_openssl.c:749: error:The 
      function declaration is defined as. 
      ‘typedef’<br>build/temp.linux-x86_64-3.6/_openssl.c:749: warning:The 
      return type defaults to ‘int’<br>build/temp.linux-x86_64-3.6/_openssl.c: 
      In function ‘LHASH_OF’:<br>build/temp.linux-x86_64-3.6/_openssl.c:749: 
      error:expected declaration specifiers before 
      ‘Cryptography_LHASH_OF_CONF_VALUE’<br>build/temp.linux-x86_64-3.6/_openssl.c:751: 
      error:the parameter ‘Cryptography_STACK_OF_ACCESS_DESCRIPTION’ Specifies 
      the storage class<br>build/temp.linux-x86_64-3.6/_openssl.c:752: error:the 
      parameter ‘Cryptography_STACK_OF_DIST_POINT’ Specifies the storage 
      class<br>build/temp.linux-x86_64-3.6/_openssl.c:753: error:the parameter 
      ‘Cryptography_STACK_OF_POLICYQUALINFO’ Specifies the storage 
      class<br>build/temp.linux-x86_64-3.6/_openssl.c:754: error:the parameter 
      ‘Cryptography_STACK_OF_POLICYINFO’ Specifies the storage 
      class<br>build/temp.linux-x86_64-3.6/_openssl.c:755: error:the parameter 
      ‘Cryptography_STACK_OF_ASN1_INTEGER’ Specifies the storage 
      class<br>build/temp.linux-x86_64-3.6/_openssl.c:756: error:the parameter 
      ‘Cryptography_STACK_OF_GENERAL_SUBTREE’ Specifies the storage 
      class<br>build/temp.linux-x86_64-3.6/_openssl.c:768: error:the parameter 
      ‘Cryptography_STACK_OF_ASN1_OBJECT’ Specifies the storage 
      class<br>build/temp.linux-x86_64-3.6/_openssl.c:769: error:the parameter 
      ‘Cryptography_STACK_OF_X509_OBJECT’ Specifies the storage class<br>In file 
      included from 
      /usr/include/sched.h:32,<br>                 
      from 
      /usr/include/pthread.h:24,<br>                 
      from 
      build/temp.linux-x86_64-3.6/_openssl.c:785:<br>/usr/include/bits/sched.h:75: 
      error:the parameter ‘clone’ Specifies the storage 
      class<br>/usr/include/bits/sched.h:78: error:the parameter ‘unshare’ 
      Specifies the storage class<br>/usr/include/bits/sched.h:104: error:the 
      parameter ‘__cpu_mask’ Specifies the storage 
      class<br>/usr/include/bits/sched.h:113: error:expected 
      specifier-qualifier-list before 
      ‘__cpu_mask’<br>/usr/include/bits/sched.h:114: error:the parameter 
      ‘cpu_set_t’ Specifies the storage class<br>In file included from 
      /usr/include/pthread.h:24,<br>                 
      from 
      build/temp.linux-x86_64-3.6/_openssl.c:785:<br>/usr/include/sched.h:41: 
      error:the parameter ‘sched_setparam’ Specifies the storage 
      class<br>/usr/include/sched.h:44: error:the parameter ‘sched_getparam’ 
      Specifies the storage class<br>/usr/include/sched.h:48: error:the 
      parameter ‘sched_setscheduler’ Specifies the storage 
      class<br>/usr/include/sched.h:51: error:the parameter ‘sched_getscheduler’ 
      Specifies the storage class<br>/usr/include/sched.h:54: error:the 
      parameter ‘sched_yield’ Specifies the storage 
      class<br>/usr/include/sched.h:57: error:the parameter 
      ‘sched_get_priority_max’ Specifies the storage 
      class<br>/usr/include/sched.h:60: error:the parameter 
      ‘sched_get_priority_min’ Specifies the storage 
      class<br>/usr/include/sched.h:63: error:the parameter 
      ‘sched_rr_get_interval’ Specifies the storage 
      class<br>/usr/include/sched.h:77: error:expected ‘;’, ‘,’ or ‘)’ before 
      ‘*’ token<br>/usr/include/sched.h:81: error:expected declaration 
      specifiers or ‘...’ before 
‘cpu_set_t’</div></span></td></tr></tbody></table></div>
<div> </div>
<div> </div>
<div> </div>
<div>So, please how to solve there are proplem?</div>
<div> </div>
<div> </div>
<div> </div>
<div>Thanks!</div>
<div style="FONT-FAMILY:Verdana;COLOR:#c0c0c0;FONT-SIZE:10pt">
<div align="left">2018-05-14</div>
<hr style="BORDER-BOTTOM:0px;BORDER-LEFT:0px;WIDTH:122px;HEIGHT:1px;BORDER-TOP:#c0c0c0 1px solid;BORDER-RIGHT:0px" id="m_-2021762425932709998SignNameHR" align="left">
<span id="m_-2021762425932709998_FlashSignName">li285913050</span> </div><u></u></div>_______________________________________________<br>
Cryptography-dev mailing list<br>
<a href="mailto:Cryptography-dev@python.org" target="_blank" rel="noreferrer">Cryptography-dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/cryptography-dev" rel="noreferrer noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/cryptography-dev</a><br>
</blockquote></div>