[issue44133] Some C-API symbols (e.g. Py_FrozenMain) are not always exported on Unix

2022-04-01 Thread Jakub Kulik
Jakub Kulik added the comment: Yes, it still does, and PyThread_get_thread_native_id is the only symbol missing. -- ___ Python tracker ___

[issue44133] Some C-API symbols (e.g. Py_FrozenMain) are not always exported on Unix

2022-03-30 Thread Petr Viktorin
Petr Viktorin added the comment: > Ah, sorry, I could have described the issue better. It's not a problem with > exporting, PyThread_get_thread_native_id() isn't available on Solaris (and > possibly other platforms) at all. Jakub, does this mean test_stable_abi_ctypes fails on Solaris? Are

[issue44133] Some C-API symbols (e.g. Py_FrozenMain) are not always exported on Unix

2022-01-17 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44133] Some C-API symbols (e.g. Py_FrozenMain) are not always exported on Unix

2022-01-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 16901c0482734dbd389b09ca3edfcf3e22faeed7 by Victor Stinner in branch 'main': bpo-44133: Skip PyThread_get_thread_native_id() if not available (GH-30636) https://github.com/python/cpython/commit/16901c0482734dbd389b09ca3edfcf3e22faeed7

[issue44133] Some C-API symbols (e.g. Py_FrozenMain) are not always exported on Unix

2022-01-17 Thread STINNER Victor
STINNER Victor added the comment: > Ah, sorry, I could have described the issue better. It's not a problem with > exporting, PyThread_get_thread_native_id() isn't available on Solaris (and > possibly other platforms) at all. Oh ok, it's a simple bug in my test. I wrote GH-30636 to fix it.

[issue44133] Some C-API symbols (e.g. Py_FrozenMain) are not always exported on Unix

2022-01-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +28839 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/30636 ___ Python tracker ___

[issue44133] Some C-API symbols (e.g. Py_FrozenMain) are not always exported on Unix

2022-01-17 Thread Jakub Kulik
Jakub Kulik added the comment: Ah, sorry, I could have described the issue better. It's not a problem with exporting, PyThread_get_thread_native_id() isn't available on Solaris (and possibly other platforms) at all. https://github.com/python/cpython/blob/main/Include/pythread.h#L28

[issue44133] Some C-API symbols (e.g. Py_FrozenMain) are not always exported on Unix

2022-01-17 Thread STINNER Victor
STINNER Victor added the comment: Oh no, I expected that the new way to build Python would also export PyThread_get_thread_native_id() on Solaris. I reopen the issue. Can you please specify your configure command? Can you check without Python if the symbol is exported or not? If you use

[issue44133] Some C-API symbols (e.g. Py_FrozenMain) are not always exported on Unix

2022-01-17 Thread Jakub Kulik
Jakub Kulik added the comment: >> On Solaris (and most likely several other platforms), >> `PyThread_get_thread_native_id` is also not available. > Oh, I added an explicit test for that in my PR 30556. Now it started failing on a different place:

[issue44133] Some C-API symbols (e.g. Py_FrozenMain) are not always exported on Unix

2022-01-13 Thread STINNER Victor
Change by STINNER Victor : -- title: Some C-API symbols (e.g. Py_FrozenMain) are not always exported -> Some C-API symbols (e.g. Py_FrozenMain) are not always exported on Unix ___ Python tracker

[issue44133] Some C-API symbols (e.g. Py_FrozenMain) are not always exported

2022-01-13 Thread STINNER Victor
STINNER Victor added the comment: > New changeset 6be848922bc0f4c632c255c39de82a45b6480286 by Victor Stinner in > branch 'main': > bpo-44133: Link Python executable with object files (GH-30556) Sadly, Py_FrozenMain() is still missing on Windows. See:

[issue44133] Some C-API symbols (e.g. Py_FrozenMain) are not always exported

2022-01-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6be848922bc0f4c632c255c39de82a45b6480286 by Victor Stinner in branch 'main': bpo-44133: Link Python executable with object files (GH-30556) https://github.com/python/cpython/commit/6be848922bc0f4c632c255c39de82a45b6480286 --

[issue44133] Some C-API symbols (e.g. Py_FrozenMain) are not always exported

2022-01-12 Thread STINNER Victor
STINNER Victor added the comment: > On Solaris (and most likely several other platforms), > `PyThread_get_thread_native_id` is also not available. Oh, I added an explicit test for that in my PR 30556. > `Py_FrozenMain` should be added to stable ABI I suggest to first fix the issue (export

[issue44133] Some C-API symbols (e.g. Py_FrozenMain) are not always exported

2022-01-12 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +28757 pull_request: https://github.com/python/cpython/pull/30556 ___ Python tracker ___

[issue44133] Some C-API symbols (e.g. Py_FrozenMain) are not always exported

2021-12-01 Thread Hai Shi
Change by Hai Shi : -- nosy: +shihai1991 nosy_count: 4.0 -> 5.0 pull_requests: +28101 pull_request: https://github.com/python/cpython/pull/29876 ___ Python tracker ___

[issue44133] Some C-API symbols (e.g. Py_FrozenMain) are not always exported

2021-11-25 Thread Jakub Kulik
Jakub Kulik added the comment: On Solaris (and most likely several other platforms), `PyThread_get_thread_native_id` is also not available. -- nosy: +kulikjak ___ Python tracker

[issue44133] Some C-API symbols (e.g. Py_FrozenMain) are not always exported

2021-10-22 Thread Petr Viktorin
Petr Viktorin added the comment: Repurposing this bug to track all symbols that don't appear in some configurations. - `Py_FrozenMain` should be added to stable ABI when this is fixed. It was left out of the 3.10 stable ABI for only this reason. See discussion here: