[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