Bug 2245872 - mod_wsgi fails to build with Python 3.13: error: implicit declaration of function '_PyThread_CurrentFrames'
Summary: mod_wsgi fails to build with Python 3.13: error: implicit declaration of func...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: mod_wsgi
Version: rawhide
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ---
Assignee: Matthias Runge
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.13
TreeView+ depends on / blocked
 
Reported: 2023-10-24 12:06 UTC by Karolina Surma
Modified: 2024-06-06 21:29 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-06-06 21:29:25 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github GrahamDumpleton mod_wsgi pull 883 0 None open Use PyConfig API on Python 3.8 2024-04-18 10:46:17 UTC

Description Karolina Surma 2023-10-24 12:06:35 UTC
mod_wsgi fails to build with Python 3.13.0a1.

src/server/mod_wsgi.c: In function 'wsgi_log_stack_traces':
src/server/mod_wsgi.c:9530:15: error: implicit declaration of function '_PyThread_CurrentFrames' [-Werror=implicit-function-declaration]
 9530 |     threads = _PyThread_CurrentFrames();
      |               ^~~~~~~~~~~~~~~~~~~~~~~

https://docs.python.org/3.13/whatsnew/3.13.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/06557896-mod_wsgi/

For all our attempts to build mod_wsgi with Python 3.13, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/mod_wsgi/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.13:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/

Let us know here if you have any questions.

Python 3.13 is planned to be included in Fedora 41.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Karolina Surma 2024-01-25 08:10:42 UTC
With Python 3.13.0a3 the build error is different:

src/server/wsgi_interp.c:2223:17: error: implicit declaration of function 'PySys_AddWarnOption'; did you mean 'PySys_ResetWarnOptions'? [-Wimplicit-function-declaration]
 2223 |                 PySys_AddWarnOption(s);
      |                 ^~~~~~~~~~~~~~~~~~~
      |                 PySys_ResetWarnOptions
src/server/wsgi_interp.c:2384:17: error: implicit declaration of function 'Py_SetProgramName'; did you mean 'Py_GetProgramName'? [-Wimplicit-function-declaration]
 2384 |                 Py_SetProgramName(s);
      |                 ^~~~~~~~~~~~~~~~~
      |                 Py_GetProgramName
src/server/wsgi_interp.c:2399:17: error: implicit declaration of function 'Py_SetPythonHome'; did you mean 'Py_GetPythonHome'? [-Wimplicit-function-declaration]
 2399 |                 Py_SetPythonHome(s);
      |                 ^~~~~~~~~~~~~~~~
      |                 Py_GetPythonHome

Comment 2 Aoife Moloney 2024-02-15 23:01:28 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 40 development cycle.
Changing version to 40.

Comment 3 Miro Hrončok 2024-04-12 13:38:59 UTC
This blocks freeipa testing.

Comment 4 Miro Hrončok 2024-04-18 10:46:17 UTC
https://github.com/GrahamDumpleton/mod_wsgi/pull/883


Note You need to log in before you can comment on or make changes to this bug.