#1145145 cod-tools: FTBFS: pycodcif_wrap.c:3867:16: error: implicit declaration of function 'PyInt_Check'; did you mean 'PySet_Check'? [-Wimplicit-function-declaration]

#1145145#5
Date:
2026-08-23 10:05:21 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:cod-tools, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
creating build/temp.linux-x86_64-cpython-314/src/externals/cexceptions
x86_64-linux-gnu-gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -fPIC -D_YACC_ -DYYDEBUG=1 -DHAS_VSNPRINTF -Isrc/externals/cexceptions -Isrc/components/codcif -I/usr/include/python3.14 -c pycodcif.c -o build/temp.linux-x86_64-cpython-314/pycodcif.o
x86_64-linux-gnu-gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -fPIC -D_YACC_ -DYYDEBUG=1 -DHAS_VSNPRINTF -Isrc/externals/cexceptions -Isrc/components/codcif -I/usr/include/python3.14 -c pycodcif_wrap.c -o build/temp.linux-x86_64-cpython-314/pycodcif_wrap.o
pycodcif_wrap.c: In function ‘_wrap_value_dump’:
pycodcif_wrap.c:3867:16: error: implicit declaration of function ‘PyInt_Check’; did you mean ‘PySet_Check’? [-Wimplicit-function-declaration]
 3867 |     if(        PyInt_Check( swig_obj[0] ) || PyLong_Check( swig_obj[0] ) ) {
      |                ^~~~~~~~~~~
      |                PySet_Check
pycodcif_wrap.c: In function ‘_wrap_datablock_tag_index’:
pycodcif_wrap.c:4071:17: error: implicit declaration of function ‘PyInt_FromLong’; did you mean ‘PyLong_FromLong’? [-Wimplicit-function-declaration]
 4071 |     resultobj = PyInt_FromLong( result );
      |                 ^~~~~~~~~~~~~~
      |                 PyLong_FromLong
pycodcif_wrap.c:4071:15: error: assignment to ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
 4071 |     resultobj = PyInt_FromLong( result );
      |               ^
pycodcif_wrap.c: In function ‘_wrap_datablock_overwrite_cifvalue’:
pycodcif_wrap.c:4102:12: error: implicit declaration of function ‘PyInt_AsLong’; did you mean ‘PyLong_AsLong’? [-Wimplicit-function-declaration]
 4102 |     arg2 = PyInt_AsLong( swig_obj[1] );
      |            ^~~~~~~~~~~~
      |            PyLong_AsLong
pycodcif_wrap.c: In function ‘_wrap_datablock_value_length’:
pycodcif_wrap.c:4653:15: error: assignment to ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
 4653 |     resultobj = PyInt_FromLong( result );
      |               ^
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
make[2]: *** [Makelocal-setuptools:33: build/python3/pycodcif/pycodcif.py] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/src/components/pycodcif'
make[1]: *** [Makefile:83: src/components/pycodcif/build/python3/pycodcif/pycodcif.py] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j1 INSTALL="install --strip-program=true" returned exit code 2
make: *** [debian/rules:11: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1145145#10
Date:
2026-08-31 10:19:36 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
cod-tools, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1145145@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andrius Merkys <merkys@debian.org> (supplier of updated cod-tools package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Mon, 31 Aug 2026 06:00:14 -0400
Source: cod-tools
Architecture: source
Version: 3.12.0+dfsg-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Changed-By: Andrius Merkys <merkys@debian.org>
Closes: 1145145
Changes:
 cod-tools (3.12.0+dfsg-2) unstable; urgency=medium
 .
   * Backport upstream patch to fix FTBFS with SWIG 4.5.0 (Closes: #1145145)
Checksums-Sha1:
 06d4db0e4555c783698497ca9bbe66436541abb8 2853 cod-tools_3.12.0+dfsg-2.dsc
 9a413a17b36d111b038f979e230cccfaac27e076 15104 cod-tools_3.12.0+dfsg-2.debian.tar.xz
 98b0cbd2ebbd2916fcbb05d03ed73095977b6376 8758 cod-tools_3.12.0+dfsg-2_source.buildinfo
Checksums-Sha256:
 dca7134c7da1da7e3df309b5a4b3b0b7ecbca60635faca68e910259ca7779b08 2853 cod-tools_3.12.0+dfsg-2.dsc
 880ca5b05e72edb8e855b5613e39bb0829fed540e01b42d1c24cbf82b1969907 15104 cod-tools_3.12.0+dfsg-2.debian.tar.xz
 9eb6792709de895d151e505a798b2ee25c8fd58bc51130e72ed007b5d60da76e 8758 cod-tools_3.12.0+dfsg-2_source.buildinfo
Files:
 7cf60136af67fa03b4337b04306c7369 2853 science optional cod-tools_3.12.0+dfsg-2.dsc
 916b61bc787f717296e22983eebc0111 15104 science optional cod-tools_3.12.0+dfsg-2.debian.tar.xz
 42f1dfee71b6a5143e4ad6580248b324 8758 science optional cod-tools_3.12.0+dfsg-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQQ9mT++eHAQdiuDyvHYokBlilUePQUCapVSRAAKCRDYokBlilUe
PSB0AQCqALZWWRVTDDPUy7HaSObYU8NTnTmBww2pda72bZHoewD/a6Qlh5Atj5jQ
SGLjIEuhD6jubtm+t0HS67PFbpCgvw4=
=XExL
-----END PGP SIGNATURE-----