Public bug reported: Package: src:unbound Version: 1.25.1-1ubuntu3 Affected: all architectures
During a rebuild of all packages in stonking (current devel), this package failed to build. Below is the most relevant part of the build log. If required, the full build log (example for the amd64v3 arch) is available here: https://launchpadlibrarian.net/879231442/buildlog_ubuntu-stonking- amd64v3.unbound_1.25.1-1ubuntu3_BUILDING.txt.gz --- libtool: compile: x86_64-linux-gnu-gcc -I. -Wdate-time -D_FORTIFY_SOURCE=3 -I../.. -I/usr/include/python3.14 -DSRCDIR=../.. -g -O2 -Werror=implicit-function-declaration -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -march=x86-64-v3 -fdebug-prefix-map=/<<PKGBUILDDIR>>=/usr/src/unbound-1.25.1-1ubuntu3 -ffile-prefix-map=../../= -pthread -c util/configparser.c -fPIC -DPIC -o .libs/configparser.o In file included from ../../pythonmod/pythonmod.c:145: ./pythonmod/interface.h: In function 'GetNameAsLabelList': ./pythonmod/interface.h:3372:43: error: implicit declaration of function 'PyString_FromString'; did you mean 'PyLong_FromString'? [-Wimplicit-function-declaration] 3372 | PyList_SetItem(list, cnt, PyString_FromString(buf)); | ^~~~~~~~~~~~~~~~~~~ | PyLong_FromString ./pythonmod/interface.h:3372:43: error: passing argument 3 of 'PyList_SetItem' makes pointer from integer without a cast [-Wint-conversion] 3372 | PyList_SetItem(list, cnt, PyString_FromString(buf)); | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | int --- The bug is described and fixed in the upstream project: > SWIG 4.5.0 removed Python 2 compatibility macros (PyInt_, PyString_, SWIG_Python_str_*) from its runtime header pyhead.swg (see commit Python: Remove Python 2 compatibility macros). These macros mapped old Python 2 C API names to their Python 3 equivalents. Packages that reference them in custom SWIG typemaps or pre-generated wrapper code now fail to compile. - Upstream bug report: https://github.com/NLnetLabs/unbound/issues/1489 - Upstream fixing commit: https://github.com/NLnetLabs/unbound/commit/93a56205cfa6b9a6d34db7245aa71e5ca67d1fd7 - Debian bug report: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1145860 - Debian fix: https://sources.debian.org/patches/unbound/1.26.1-1/replace-removed-Python-2-C-API-macros.patch/ - Fedora fix (see one of the patches, just for reference): https://src.fedoraproject.org/rpms/unbound/pull-request/40#request_diff Plan: cherry-pick the upstream fix as a quilt patch (merge proposal to follow). ** Affects: unbound (Ubuntu) Importance: Undecided Assignee: Dmitrii Kuvaiskii (dimakuv) Status: New ** Tags: ftbfs stonking ** Description changed: Package: src:unbound Version: 1.25.1-1ubuntu3 Affected: all architectures - FTBFS: /pythonmod/interface.h:3372:43: error: implicit declaration of - function 'PyString_FromString'; did you mean 'PyLong_FromString'? - - - During a rebuild of all packages in stonking (current devel), this package failed to build. + During a rebuild of all packages in stonking (current devel), this + package failed to build. Below is the most relevant part of the build log. If required, the full build log (example for the amd64v3 arch) is available here: https://launchpadlibrarian.net/879231442/buildlog_ubuntu-stonking- amd64v3.unbound_1.25.1-1ubuntu3_BUILDING.txt.gz --- libtool: compile: x86_64-linux-gnu-gcc -I. -Wdate-time -D_FORTIFY_SOURCE=3 -I../.. -I/usr/include/python3.14 -DSRCDIR=../.. -g -O2 -Werror=implicit-function-declaration -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -march=x86-64-v3 -fdebug-prefix-map=/<<PKGBUILDDIR>>=/usr/src/unbound-1.25.1-1ubuntu3 -ffile-prefix-map=../../= -pthread -c util/configparser.c -fPIC -DPIC -o .libs/configparser.o In file included from ../../pythonmod/pythonmod.c:145: ./pythonmod/interface.h: In function 'GetNameAsLabelList': ./pythonmod/interface.h:3372:43: error: implicit declaration of function 'PyString_FromString'; did you mean 'PyLong_FromString'? [-Wimplicit-function-declaration] - 3372 | PyList_SetItem(list, cnt, PyString_FromString(buf)); - | ^~~~~~~~~~~~~~~~~~~ - | PyLong_FromString + 3372 | PyList_SetItem(list, cnt, PyString_FromString(buf)); + | ^~~~~~~~~~~~~~~~~~~ + | PyLong_FromString ./pythonmod/interface.h:3372:43: error: passing argument 3 of 'PyList_SetItem' makes pointer from integer without a cast [-Wint-conversion] - 3372 | PyList_SetItem(list, cnt, PyString_FromString(buf)); - | ^~~~~~~~~~~~~~~~~~~~~~~~ - | | - | int + 3372 | PyList_SetItem(list, cnt, PyString_FromString(buf)); + | ^~~~~~~~~~~~~~~~~~~~~~~~ + | | + | int --- The bug is described and fixed in the upstream project: > SWIG 4.5.0 removed Python 2 compatibility macros (PyInt_, PyString_, SWIG_Python_str_*) from its runtime header pyhead.swg (see commit Python: Remove Python 2 compatibility macros). These macros mapped old Python 2 C API names to their Python 3 equivalents. Packages that reference them in custom SWIG typemaps or pre-generated wrapper code now fail to compile. - Upstream bug report: https://github.com/NLnetLabs/unbound/issues/1489 - Upstream fixing commit: https://github.com/NLnetLabs/unbound/commit/93a56205cfa6b9a6d34db7245aa71e5ca67d1fd7 - Debian bug report: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1145860 - Debian fix: https://sources.debian.org/patches/unbound/1.26.1-1/ - Fedora fix (see one of the patches, just for reference): https://src.fedoraproject.org/rpms/unbound/pull-request/40#request_diff Plan: cherry-pick the upstream fix as a quilt patch (merge proposal to follow). ** Description changed: Package: src:unbound Version: 1.25.1-1ubuntu3 Affected: all architectures During a rebuild of all packages in stonking (current devel), this package failed to build. Below is the most relevant part of the build log. If required, the full build log (example for the amd64v3 arch) is available here: https://launchpadlibrarian.net/879231442/buildlog_ubuntu-stonking- amd64v3.unbound_1.25.1-1ubuntu3_BUILDING.txt.gz --- libtool: compile: x86_64-linux-gnu-gcc -I. -Wdate-time -D_FORTIFY_SOURCE=3 -I../.. -I/usr/include/python3.14 -DSRCDIR=../.. -g -O2 -Werror=implicit-function-declaration -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -march=x86-64-v3 -fdebug-prefix-map=/<<PKGBUILDDIR>>=/usr/src/unbound-1.25.1-1ubuntu3 -ffile-prefix-map=../../= -pthread -c util/configparser.c -fPIC -DPIC -o .libs/configparser.o In file included from ../../pythonmod/pythonmod.c:145: ./pythonmod/interface.h: In function 'GetNameAsLabelList': ./pythonmod/interface.h:3372:43: error: implicit declaration of function 'PyString_FromString'; did you mean 'PyLong_FromString'? [-Wimplicit-function-declaration] 3372 | PyList_SetItem(list, cnt, PyString_FromString(buf)); | ^~~~~~~~~~~~~~~~~~~ | PyLong_FromString ./pythonmod/interface.h:3372:43: error: passing argument 3 of 'PyList_SetItem' makes pointer from integer without a cast [-Wint-conversion] 3372 | PyList_SetItem(list, cnt, PyString_FromString(buf)); | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | int --- The bug is described and fixed in the upstream project: > SWIG 4.5.0 removed Python 2 compatibility macros (PyInt_, PyString_, SWIG_Python_str_*) from its runtime header pyhead.swg (see commit Python: Remove Python 2 compatibility macros). These macros mapped old Python 2 C API names to their Python 3 equivalents. Packages that reference them in custom SWIG typemaps or pre-generated wrapper code now fail to compile. - Upstream bug report: https://github.com/NLnetLabs/unbound/issues/1489 - Upstream fixing commit: https://github.com/NLnetLabs/unbound/commit/93a56205cfa6b9a6d34db7245aa71e5ca67d1fd7 - Debian bug report: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1145860 - - Debian fix: https://sources.debian.org/patches/unbound/1.26.1-1/ + - Debian fix: https://sources.debian.org/patches/unbound/1.26.1-1/replace-removed-Python-2-C-API-macros.patch/ - Fedora fix (see one of the patches, just for reference): https://src.fedoraproject.org/rpms/unbound/pull-request/40#request_diff Plan: cherry-pick the upstream fix as a quilt patch (merge proposal to follow). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2169795 Title: FTBFS: unbound 1.25.1-1ubuntu3 fails to build from source in stonking because SWIG 4.5.0 removed Python 2 compatibility macros To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/unbound/+bug/2169795/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
