#1145451 libcec: FTBFS: /<<PKGBUILDDIR>>/src/libcec/SwigHelper.h:135:15: error: 'PyInt_Check' was not declared in this scope; did you mean 'PySet_Check'?

#1145451#5
Date:
2026-08-25 10:15:22 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:libcec, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
[ 95%] Building CXX object src/libcec/CMakeFiles/pycec.dir/CMakeFiles/pycec.dir/libcecPYTHON_wrap.cxx.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/libcec && /usr/bin/x86_64-linux-gnu-g++ -Dpycec_EXPORTS -I/usr/include/p8-platform -I/<<PKGBUILDDIR>>/src/libcec -I/<<PKGBUILDDIR>>/src/libcec/../../include -I/usr/include/python3.14 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -Wall -Wextra -Wno-missing-field-initializers -Wno-deprecated-copy -O3 -DNDEBUG -fPIC -Wno-unused-parameter -MD -MT src/libcec/CMakeFiles/pycec.dir/CMakeFiles/pycec.dir/libcecPYTHON_wrap.cxx.o -MF CMakeFiles/pycec.dir/CMakeFiles/pycec.dir/libcecPYTHON_wrap.cxx.o.d -o CMakeFiles/pycec.dir/CMakeFiles/pycec.dir/libcecPYTHON_wrap.cxx.o -c /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/libcec/CMakeFiles/pycec.dir/libcecPYTHON_wrap.cxx
In file included from /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/libcec/CMakeFiles/pycec.dir/libcecPYTHON_wrap.cxx:3434:
/<<PKGBUILDDIR>>/src/libcec/SwigHelper.h: In member function ‘int CEC::CCecPythonCallbacks::CallPythonCallback(CEC::libcecSwigCallback, PyObject*)’:
/<<PKGBUILDDIR>>/src/libcec/SwigHelper.h:135:15: error: ‘PyInt_Check’ was not declared in this scope; did you mean ‘PySet_Check’?
  135 |           if (PyInt_Check(result))
      |               ^~~~~~~~~~~
      |               PySet_Check
/<<PKGBUILDDIR>>/src/libcec/SwigHelper.h:136:27: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
  136 |             retval = (int)PyInt_AsLong(result);
      |                           ^~~~~~~~~~~~
      |                           PyLong_AsLong
make[3]: *** [src/libcec/CMakeFiles/pycec.dir/build.make:82: src/libcec/CMakeFiles/pycec.dir/CMakeFiles/pycec.dir/libcecPYTHON_wrap.cxx.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:254: src/libcec/CMakeFiles/pycec.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
[ 97%] Linking CXX executable cec-client
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/cec-client && /usr/bin/cmake -E cmake_link_script CMakeFiles/cec-client.dir/link.txt --verbose=1
/usr/bin/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 -std=c++11 -O3 -DNDEBUG -Wl,-z,relro -Wl,-z,now -Wl,--dependency-file=CMakeFiles/cec-client.dir/link.d "CMakeFiles/cec-client.dir/cec-client.cpp.o" "CMakeFiles/cec-client.dir/curses/CursesControl.cpp.o" -o cec-client-7.1.1  -L/usr//usr/lib/x86_64-linux-gnu -lp8-platform -ldl -lcurses -ltinfo -lrt
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/cec-client && /usr/bin/cmake -E cmake_symlink_executable cec-client-7.1.1 cec-client
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 97%] Built target cec-client
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:139: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j2 INSTALL="install --strip-program=true" VERBOSE=1 returned exit code 2
make: *** [debian/rules:9: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------