hai shi <shihai1...@126.com> added the comment:

Got some compiling error of _ssl extension module in my vm after PR19082 merged:
building '_ssl' extension
gcc -pthread -Wno-unused-result -Wsign-compare -g -Og -Wall -fPIC -I./Include 
-I. -I/usr/local/include -I/temp/shihai/cpython/Include -I/temp/shihai/cpython 
-c /temp/shihai/cpython/Modules/_ssl.c -o 
build/temp.linux-x86_64-3.9-pydebug/temp/shihai/cpython/Modules/_ssl.o
In file included from /temp/shihai/cpython/Modules/_ssl.c:136:
/temp/shihai/cpython/Modules/_ssl_data.h:6:15: error: ‘ERR_LIB_ASYNC’ 
undeclared here (not in a function); did you mean ‘ERR_LIB_ASN1’?
    6 |     {"ASYNC", ERR_LIB_ASYNC},
      |               ^~~~~~~~~~~~~
      |               ERR_LIB_ASN1
/temp/shihai/cpython/Modules/_ssl_data.h:13:12: error: ‘ERR_LIB_CT’ undeclared 
here (not in a function); did you mean ‘ERR_LIB_CMS’?
   13 |     {"CT", ERR_LIB_CT},
      |            ^~~~~~~~~~
      |            ERR_LIB_CMS
/temp/shihai/cpython/Modules/_ssl_data.h:19:13: error: ‘ERR_LIB_KDF’ undeclared 
here (not in a function); did you mean ‘ERR_LIB_BUF’?
   19 |     {"KDF", ERR_LIB_KDF},
      |             ^~~~~~~~~~~
      |             ERR_LIB_BUF
In file included from /temp/shihai/cpython/Modules/_ssl.c:136:
/temp/shihai/cpython/Modules/_ssl_data.h:598:28: warning: initialization of 
‘int’ from ‘struct py_ssl_library_code *’ makes integer from pointer without a 
cast [-Wint-conversion]
  598 |     {"FAILED_TO_SET_POOL", ERR_LIB_ASYNC, 101},
      |                            ^~~~~~~~~~~~~
/temp/shihai/cpython/Modules/_ssl_data.h:598:28: note: (near initialization for 
‘error_codes[112].library’)
/temp/shihai/cpython/Modules/_ssl_data.h:598:28: error: initializer element is 
not constant
/temp/shihai/cpython/Modules/_ssl_data.h:598:28: note: (near initialization for 
‘error_codes[112].library’)
/temp/shihai/cpython/Modules/_ssl_data.h:603:32: warning: initialization of 
‘int’ from ‘struct py_ssl_library_code *’ makes integer from pointer without a 
cast [-Wint-conversion]
  603 |     {"FAILED_TO_SWAP_CONTEXT", ERR_LIB_ASYNC, 102},

----------
nosy: +shihai1991

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue39953>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to