Source: libxml2
Version: 2.12.7+dfsg+really2.9.14-0.1
Severity: serious
Tags: ftbfs
Justification: FTBFS
User: debian-pyt...@lists.debian.org
Usertags: python3.13

This package failed build from source when test-built against a version of
python3-defaults that includes 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:

      |           ^~~~~~~~~~~~~~~~~
      |           PyObject_CallMethod
../../../python/libxml.c:260:9: error: assignment to 'PyObject *' {aka 'struct 
_object *'} from 'int' makes pointer from integer without a cast 
[-Wint-conversion]
  260 |     ret = PyEval_CallMethod(file, (char *) "close", (char *) "()");
      |         ^
../../../python/libxml.c: In function 'xmlPythonFileReadRaw':
../../../python/libxml.c:290:9: error: assignment to 'PyObject *' {aka 'struct 
_object *'} from 'int' makes pointer from integer without a cast 
[-Wint-conversion]
  290 |     ret = PyEval_CallMethod(file, (char *) "read", (char *) "(i)", len);
      |         ^
../../../python/libxml.c: In function 'xmlPythonFileRead':
../../../python/libxml.c:355:9: error: assignment to 'PyObject *' {aka 'struct 
_object *'} from 'int' makes pointer from integer without a cast 
[-Wint-conversion]
  355 |     ret = PyEval_CallMethod(file, (char *) "io_read", (char *) "(i)", 
len);
      |         ^
../../../python/libxml.c: In function 'xmlPythonFileWrite':
../../../python/libxml.c:423:13: error: assignment to 'PyObject *' {aka 'struct 
_object *'} from 'int' makes pointer from integer without a cast 
[-Wint-conversion]
  423 |         ret = PyEval_CallMethod(file, (char *) "io_write", (char *) 
"(O)",
      |             ^
../../../python/libxml.c:426:13: error: assignment to 'PyObject *' {aka 'struct 
_object *'} from 'int' makes pointer from integer without a cast 
[-Wint-conversion]
  426 |         ret = PyEval_CallMethod(file, (char *) "write", (char *) "(O)",
      |             ^
../../../python/libxml.c: In function 'xmlPythonFileClose':
../../../python/libxml.c:462:13: error: assignment to 'PyObject *' {aka 'struct 
_object *'} from 'int' makes pointer from integer without a cast 
[-Wint-conversion]
  462 |         ret = PyEval_CallMethod(file, (char *) "io_close", (char *) 
"()");
      |             ^
../../../python/libxml.c:464:13: error: assignment to 'PyObject *' {aka 'struct 
_object *'} from 'int' makes pointer from integer without a cast 
[-Wint-conversion]
  464 |         ret = PyEval_CallMethod(file, (char *) "flush", (char *) "()");
      |             ^
../../../python/types.c: In function 'libxml_PyFileGet':
../../../python/types.c:86:14: warning: unused variable 'w_fh' 
[-Wunused-variable]
   86 |     intptr_t w_fh = -1;
      |              ^~~~
../../../python/libxml.c: In function 'libxml_xmlErrorFuncHandler':
../../../python/libxml.c:1650:43: warning: pointer targets in passing argument 
1 of 'libxml_charPtrConstWrap' differ in signedness [-Wpointer-sign]
 1650 |         message = libxml_charPtrConstWrap(ptr);
      |                                           ^~~
      |                                           |
      |                                           unsigned char *
In file included from ../../../python/libxml.c:29:
../../../python/libxml_wrap.h:240:48: note: expected 'const char *' but 
argument is of type 'unsigned char *'
  240 | PyObject * libxml_charPtrConstWrap(const char *str);
      |                                    ~~~~~~~~~~~~^~~
../../../python/libxml.c:1652:18: error: implicit declaration of function 
'PyEval_CallObject'; did you mean 'PyObject_CallObject'? 
[-Wimplicit-function-declaration]
 1652 |         result = PyEval_CallObject(libxml_xmlPythonErrorFuncHandler, 
list);
      |                  ^~~~~~~~~~~~~~~~~
      |                  PyObject_CallObject
../../../python/libxml.c:1652:16: error: assignment to 'PyObject *' {aka 
'struct _object *'} from 'int' makes pointer from integer without a cast 
[-Wint-conversion]
 1652 |         result = PyEval_CallObject(libxml_xmlPythonErrorFuncHandler, 
list);
      |                ^
../../../python/libxml.c: In function 
'libxml_xmlParserCtxtGenericErrorFuncHandler':
../../../python/libxml.c:1742:12: error: assignment to 'PyObject *' {aka 
'struct _object *'} from 'int' makes pointer from integer without a cast 
[-Wint-conversion]
 1742 |     result = PyEval_CallObject(pyCtxt->f, list);
      |            ^
../../../python/libxml.c: In function 
'libxml_xmlValidCtxtGenericErrorFuncHandler':
../../../python/libxml.c:1928:12: error: assignment to 'PyObject *' {aka 
'struct _object *'} from 'int' makes pointer from integer without a cast 
[-Wint-conversion]
 1928 |     result = PyEval_CallObject(pyCtxt->error, list);
      |            ^
../../../python/libxml.c: In function 
'libxml_xmlValidCtxtGenericWarningFuncHandler':
../../../python/libxml.c:1955:12: error: assignment to 'PyObject *' {aka 
'struct _object *'} from 'int' makes pointer from integer without a cast 
[-Wint-conversion]
 1955 |     result = PyEval_CallObject(pyCtxt->warn, list);
      |            ^
../../../python/libxml.c: In function 'libxml_xmlTextReaderErrorCallback':
../../../python/libxml.c:2090:12: error: assignment to 'PyObject *' {aka 
'struct _object *'} from 'int' makes pointer from integer without a cast 
[-Wint-conversion]
 2090 |     result = PyEval_CallObject(pyCtxt->f, list);
      |            ^
../../../python/libxml.c: In function 'libxml_xmlXPathFuncCallback':
../../../python/libxml.c:2285:12: error: assignment to 'PyObject *' {aka 
'struct _object *'} from 'int' makes pointer from integer without a cast 
[-Wint-conversion]
 2285 |     result = PyEval_CallObject(current_function, list);
      |            ^
../../../python/libxml.c: In function 
'libxml_xmlRelaxNGValidityGenericErrorFuncHandler':
../../../python/libxml.c:3188:12: error: assignment to 'PyObject *' {aka 
'struct _object *'} from 'int' makes pointer from integer without a cast 
[-Wint-conversion]
 3188 |     result = PyEval_CallObject(pyCtxt->error, list);
      |            ^
../../../python/libxml.c: In function 
'libxml_xmlRelaxNGValidityGenericWarningFuncHandler':
../../../python/libxml.c:3215:12: error: assignment to 'PyObject *' {aka 
'struct _object *'} from 'int' makes pointer from integer without a cast 
[-Wint-conversion]
 3215 |     result = PyEval_CallObject(pyCtxt->warn, list);
      |            ^
../../../python/libxml.c: In function 
'libxml_xmlSchemaValidityGenericErrorFuncHandler':
../../../python/libxml.c:3352:16: error: assignment to 'PyObject *' {aka 
'struct _object *'} from 'int' makes pointer from integer without a cast 
[-Wint-conversion]
 3352 |         result = PyEval_CallObject(pyCtxt->error, list);
      |                ^
../../../python/libxml.c: In function 
'libxml_xmlSchemaValidityGenericWarningFuncHandler':
../../../python/libxml.c:3379:16: error: assignment to 'PyObject *' {aka 
'struct _object *'} from 'int' makes pointer from integer without a cast 
[-Wint-conversion]
 3379 |         result = PyEval_CallObject(pyCtxt->warn, list);
      |                ^
make[5]: *** [Makefile:642: libxml.lo] Error 1
make[5]: *** Waiting for unfinished jobs....
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../python -I.. -I../include 
-I../../../include -I-I/usr/include/python3.13 -I/usr/include/python3.13 
-Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security 
-mbranch-protection=standard -Wall -O3 -c ../../../python/types.c -o types.o 
>/dev/null 2>&1
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../python -I.. -I../include 
-I../../../include -I-I/usr/include/python3.13 -I/usr/include/python3.13 
-Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security 
-mbranch-protection=standard -Wall -O3 -c ../../../python/libxml2-py.c -o 
libxml2-py.o >/dev/null 2>&1
make[5]: Leaving directory '/<<PKGBUILDDIR>>/builddir/main/python3.13'
make[4]: *** [Makefile:699: all-recursive] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/builddir/main/python3.13'
make[3]: *** [Makefile:533: all] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/builddir/main/python3.13'
dh_auto_build: error: cd builddir/main/python3.13 && make -j4 
libxml2mod_la_LIBADD=\$\(mylibs\) "PYTHON_INCLUDES=-I/usr/include/python3.13 
-I/usr/include/python3.13" 
"PYTHON_LIBS=-L/usr/lib/python3.13/config-3.13-aarch64-linux-gnu 
-L/usr/lib/aarch64-linux-gnu  -ldl  -lm " returned exit code 2
make[2]: *** [debian/rules:37: dobuild-python3.13] Error 25
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [debian/rules:92: build-arch] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:92: binary-arch] Error 2
dpkg-buildpackage: error: debian/rules binary-arch subprocess returned exit 
status 2
--------------------------------------------------------------------------------
Build finished at 2024-10-04T22:52:18Z


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

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