classification
Title: _Py_Sigset_Converter used without #ifdef HAVE_SIGSET_T check
Type: compile error Stage: resolved
Components: Build, Cross-Build Versions: Python 3.11, Python 3.10, Python 3.9
process
Status: closed Resolution: duplicate
Dependencies: Superseder: Undefinied _Py_Sigset_Converter function when HAVE_SIGSET_T not set
View: 41498
Assigned To: Nosy List: Alex.Willmer, brett.cannon, christian.heimes
Priority: normal Keywords:

Created on 2021-11-24 21:50 by christian.heimes, last changed 2021-11-25 08:09 by christian.heimes. This issue is now closed.

Messages (2)
msg406964 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2021-11-24 21:50
posixmodule.c defines _Py_Sigset_Converter() only when feature macro HAVE_SIGSET_T is set. Several use of the function miss the feature macro check and fail on platforms without sigset_t (e.g. wasm).

Modules/posixmodule.c:5939:14: error: implicit declaration of function '_Py_Sigset_Converter' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
Modules/posixmodule.c:5952:14: error: implicit declaration of function '_Py_Sigset_Converter' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
Modules/clinic/signalmodule.c.h:385:10: error: implicit declaration of function '_Py_Sigset_Converter' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
msg406977 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2021-11-25 08:09
The problem has been reported before in bpo-41498.
History
Date User Action Args
2021-11-25 08:09:41christian.heimessetstatus: open -> closed
superseder: Undefinied _Py_Sigset_Converter function when HAVE_SIGSET_T not set
messages: + msg406977

resolution: duplicate
stage: needs patch -> resolved
2021-11-24 21:50:04christian.heimescreate