[Python-checkins] bpo-42591: Export missing Py_FrozenMain() symbol (GH-23730) (GH-23734)

vstinner webhook-mailer at python.org
Mon Dec 14 18:32:07 EST 2020


https://github.com/python/cpython/commit/6b2ed385094839c1920b934f07d946bf049a3770
commit: 6b2ed385094839c1920b934f07d946bf049a3770
branch: 3.9
author: Victor Stinner <vstinner at python.org>
committer: vstinner <vstinner at python.org>
date: 2020-12-15T00:31:54+01:00
summary:

bpo-42591: Export missing Py_FrozenMain() symbol (GH-23730) (GH-23734)

Export the Py_FrozenMain() function: fix a Python 3.9.0 regression.
Python 3.9 uses -fvisibility=hidden and the function was not exported
explicitly and so not exported.

(cherry picked from commit b5c7b38f5ebbc84b5b80192db1743d3e1cdcf4c5)

files:
A Misc/NEWS.d/next/C API/2020-12-10-10-43-03.bpo-42591.CXNY8G.rst
M Include/pylifecycle.h

diff --git a/Include/pylifecycle.h b/Include/pylifecycle.h
index c5368b3c5edaa..783fcb455eb52 100644
--- a/Include/pylifecycle.h
+++ b/Include/pylifecycle.h
@@ -32,6 +32,8 @@ PyAPI_FUNC(void) _Py_NO_RETURN Py_Exit(int);
 /* Bootstrap __main__ (defined in Modules/main.c) */
 PyAPI_FUNC(int) Py_Main(int argc, wchar_t **argv);
 
+PyAPI_FUNC(int) Py_FrozenMain(int argc, char **argv);
+
 PyAPI_FUNC(int) Py_BytesMain(int argc, char **argv);
 
 /* In pathconfig.c */
diff --git a/Misc/NEWS.d/next/C API/2020-12-10-10-43-03.bpo-42591.CXNY8G.rst b/Misc/NEWS.d/next/C API/2020-12-10-10-43-03.bpo-42591.CXNY8G.rst
new file mode 100644
index 0000000000000..3519859f7be89
--- /dev/null
+++ b/Misc/NEWS.d/next/C API/2020-12-10-10-43-03.bpo-42591.CXNY8G.rst	
@@ -0,0 +1,3 @@
+Export the :c:func:`Py_FrozenMain` function: fix a Python 3.9.0 regression.
+Python 3.9 uses ``-fvisibility=hidden`` and the function was not exported
+explicitly and so not exported.



More information about the Python-checkins mailing list