#1145926 pyfltk: FTBFS: ./fltk/fltk_wrap.cpp:5087:19: error: 'PyInt_Check' was not declared in this scope; did you mean 'PySet_Check'?

Package:
src:pyfltk
Source:
src:pyfltk
Submitter:
Santiago Vila
Date:
2026-08-27 19:49:05 UTC
Severity:
normal
Tags:
#1145926#5
Date:
2026-08-27 19:46:33 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202608/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:pyfltk, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
creating build/temp.linux-x86_64-cpython-314/contrib
creating build/temp.linux-x86_64-cpython-314/fltk
x86_64-linux-gnu-g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DUNIX=1 -DFL_INTERNALS=1 -I/usr/include/pixman-1 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/cairo -I./src -I./contrib -I/usr/include -I./plug-in/include -I./plug-in/src -I/usr/include/python3.14 -c ./contrib/ListSelect.cpp -o build/temp.linux-x86_64-cpython-314/contrib/ListSelect.o -Wno-unused-label -Wno-unused-but-set-variable -Wformat=1 -Werror=format-security -DDO_NOT_USE_THREADS
x86_64-linux-gnu-g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DUNIX=1 -DFL_INTERNALS=1 -I/usr/include/pixman-1 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/cairo -I./src -I./contrib -I/usr/include -I./plug-in/include -I./plug-in/src -I/usr/include/python3.14 -c ./fltk/fltk_wrap.cpp -o build/temp.linux-x86_64-cpython-314/fltk/fltk_wrap.o -Wno-unused-label -Wno-unused-but-set-variable -Wformat=1 -Werror=format-security -DDO_NOT_USE_THREADS
./fltk/fltk_wrap.cpp: In function ‘void Fl_Browser_column_widths__SWIG_1(Fl_Browser*, PyObject*)’:
./fltk/fltk_wrap.cpp:5087:19: error: ‘PyInt_Check’ was not declared in this scope; did you mean ‘PySet_Check’?
 5087 |              if (!PyInt_Check(obj))
      |                   ^~~~~~~~~~~
      |                   PySet_Check
./fltk/fltk_wrap.cpp:5094:22: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
 5094 |              cw[k] = PyInt_AsLong(obj);
      |                      ^~~~~~~~~~~~
      |                      PyLong_AsLong
./fltk/fltk_wrap.cpp: In function ‘int Fl_File_Browser_load_new(Fl_File_Browser*, PyObject*, PyObject*)’:
./fltk/fltk_wrap.cpp:5132:14: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
 5132 |     int sort=PyInt_AsLong(sObj);
      |              ^~~~~~~~~~~~
      |              PyLong_AsLong
./fltk/fltk_wrap.cpp: In function ‘int Fl_Menu__add__SWIG_2(Fl_Menu_*, PyObject*, PyObject*, PyObject*, PyObject*, PyObject*)’:
./fltk/fltk_wrap.cpp:6226:30: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
 6226 |                 int shortcut=PyInt_AsLong(sObj);
      |                              ^~~~~~~~~~~~
      |                              PyLong_AsLong
./fltk/fltk_wrap.cpp: In function ‘void Fl_Window_show(Fl_Window*, PyObject*, PyObject*)’:
./fltk/fltk_wrap.cpp:6404:18: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
 6404 |       int size = PyInt_AsLong(count);
      |                  ^~~~~~~~~~~~
      |                  PyLong_AsLong
./fltk/fltk_wrap.cpp: In function ‘void Fl_Double_Window_show(Fl_Double_Window*, PyObject*, PyObject*)’:
./fltk/fltk_wrap.cpp:6474:18: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
 6474 |       int size = PyInt_AsLong(count);
      |                  ^~~~~~~~~~~~
      |                  PyLong_AsLong
./fltk/fltk_wrap.cpp: In function ‘void Fl_Gl_Window_show(Fl_Gl_Window*, PyObject*, PyObject*)’:
./fltk/fltk_wrap.cpp:6679:18: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
 6679 |       int size = PyInt_AsLong(count);
      |                  ^~~~~~~~~~~~
      |                  PyLong_AsLong
./fltk/fltk_wrap.cpp: In function ‘const char* PythonLink(Fl_Widget*, const char*)’:
./fltk/fltk_wrap.cpp:6784:16: error: ‘PyString_AsString’ was not declared in this scope
 6784 |         return PyString_AsString(result); /*void*/;
      |                ^~~~~~~~~~~~~~~~~
./fltk/fltk_wrap.cpp: In function ‘void Fl_Single_Window_show(Fl_Single_Window*, PyObject*, PyObject*)’:
./fltk/fltk_wrap.cpp:6978:18: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
 6978 |       int size = PyInt_AsLong(count);
      |                  ^~~~~~~~~~~~
      |                  PyLong_AsLong
./fltk/fltk_wrap.cpp: In function ‘void Fl_Overlay_Window_show(Fl_Overlay_Window*, PyObject*, PyObject*)’:
./fltk/fltk_wrap.cpp:7105:18: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
 7105 |       int size = PyInt_AsLong(count);
      |                  ^~~~~~~~~~~~
      |                  PyLong_AsLong
./fltk/fltk_wrap.cpp: In function ‘PyObject* _wrap_new_Fl_RGB_Image__SWIG_0(PyObject*, Py_ssize_t, PyObject**)’:
./fltk/fltk_wrap.cpp:61788:15: error: ‘PyInt_Check’ was not declared in this scope; did you mean ‘PySet_Check’?
61788 |           if (PyInt_Check(o))
      |               ^~~~~~~~~~~
      |               PySet_Check
./fltk/fltk_wrap.cpp:61789:28: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
61789 |           arg2[i] = (uchar)PyInt_AsLong(o);
      |                            ^~~~~~~~~~~~
      |                            PyLong_AsLong
./fltk/fltk_wrap.cpp: In function ‘PyObject* _wrap_new_Fl_RGB_Image__SWIG_1(PyObject*, Py_ssize_t, PyObject**)’:
./fltk/fltk_wrap.cpp:61893:15: error: ‘PyInt_Check’ was not declared in this scope; did you mean ‘PySet_Check’?
61893 |           if (PyInt_Check(o))
      |               ^~~~~~~~~~~
      |               PySet_Check
./fltk/fltk_wrap.cpp:61894:28: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
61894 |           arg2[i] = (uchar)PyInt_AsLong(o);
      |                            ^~~~~~~~~~~~
      |                            PyLong_AsLong
./fltk/fltk_wrap.cpp: In function ‘PyObject* _wrap_new_Fl_Bitmap__SWIG_0(PyObject*, Py_ssize_t, PyObject**)’:
./fltk/fltk_wrap.cpp:93535:15: error: ‘PyInt_Check’ was not declared in this scope; did you mean ‘PySet_Check’?
93535 |           if (PyInt_Check(o))
      |               ^~~~~~~~~~~
      |               PySet_Check
./fltk/fltk_wrap.cpp:93536:27: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
93536 |           arg2[i] = (char)PyInt_AsLong(o);
      |                           ^~~~~~~~~~~~
      |                           PyLong_AsLong
./fltk/fltk_wrap.cpp: In function ‘PyObject* _wrap_new_Fl_Bitmap__SWIG_1(PyObject*, Py_ssize_t, PyObject**)’:
./fltk/fltk_wrap.cpp:93620:15: error: ‘PyInt_Check’ was not declared in this scope; did you mean ‘PySet_Check’?
93620 |           if (PyInt_Check(o))
      |               ^~~~~~~~~~~
      |               PySet_Check
./fltk/fltk_wrap.cpp:93621:27: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
93621 |           arg2[i] = (char)PyInt_AsLong(o);
      |                           ^~~~~~~~~~~~
      |                           PyLong_AsLong
./fltk/fltk_wrap.cpp: In function ‘PyObject* _wrap_Fl_Button_value__SWIG_1(PyObject*, Py_ssize_t, PyObject**)’:
./fltk/fltk_wrap.cpp:95249:17: error: ‘PyInt_FromLong’ was not declared in this scope; did you mean ‘PyLong_FromLong’?
95249 |     resultobj = PyInt_FromLong( (long)result);
      |                 ^~~~~~~~~~~~~~
      |                 PyLong_FromLong
./fltk/fltk_wrap.cpp: In function ‘PyObject* _wrap_fl_draw_image(PyObject*, PyObject*)’:
./fltk/fltk_wrap.cpp:119596:15: error: ‘PyInt_Check’ was not declared in this scope; did you mean ‘PySet_Check’?
119596 |           if (PyInt_Check(o))
       |               ^~~~~~~~~~~
       |               PySet_Check
./fltk/fltk_wrap.cpp:119597:27: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
119597 |           arg1[i] = (char)PyInt_AsLong(o);
       |                           ^~~~~~~~~~~~
       |                           PyLong_AsLong
./fltk/fltk_wrap.cpp: In function ‘PyObject* _wrap_fl_draw_image_mono(PyObject*, PyObject*)’:
./fltk/fltk_wrap.cpp:119707:15: error: ‘PyInt_Check’ was not declared in this scope; did you mean ‘PySet_Check’?
119707 |           if (PyInt_Check(o))
       |               ^~~~~~~~~~~
       |               PySet_Check
./fltk/fltk_wrap.cpp:119708:27: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
119708 |           arg1[i] = (char)PyInt_AsLong(o);
       |                           ^~~~~~~~~~~~
       |                           PyLong_AsLong
./fltk/fltk_wrap.cpp: In function ‘PyObject* _wrap_Fl_FormsBitmap_set(PyObject*, PyObject*)’:
./fltk/fltk_wrap.cpp:127274:15: error: ‘PyInt_Check’ was not declared in this scope; did you mean ‘PySet_Check’?
127274 |           if (PyInt_Check(o))
       |               ^~~~~~~~~~~
       |               PySet_Check
./fltk/fltk_wrap.cpp:127275:27: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
127275 |           arg4[i] = (char)PyInt_AsLong(o);
       |                           ^~~~~~~~~~~~
       |                           PyLong_AsLong
./fltk/fltk_wrap.cpp: In function ‘PyObject* _wrap_Fl_Grid_col_width__SWIG_1(PyObject*, Py_ssize_t, PyObject**)’:
./fltk/fltk_wrap.cpp:130299:12: error: ‘PyInt_Check’ was not declared in this scope; did you mean ‘PySet_Check’?
130299 |       if (!PyInt_Check(s)) {
       |            ^~~~~~~~~~~
       |            PySet_Check
./fltk/fltk_wrap.cpp:130304:17: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
130304 |       arg2[i] = PyInt_AsLong(s);
       |                 ^~~~~~~~~~~~
       |                 PyLong_AsLong
./fltk/fltk_wrap.cpp: In function ‘PyObject* _wrap_Fl_Grid_col_weight__SWIG_1(PyObject*, Py_ssize_t, PyObject**)’:
./fltk/fltk_wrap.cpp:130475:12: error: ‘PyInt_Check’ was not declared in this scope; did you mean ‘PySet_Check’?
130475 |       if (!PyInt_Check(s)) {
       |            ^~~~~~~~~~~
       |            PySet_Check
./fltk/fltk_wrap.cpp:130480:17: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
130480 |       arg2[i] = PyInt_AsLong(s);
       |                 ^~~~~~~~~~~~
       |                 PyLong_AsLong
./fltk/fltk_wrap.cpp: In function ‘PyObject* _wrap_Fl_Grid_col_gap__SWIG_1(PyObject*, Py_ssize_t, PyObject**)’:
./fltk/fltk_wrap.cpp:130651:12: error: ‘PyInt_Check’ was not declared in this scope; did you mean ‘PySet_Check’?
130651 |       if (!PyInt_Check(s)) {
       |            ^~~~~~~~~~~
       |            PySet_Check
./fltk/fltk_wrap.cpp:130656:17: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
130656 |       arg2[i] = PyInt_AsLong(s);
       |                 ^~~~~~~~~~~~
       |                 PyLong_AsLong
./fltk/fltk_wrap.cpp: In function ‘PyObject* _wrap_Fl_Grid_row_height__SWIG_1(PyObject*, Py_ssize_t, PyObject**)’:
./fltk/fltk_wrap.cpp:130827:12: error: ‘PyInt_Check’ was not declared in this scope; did you mean ‘PySet_Check’?
130827 |       if (!PyInt_Check(s)) {
       |            ^~~~~~~~~~~
       |            PySet_Check
./fltk/fltk_wrap.cpp:130832:17: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
130832 |       arg2[i] = PyInt_AsLong(s);
       |                 ^~~~~~~~~~~~
       |                 PyLong_AsLong
./fltk/fltk_wrap.cpp: In function ‘PyObject* _wrap_Fl_Grid_row_weight__SWIG_1(PyObject*, Py_ssize_t, PyObject**)’:
./fltk/fltk_wrap.cpp:131003:12: error: ‘PyInt_Check’ was not declared in this scope; did you mean ‘PySet_Check’?
131003 |       if (!PyInt_Check(s)) {
       |            ^~~~~~~~~~~
       |            PySet_Check
./fltk/fltk_wrap.cpp:131008:17: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
131008 |       arg2[i] = PyInt_AsLong(s);
       |                 ^~~~~~~~~~~~
       |                 PyLong_AsLong
./fltk/fltk_wrap.cpp: In function ‘PyObject* _wrap_Fl_Grid_row_gap__SWIG_1(PyObject*, Py_ssize_t, PyObject**)’:
./fltk/fltk_wrap.cpp:131179:12: error: ‘PyInt_Check’ was not declared in this scope; did you mean ‘PySet_Check’?
131179 |       if (!PyInt_Check(s)) {
       |            ^~~~~~~~~~~
       |            PySet_Check
./fltk/fltk_wrap.cpp:131184:17: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
131184 |       arg2[i] = PyInt_AsLong(s);
       |                 ^~~~~~~~~~~~
       |                 PyLong_AsLong
./fltk/fltk_wrap.cpp: In function ‘PyObject* _wrap_Fl_Gl_Window_valid__SWIG_0(PyObject*, Py_ssize_t, PyObject**)’:
./fltk/fltk_wrap.cpp:135141:17: error: ‘PyInt_FromLong’ was not declared in this scope; did you mean ‘PyLong_FromLong’?
135141 |     resultobj = PyInt_FromLong( (long)result);
       |                 ^~~~~~~~~~~~~~
       |                 PyLong_FromLong
./fltk/fltk_wrap.cpp: In function ‘PyObject* _wrap_Fl_Gl_Window_context_valid__SWIG_0(PyObject*, Py_ssize_t, PyObject**)’:
./fltk/fltk_wrap.cpp:135266:17: error: ‘PyInt_FromLong’ was not declared in this scope; did you mean ‘PyLong_FromLong’?
135266 |     resultobj = PyInt_FromLong( (long)result);
       |                 ^~~~~~~~~~~~~~
       |                 PyLong_FromLong
./fltk/fltk_wrap.cpp: In function ‘PyObject* _wrap_gl_draw_image(PyObject*, PyObject*)’:
./fltk/fltk_wrap.cpp:137725:15: error: ‘PyInt_Check’ was not declared in this scope; did you mean ‘PySet_Check’?
137725 |           if (PyInt_Check(o))
       |               ^~~~~~~~~~~
       |               PySet_Check
./fltk/fltk_wrap.cpp:137726:27: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
137726 |           arg1[i] = (char)PyInt_AsLong(o);
       |                           ^~~~~~~~~~~~
       |                           PyLong_AsLong
./fltk/fltk_wrap.cpp: In function ‘PyObject* _wrap_new_Fl_JPEG_Image__SWIG_1(PyObject*, Py_ssize_t, PyObject**)’:
./fltk/fltk_wrap.cpp:145828:15: error: ‘PyInt_Check’ was not declared in this scope; did you mean ‘PySet_Check’?
145828 |           if (PyInt_Check(o))
       |               ^~~~~~~~~~~
       |               PySet_Check
./fltk/fltk_wrap.cpp:145829:28: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
145829 |           arg3[i] = (uchar)PyInt_AsLong(o);
       |                            ^~~~~~~~~~~~
       |                            PyLong_AsLong
./fltk/fltk_wrap.cpp: In function ‘PyObject* _wrap_new_Fl_PNG_Image__SWIG_1(PyObject*, Py_ssize_t, PyObject**)’:
./fltk/fltk_wrap.cpp:156305:15: error: ‘PyInt_Check’ was not declared in this scope; did you mean ‘PySet_Check’?
156305 |           if (PyInt_Check(o))
       |               ^~~~~~~~~~~
       |               PySet_Check
./fltk/fltk_wrap.cpp:156306:28: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
156306 |           arg3[i] = (uchar)PyInt_AsLong(o);
       |                            ^~~~~~~~~~~~
       |                            PyLong_AsLong
./fltk/fltk_wrap.cpp: In function ‘PyObject* _wrap_Fl_Preferences_groupExists(PyObject*, PyObject*)’:
./fltk/fltk_wrap.cpp:158135:17: error: ‘PyInt_FromLong’ was not declared in this scope; did you mean ‘PyLong_FromLong’?
158135 |     resultobj = PyInt_FromLong( (long)result);
       |                 ^~~~~~~~~~~~~~
       |                 PyLong_FromLong
./fltk/fltk_wrap.cpp: In function ‘PyObject* _wrap_Fl_Preferences_deleteGroup(PyObject*, PyObject*)’:
./fltk/fltk_wrap.cpp:158182:17: error: ‘PyInt_FromLong’ was not declared in this scope; did you mean ‘PyLong_FromLong’?
158182 |     resultobj = PyInt_FromLong( (long)result);
       |                 ^~~~~~~~~~~~~~
       |                 PyLong_FromLong
./fltk/fltk_wrap.cpp: In function ‘PyObject* _wrap_Fl_Preferences_entryExists(PyObject*, PyObject*)’:
./fltk/fltk_wrap.cpp:158298:17: error: ‘PyInt_FromLong’ was not declared in this scope; did you mean ‘PyLong_FromLong’?
158298 |     resultobj = PyInt_FromLong( (long)result);
       |                 ^~~~~~~~~~~~~~
       |                 PyLong_FromLong
./fltk/fltk_wrap.cpp: In function ‘PyObject* _wrap_Fl_Preferences_deleteEntry(PyObject*, PyObject*)’:
./fltk/fltk_wrap.cpp:158345:17: error: ‘PyInt_FromLong’ was not declared in this scope; did you mean ‘PyLong_FromLong’?
158345 |     resultobj = PyInt_FromLong( (long)result);
       |                 ^~~~~~~~~~~~~~
       |                 PyLong_FromLong
./fltk/fltk_wrap.cpp: In function ‘PyObject* _wrap_Fl_Preferences_set__SWIG_0(PyObject*, Py_ssize_t, PyObject**)’:
./fltk/fltk_wrap.cpp:158399:17: error: ‘PyInt_FromLong’ was not declared in this scope; did you mean ‘PyLong_FromLong’?
158399 |     resultobj = PyInt_FromLong( (long)result);
       |                 ^~~~~~~~~~~~~~
       |                 PyLong_FromLong
./fltk/fltk_wrap.cpp: In function ‘PyObject* _wrap_Fl_Preferences_set__SWIG_1(PyObject*, Py_ssize_t, PyObject**)’:
./fltk/fltk_wrap.cpp:158461:17: error: ‘PyInt_FromLong’ was not declared in this scope; did you mean ‘PyLong_FromLong’?
158461 |     resultobj = PyInt_FromLong( (long)result);
       |                 ^~~~~~~~~~~~~~
       |                 PyLong_FromLong
./fltk/fltk_wrap.cpp: In function ‘PyObject* _wrap_Fl_Preferences_set__SWIG_2(PyObject*, Py_ssize_t, PyObject**)’:
./fltk/fltk_wrap.cpp:158515:17: error: ‘PyInt_FromLong’ was not declared in this scope; did you mean ‘PyLong_FromLong’?
158515 |     resultobj = PyInt_FromLong( (long)result);
       |                 ^~~~~~~~~~~~~~
       |                 PyLong_FromLong
./fltk/fltk_wrap.cpp: In function ‘PyObject* _wrap_Fl_Preferences_set__SWIG_3(PyObject*, Py_ssize_t, PyObject**)’:
./fltk/fltk_wrap.cpp:158577:17: error: ‘PyInt_FromLong’ was not declared in this scope; did you mean ‘PyLong_FromLong’?
158577 |     resultobj = PyInt_FromLong( (long)result);
       |                 ^~~~~~~~~~~~~~
       |                 PyLong_FromLong
./fltk/fltk_wrap.cpp: In function ‘PyObject* _wrap_Fl_Preferences_set__SWIG_4(PyObject*, Py_ssize_t, PyObject**)’:
./fltk/fltk_wrap.cpp:158632:17: error: ‘PyInt_FromLong’ was not declared in this scope; did you mean ‘PyLong_FromLong’?
158632 |     resultobj = PyInt_FromLong( (long)result);
       |                 ^~~~~~~~~~~~~~
       |                 PyLong_FromLong
./fltk/fltk_wrap.cpp: In function ‘PyObject* _wrap_Fl_Preferences_set__SWIG_5(PyObject*, Py_ssize_t, PyObject**)’:
./fltk/fltk_wrap.cpp:158698:17: error: ‘PyInt_FromLong’ was not declared in this scope; did you mean ‘PyLong_FromLong’?
158698 |     resultobj = PyInt_FromLong( (long)result);
       |                 ^~~~~~~~~~~~~~
       |                 PyLong_FromLong
./fltk/fltk_wrap.cpp: In function ‘PyObject* _wrap_Fl_Preferences_get__SWIG_0(PyObject*, Py_ssize_t, PyObject**)’:
./fltk/fltk_wrap.cpp:158843:17: error: ‘PyInt_FromLong’ was not declared in this scope; did you mean ‘PyLong_FromLong’?
158843 |     resultobj = PyInt_FromLong( (long)result);
       |                 ^~~~~~~~~~~~~~
       |                 PyLong_FromLong
./fltk/fltk_wrap.cpp: In function ‘PyObject* _wrap_Fl_Preferences_get__SWIG_1(PyObject*, Py_ssize_t, PyObject**)’:
./fltk/fltk_wrap.cpp:158907:17: error: ‘PyInt_FromLong’ was not declared in this scope; did you mean ‘PyLong_FromLong’?
158907 |     resultobj = PyInt_FromLong( (long)result);
       |                 ^~~~~~~~~~~~~~
       |                 PyLong_FromLong
./fltk/fltk_wrap.cpp: In function ‘PyObject* _wrap_Fl_Preferences_get__SWIG_2(PyObject*, Py_ssize_t, PyObject**)’:
./fltk/fltk_wrap.cpp:158971:17: error: ‘PyInt_FromLong’ was not declared in this scope; did you mean ‘PyLong_FromLong’?
158971 |     resultobj = PyInt_FromLong( (long)result);
       |                 ^~~~~~~~~~~~~~
       |                 PyLong_FromLong
./fltk/fltk_wrap.cpp: In function ‘PyObject* _wrap_Fl_Preferences_get__SWIG_3(PyObject*, Py_ssize_t, PyObject**)’:
./fltk/fltk_wrap.cpp:159043:17: error: ‘PyInt_FromLong’ was not declared in this scope; did you mean ‘PyLong_FromLong’?
159043 |     resultobj = PyInt_FromLong( (long)result);
       |                 ^~~~~~~~~~~~~~
       |                 PyLong_FromLong
./fltk/fltk_wrap.cpp: In function ‘PyObject* _wrap_Fl_Preferences_get__SWIG_4(PyObject*, Py_ssize_t, PyObject**)’:
./fltk/fltk_wrap.cpp:159125:17: error: ‘PyInt_FromLong’ was not declared in this scope; did you mean ‘PyLong_FromLong’?
159125 |     resultobj = PyInt_FromLong( (long)result);
       |                 ^~~~~~~~~~~~~~
       |                 PyLong_FromLong
./fltk/fltk_wrap.cpp: In function ‘PyObject* _wrap_Fl_Preferences_getUserdataPath(PyObject*, PyObject*)’:
./fltk/fltk_wrap.cpp:159282:17: error: ‘PyInt_FromLong’ was not declared in this scope; did you mean ‘PyLong_FromLong’?
159282 |     resultobj = PyInt_FromLong( (long)result);
       |                 ^~~~~~~~~~~~~~
       |                 PyLong_FromLong
./fltk/fltk_wrap.cpp: In function ‘PyObject* _wrap_Fl_Text_Display_highlight_data(PyObject*, PyObject*)’:
./fltk/fltk_wrap.cpp:189130:37: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
189130 |           arg3[i].color = (Fl_Color)PyInt_AsLong(PyList_GetItem(o,0));
       |                                     ^~~~~~~~~~~~
       |                                     PyLong_AsLong
./fltk/fltk_wrap.cpp: In function ‘PyObject* _wrap_Fl_Tree_Item_is_selected(PyObject*, PyObject*)’:
./fltk/fltk_wrap.cpp:204028:17: error: ‘PyInt_FromLong’ was not declared in this scope; did you mean ‘PyLong_FromLong’?
204028 |     resultobj = PyInt_FromLong( (long)result);
       |                 ^~~~~~~~~~~~~~
       |                 PyLong_FromLong
./fltk/fltk_wrap.cpp: In function ‘PyObject* _wrap_Fl_Tree_Item_is_activated(PyObject*, PyObject*)’:
./fltk/fltk_wrap.cpp:204130:17: error: ‘PyInt_FromLong’ was not declared in this scope; did you mean ‘PyLong_FromLong’?
204130 |     resultobj = PyInt_FromLong( (long)result);
       |                 ^~~~~~~~~~~~~~
       |                 PyLong_FromLong
./fltk/fltk_wrap.cpp: In function ‘PyObject* _wrap_Fl_Tree_Item_is_active(PyObject*, PyObject*)’:
./fltk/fltk_wrap.cpp:204163:17: error: ‘PyInt_FromLong’ was not declared in this scope; did you mean ‘PyLong_FromLong’?
204163 |     resultobj = PyInt_FromLong( (long)result);
       |                 ^~~~~~~~~~~~~~
       |                 PyLong_FromLong
error: command '/usr/bin/x86_64-linux-gnu-g++' failed with exit code 1
E: pybuild pybuild:485: build: plugin distutils failed with: exit code=1: /usr/bin/python3 setup.py build
dh_auto_build: error: pybuild --build -i python{version} -p 3.14 --parallel=2 returned exit code 13
make: *** [debian/rules:5: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------