#1145592 pivy: FTBFS: pivy/coin_wrap.cpp:5628:15: error: 'PyInt_AsLong' was not declared in this scope; did you mean 'PyLong_AsLong'?

Package:
src:pivy
Source:
src:pivy
Submitter:
Santiago Vila
Date:
2026-08-25 20:37:03 UTC
Severity:
normal
Tags:
#1145592#5
Date:
2026-08-25 20:34:29 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:pivy, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
Deprecated command line option: -py3. Ignored, this option is no longer supported.
Deprecated command line option: -modern. Ignored, this option is now always on.
Deprecated command line option: -py3. Ignored, this option is no longer supported.
Deprecated command line option: -modern. Ignored, this option is now always on.
pivy/coin_wrap.cpp: In function ‘void convert_SbVec2s_array(PyObject*, short int*)’:
pivy/coin_wrap.cpp:5628:15: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
 5628 |     temp[0] = PyInt_AsLong(PySequence_GetItem(input, 0));
      |               ^~~~~~~~~~~~
      |               PyLong_AsLong
pivy/coin_wrap.cpp: In function ‘SoCallbackAction::Response SoCallbackActionPythonCB(void*, SoCallbackAction*, const SoNode*)’:
pivy/coin_wrap.cpp:5818:15: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
 5818 |     iresult = PyInt_AsLong(result);
      |               ^~~~~~~~~~~~
      |               PyLong_AsLong
pivy/coin_wrap.cpp: In function ‘void convert_SbVec3s_array(PyObject*, short int*)’:
pivy/coin_wrap.cpp:6085:15: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
 6085 |     temp[0] = PyInt_AsLong(PySequence_GetItem(input, 0));
      |               ^~~~~~~~~~~~
      |               PyLong_AsLong
pivy/coin_wrap.cpp: In function ‘SoGLRenderAction::AbortCode SoGLRenderAbortPythonCB(void*)’:
pivy/coin_wrap.cpp:6199:38: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
 6199 |   res = (SoGLRenderAction::AbortCode)PyInt_AsLong(result);
      |                                      ^~~~~~~~~~~~
      |                                      PyLong_AsLong
pivy/coin_wrap.cpp: In function ‘SoCallbackAction::Response SoIntersectionVisitationPythonCB(void*, const SoPath*)’:
pivy/coin_wrap.cpp:6381:15: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
 6381 |     iresult = PyInt_AsLong(result);
      |               ^~~~~~~~~~~~
      |               PyLong_AsLong
pivy/coin_wrap.cpp: In function ‘SbBool SoIntersectionFilterPythonCB(void*, const SoPath*, const SoPath*)’:
pivy/coin_wrap.cpp:6412:15: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
 6412 |     iresult = PyInt_AsLong(result);
      |               ^~~~~~~~~~~~
      |               PyLong_AsLong
pivy/coin_wrap.cpp: In function ‘SoIntersectionDetectionAction::Resp SoIntersectionPythonCB(void*, const SoIntersectingPrimitive*, const SoIntersectingPrimitive*)’:
pivy/coin_wrap.cpp:6444:15: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
 6444 |     iresult = PyInt_AsLong(result);
      |               ^~~~~~~~~~~~
      |               PyLong_AsLong
pivy/coin_wrap.cpp: In function ‘void convert_SoMFBool_array(PyObject*, int, SbBool*)’:
pivy/coin_wrap.cpp:6705:26: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
 6705 |       temp[i] = (SbBool) PyInt_AsLong(oi);
      |                          ^~~~~~~~~~~~
      |                          PyLong_AsLong
pivy/coin_wrap.cpp: In function ‘void convert_SoMFEnum_array(PyObject*, int, int*)’:
pivy/coin_wrap.cpp:6733:23: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
 6733 |       temp[i] = (int) PyInt_AsLong(oi);
      |                       ^~~~~~~~~~~~
      |                       PyLong_AsLong
pivy/coin_wrap.cpp: In function ‘void convert_SoMFInt32_array(PyObject*, int, int32_t*)’:
pivy/coin_wrap.cpp:7053:27: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
 7053 |       temp[i] = (int32_t) PyInt_AsLong(oi);
      |                           ^~~~~~~~~~~~
      |                           PyLong_AsLong
pivy/coin_wrap.cpp: In function ‘void convert_SoMFShort_array(PyObject*, int, short int*)’:
pivy/coin_wrap.cpp:7105:25: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
 7105 |       temp[i] = (short) PyInt_AsLong(oi);
      |                         ^~~~~~~~~~~~
      |                         PyLong_AsLong
pivy/coin_wrap.cpp: In function ‘void convert_SoMFUInt32_array(PyObject*, int, uint32_t*)’:
pivy/coin_wrap.cpp:7141:28: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
 7141 |       temp[i] = (uint32_t) PyInt_AsLong(oi);
      |                            ^~~~~~~~~~~~
      |                            PyLong_AsLong
pivy/coin_wrap.cpp: In function ‘void convert_SoMFUShort_array(PyObject*, int, short unsigned int*)’:
pivy/coin_wrap.cpp:7169:25: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
 7169 |       temp[i] = (short) PyInt_AsLong(oi);
      |                         ^~~~~~~~~~~~
      |                         PyLong_AsLong
pivy/coin_wrap.cpp: In function ‘PyObject* _wrap_SoMFBool_getValues__SWIG_0(PyObject*, Py_ssize_t, PyObject**)’:
pivy/coin_wrap.cpp:171187:38: error: ‘PyInt_FromLong’ was not declared in this scope; did you mean ‘PyLong_FromLong’?
171187 |         PyList_SetItem(resultobj, i, PyInt_FromLong((long)result[i]));
       |                                      ^~~~~~~~~~~~~~
       |                                      PyLong_FromLong
pivy/coin_wrap.cpp: In function ‘PyObject* _wrap_SoMFBool_getValues__SWIG_1(PyObject*, Py_ssize_t, PyObject**)’:
pivy/coin_wrap.cpp:171224:38: error: ‘PyInt_FromLong’ was not declared in this scope; did you mean ‘PyLong_FromLong’?
171224 |         PyList_SetItem(resultobj, i, PyInt_FromLong((long)result[i]));
       |                                      ^~~~~~~~~~~~~~
       |                                      PyLong_FromLong
pivy/coin_wrap.cpp: In function ‘PyObject* _wrap_SoMFEnum_getValues__SWIG_0(PyObject*, Py_ssize_t, PyObject**)’:
pivy/coin_wrap.cpp:172322:38: error: ‘PyInt_FromLong’ was not declared in this scope; did you mean ‘PyLong_FromLong’?
172322 |         PyList_SetItem(resultobj, i, PyInt_FromLong((long)result[i]));
       |                                      ^~~~~~~~~~~~~~
       |                                      PyLong_FromLong
pivy/coin_wrap.cpp: In function ‘PyObject* _wrap_SoMFEnum_getValues__SWIG_1(PyObject*, Py_ssize_t, PyObject**)’:
pivy/coin_wrap.cpp:172359:38: error: ‘PyInt_FromLong’ was not declared in this scope; did you mean ‘PyLong_FromLong’?
172359 |         PyList_SetItem(resultobj, i, PyInt_FromLong((long)result[i]));
       |                                      ^~~~~~~~~~~~~~
       |                                      PyLong_FromLong
pivy/coin_wrap.cpp: In function ‘PyObject* _wrap_SoMFInt32_getValues__SWIG_0(PyObject*, Py_ssize_t, PyObject**)’:
pivy/coin_wrap.cpp:247382:38: error: ‘PyInt_FromLong’ was not declared in this scope; did you mean ‘PyLong_FromLong’?
247382 |         PyList_SetItem(resultobj, i, PyInt_FromLong((long)result[i]));
       |                                      ^~~~~~~~~~~~~~
       |                                      PyLong_FromLong
pivy/coin_wrap.cpp: In function ‘PyObject* _wrap_SoMFInt32_getValues__SWIG_1(PyObject*, Py_ssize_t, PyObject**)’:
pivy/coin_wrap.cpp:247419:38: error: ‘PyInt_FromLong’ was not declared in this scope; did you mean ‘PyLong_FromLong’?
247419 |         PyList_SetItem(resultobj, i, PyInt_FromLong((long)result[i]));
       |                                      ^~~~~~~~~~~~~~
       |                                      PyLong_FromLong
pivy/coin_wrap.cpp: In function ‘PyObject* _wrap_SoMFShort_getValues__SWIG_0(PyObject*, Py_ssize_t, PyObject**)’:
pivy/coin_wrap.cpp:251709:38: error: ‘PyInt_FromLong’ was not declared in this scope; did you mean ‘PyLong_FromLong’?
251709 |         PyList_SetItem(resultobj, i, PyInt_FromLong((long)result[i]));
       |                                      ^~~~~~~~~~~~~~
       |                                      PyLong_FromLong
pivy/coin_wrap.cpp: In function ‘PyObject* _wrap_SoMFShort_getValues__SWIG_1(PyObject*, Py_ssize_t, PyObject**)’:
pivy/coin_wrap.cpp:251746:38: error: ‘PyInt_FromLong’ was not declared in this scope; did you mean ‘PyLong_FromLong’?
251746 |         PyList_SetItem(resultobj, i, PyInt_FromLong((long)result[i]));
       |                                      ^~~~~~~~~~~~~~
       |                                      PyLong_FromLong
pivy/coin_wrap.cpp: In function ‘PyObject* _wrap_SoMFUInt32_getValues__SWIG_0(PyObject*, Py_ssize_t, PyObject**)’:
pivy/coin_wrap.cpp:253613:38: error: ‘PyInt_FromLong’ was not declared in this scope; did you mean ‘PyLong_FromLong’?
253613 |         PyList_SetItem(resultobj, i, PyInt_FromLong((long)result[i]));
       |                                      ^~~~~~~~~~~~~~
       |                                      PyLong_FromLong
pivy/coin_wrap.cpp: In function ‘PyObject* _wrap_SoMFUInt32_getValues__SWIG_1(PyObject*, Py_ssize_t, PyObject**)’:
pivy/coin_wrap.cpp:253650:38: error: ‘PyInt_FromLong’ was not declared in this scope; did you mean ‘PyLong_FromLong’?
253650 |         PyList_SetItem(resultobj, i, PyInt_FromLong((long)result[i]));
       |                                      ^~~~~~~~~~~~~~
       |                                      PyLong_FromLong
pivy/coin_wrap.cpp: In function ‘PyObject* _wrap_SoMFUShort_getValues__SWIG_0(PyObject*, Py_ssize_t, PyObject**)’:
pivy/coin_wrap.cpp:254575:38: error: ‘PyInt_FromLong’ was not declared in this scope; did you mean ‘PyLong_FromLong’?
254575 |         PyList_SetItem(resultobj, i, PyInt_FromLong((long)result[i]));
       |                                      ^~~~~~~~~~~~~~
       |                                      PyLong_FromLong
pivy/coin_wrap.cpp: In function ‘PyObject* _wrap_SoMFUShort_getValues__SWIG_1(PyObject*, Py_ssize_t, PyObject**)’:
pivy/coin_wrap.cpp:254612:38: error: ‘PyInt_FromLong’ was not declared in this scope; did you mean ‘PyLong_FromLong’?
254612 |         PyList_SetItem(resultobj, i, PyInt_FromLong((long)result[i]));
       |                                      ^~~~~~~~~~~~~~
       |                                      PyLong_FromLong
pivy/coin_wrap.cpp: In function ‘PyObject* _wrap_new_SbImage__SWIG_1(PyObject*, Py_ssize_t, PyObject**)’:
pivy/coin_wrap.cpp:353874:12: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
353874 |     arg3 = PyInt_AsLong(nc);
       |            ^~~~~~~~~~~~
       |            PyLong_AsLong
pivy/coin_wrap.cpp: In function ‘PyObject* _wrap_new_SbImage__SWIG_2(PyObject*, Py_ssize_t, PyObject**)’:
pivy/coin_wrap.cpp:353919:12: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
353919 |     arg3 = PyInt_AsLong(nc);
       |            ^~~~~~~~~~~~
       |            PyLong_AsLong
pivy/coin_wrap.cpp:353920:9: error: ‘PyString_Check’ was not declared in this scope; did you mean ‘PyMapping_Check’?
353920 |     if (PyString_Check(buf)) {
       |         ^~~~~~~~~~~~~~
       |         PyMapping_Check
pivy/coin_wrap.cpp: In function ‘PyObject* _wrap_SbImage_setValue__SWIG_0(PyObject*, Py_ssize_t, PyObject**)’:
pivy/coin_wrap.cpp:354095:12: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
354095 |     arg3 = PyInt_AsLong(nc);
       |            ^~~~~~~~~~~~
       |            PyLong_AsLong
pivy/coin_wrap.cpp: In function ‘PyObject* _wrap_SbImage_setValue__SWIG_1(PyObject*, Py_ssize_t, PyObject**)’:
pivy/coin_wrap.cpp:354147:12: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
354147 |     arg3 = PyInt_AsLong(nc);
       |            ^~~~~~~~~~~~
       |            PyLong_AsLong
pivy/coin_wrap.cpp: In function ‘PyObject* _wrap_SbImage_setValuePtr__SWIG_0(PyObject*, Py_ssize_t, PyObject**)’:
pivy/coin_wrap.cpp:354277:12: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
354277 |     arg3 = PyInt_AsLong(nc);
       |            ^~~~~~~~~~~~
       |            PyLong_AsLong
pivy/coin_wrap.cpp: In function ‘PyObject* _wrap_SbImage_setValuePtr__SWIG_1(PyObject*, Py_ssize_t, PyObject**)’:
pivy/coin_wrap.cpp:354329:12: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
354329 |     arg3 = PyInt_AsLong(nc);
       |            ^~~~~~~~~~~~
       |            PyLong_AsLong
pivy/coin_wrap.cpp: In function ‘int SWIG_mod_exec(PyObject*)’:
pivy/coin_wrap.cpp:456579:12: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
456579 |     return NULL;
       |            ^~~~