Source: mod-wsgi
Version: 5.0.0-1
Severity: normal
User: debian-pyt...@lists.debian.org
Usertags: python3.13
Forwarded: https://github.com/GrahamDumpleton/mod_wsgi/issues/907

This package failed build from source when test-built against a version of
python3-defaults that incudes 3.13 as a supported version.

To reproduce this issue, build against python3-defaults (python3-all-dev etc.)
from Debian experimental.

What's new in Python 3.13:
https://docs.python.org/3.13/whatsnew/3.13.html

Log snippet:

/usr/share/apr-1.0/build/libtool  --mode=compile --tag=disable-static 
aarch64-linux-gnu-gcc -prefer-pic -pipe -g -O2 
-Werror=implicit-function-declaration -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security 
-mbranch-protection=standard  -Wdate-time -D_FORTIFY_SOURCE=2   -DLINUX 
-D_REENTRANT -D_GNU_SOURCE   -I/usr/include/apache2  -I/usr/include/apr-1.0   
-I/usr/include/apr-1.0 -I/usr/include -g -O2 
-Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -mbranch-protection=standard -I/usr/include/python3.13 
-D_FORTIFY_SOURCE=2 -DNDEBUG  -c -o src/server/wsgi_interp.lo 
src/server/wsgi_interp.c && touch src/server/wsgi_interp.slo
libtool: compile:  aarch64-linux-gnu-gcc -pipe -g -O2 
-Werror=implicit-function-declaration -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security 
-mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -DLINUX 
-D_REENTRANT -D_GNU_SOURCE -I/usr/include/apache2 -I/usr/include/apr-1.0 
-I/usr/include/apr-1.0 -I/usr/include -g -O2 
-Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -mbranch-protection=standard -I/usr/include/python3.13 
-D_FORTIFY_SOURCE=2 -DNDEBUG -c src/server/wsgi_interp.c  -fPIC -DPIC -o 
src/server/.libs/wsgi_interp.o
src/server/wsgi_interp.c: In function 'newInterpreterObject':
src/server/wsgi_interp.c:733:46: warning: 'Py_FileSystemDefaultEncoding' is 
deprecated [-Wdeprecated-declarations]
  733 |                                              
Py_FileSystemDefaultEncoding,
      |                                              
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/python3.13/Python.h:95,
                 from src/server/wsgi_python.h:26,
                 from src/server/wsgi_interp.h:24,
                 from src/server/wsgi_interp.c:21:
/usr/include/python3.13/fileobject.h:22:46: note: declared here
   22 | Py_DEPRECATED(3.12) PyAPI_DATA(const char *) 
Py_FileSystemDefaultEncoding;
      |                                              
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/server/wsgi_interp.c:751:46: warning: 'Py_FileSystemDefaultEncoding' is 
deprecated [-Wdeprecated-declarations]
  751 |                                              
Py_FileSystemDefaultEncoding,
      |                                              
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.13/fileobject.h:22:46: note: declared here
   22 | Py_DEPRECATED(3.12) PyAPI_DATA(const char *) 
Py_FileSystemDefaultEncoding;
      |                                              
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/server/wsgi_interp.c:769:46: warning: 'Py_FileSystemDefaultEncoding' is 
deprecated [-Wdeprecated-declarations]
  769 |                                              
Py_FileSystemDefaultEncoding,
      |                                              
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.13/fileobject.h:22:46: note: declared here
   22 | Py_DEPRECATED(3.12) PyAPI_DATA(const char *) 
Py_FileSystemDefaultEncoding;
      |                                              
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/server/wsgi_interp.c:821:46: warning: 'Py_FileSystemDefaultEncoding' is 
deprecated [-Wdeprecated-declarations]
  821 |                                              
Py_FileSystemDefaultEncoding,
      |                                              
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.13/fileobject.h:22:46: note: declared here
   22 | Py_DEPRECATED(3.12) PyAPI_DATA(const char *) 
Py_FileSystemDefaultEncoding;
      |                                              
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/server/wsgi_interp.c:867:42: warning: 'Py_FileSystemDefaultEncoding' is 
deprecated [-Wdeprecated-declarations]
  867 |                                          Py_FileSystemDefaultEncoding,
      |                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.13/fileobject.h:22:46: note: declared here
   22 | Py_DEPRECATED(3.12) PyAPI_DATA(const char *) 
Py_FileSystemDefaultEncoding;
      |                                              
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/server/wsgi_interp.c:1139:37: warning: 'Py_FileSystemDefaultEncoding' is 
deprecated [-Wdeprecated-declarations]
 1139 |                                     Py_FileSystemDefaultEncoding,
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.13/fileobject.h:22:46: note: declared here
   22 | Py_DEPRECATED(3.12) PyAPI_DATA(const char *) 
Py_FileSystemDefaultEncoding;
      |                                              
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/server/wsgi_interp.c:1468:26: warning: 'Py_FileSystemDefaultEncoding' is 
deprecated [-Wdeprecated-declarations]
 1468 |                          Py_FileSystemDefaultEncoding,
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.13/fileobject.h:22:46: note: declared here
   22 | Py_DEPRECATED(3.12) PyAPI_DATA(const char *) 
Py_FileSystemDefaultEncoding;
      |                                              
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/server/wsgi_interp.c:1478:29: warning: 'Py_FileSystemDefaultEncoding' is 
deprecated [-Wdeprecated-declarations]
 1478 |                             Py_FileSystemDefaultEncoding,
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.13/fileobject.h:22:46: note: declared here
   22 | Py_DEPRECATED(3.12) PyAPI_DATA(const char *) 
Py_FileSystemDefaultEncoding;
      |                                              
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/server/wsgi_interp.c: In function 'wsgi_python_init':
src/server/wsgi_interp.c:2190:13: warning: 'Py_DontWriteBytecodeFlag' is 
deprecated [-Wdeprecated-declarations]
 2190 |             Py_DontWriteBytecodeFlag++;
      |             ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/python3.13/Python.h:72:
/usr/include/python3.13/cpython/pydebug.h:18:37: note: declared here
   18 | Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_DontWriteBytecodeFlag;
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~
src/server/wsgi_interp.c:2196:13: warning: 'Py_OptimizeFlag' is deprecated 
[-Wdeprecated-declarations]
 2196 |             Py_OptimizeFlag = wsgi_server_config->python_optimize;
      |             ^~~~~~~~~~~~~~~
/usr/include/python3.13/cpython/pydebug.h:13:37: note: declared here
   13 | Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_OptimizeFlag;
      |                                     ^~~~~~~~~~~~~~~
src/server/wsgi_interp.c:2198:13: warning: 'Py_OptimizeFlag' is deprecated 
[-Wdeprecated-declarations]
 2198 |             Py_OptimizeFlag = 0;
      |             ^~~~~~~~~~~~~~~
/usr/include/python3.13/cpython/pydebug.h:13:37: note: declared here
   13 | Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_OptimizeFlag;
      |                                     ^~~~~~~~~~~~~~~
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: warning: 'Py_SetProgramName' is deprecated 
[-Wdeprecated-declarations]
 2384 |                 Py_SetProgramName(s);
      |                 ^~~~~~~~~~~~~~~~~
In file included from /usr/include/python3.13/Python.h:119:
/usr/include/python3.13/pylifecycle.h:37:38: note: declared here
   37 | Py_DEPRECATED(3.11) PyAPI_FUNC(void) Py_SetProgramName(const wchar_t *);
      |                                      ^~~~~~~~~~~~~~~~~
src/server/wsgi_interp.c:2399:17: warning: 'Py_SetPythonHome' is deprecated 
[-Wdeprecated-declarations]
 2399 |                 Py_SetPythonHome(s);
      |                 ^~~~~~~~~~~~~~~~
/usr/include/python3.13/pylifecycle.h:40:38: note: declared here
   40 | Py_DEPRECATED(3.11) PyAPI_FUNC(void) Py_SetPythonHome(const wchar_t *);
      |                                      ^~~~~~~~~~~~~~~~
apxs:Error: Command failed with rc=65536
.
make[2]: *** [Makefile:31: src/server/mod_wsgi.la] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/build-3.13'
dh_auto_build: error: cd build-3.13 && make -j8 returned exit code 2
make[1]: *** [debian/rules:23: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:13: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2024-09-11T14:49:41Z


If required, the full build log is available here (for the next 30 days):
https://debusine.debian.net/artifact/700548/

This bug has been filed at "normal" severity, as we haven't started the
transition to add 3.13 as a supported version, yet. This will be raised to RC
as soon as that happens, hopefully well before trixie.

Thanks,

Stefano

Reply via email to