Public bug reported:

Imported from Debian bug http://bugs.debian.org/1097678:

Package: src:python-easysnmp
Version: 0.2.6-1
Severity: important
Tags: sid forky
User: [email protected]
Usertags: ftbfs-gcc-15

[This bug is NOT targeted to the upcoming trixie release]

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-15/g++-15, but succeeds to build with gcc-14/g++-14. The
severity of this report will be raised before the forky release.

The full build log can be found at:
http://qa-logs.debian.net/2025/02/16/amd64exp/python-easysnmp_0.2.6-1_unstable_gccexp.log.gz
The last lines of the build log are at the end of this report.

To build with GCC 15, either set CC=gcc-15 CXX=g++-15 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++

GCC 15 now defaults to the C23/C++23 standards, exposing many FTBFS.
Other Common build failures are new warnings resulting in build failures
with -Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-15/porting_to.html

[...]
!!
  from setuptools.command.test import test as TestCommand
/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:261: UserWarning: 
Unknown distribution option: 'tests_require'
  warnings.warn(msg)
running build
running build_py
creating 
/build/reproducible-path/python-easysnmp-0.2.6/.pybuild/cpython3_3.12_python-easysnmp/build/easysnmp
copying easysnmp/utils.py -> 
/build/reproducible-path/python-easysnmp-0.2.6/.pybuild/cpython3_3.12_python-easysnmp/build/easysnmp
copying easysnmp/helpers.py -> 
/build/reproducible-path/python-easysnmp-0.2.6/.pybuild/cpython3_3.12_python-easysnmp/build/easysnmp
copying easysnmp/variables.py -> 
/build/reproducible-path/python-easysnmp-0.2.6/.pybuild/cpython3_3.12_python-easysnmp/build/easysnmp
copying easysnmp/compat.py -> 
/build/reproducible-path/python-easysnmp-0.2.6/.pybuild/cpython3_3.12_python-easysnmp/build/easysnmp
copying easysnmp/session.py -> 
/build/reproducible-path/python-easysnmp-0.2.6/.pybuild/cpython3_3.12_python-easysnmp/build/easysnmp
copying easysnmp/__init__.py -> 
/build/reproducible-path/python-easysnmp-0.2.6/.pybuild/cpython3_3.12_python-easysnmp/build/easysnmp
copying easysnmp/exceptions.py -> 
/build/reproducible-path/python-easysnmp-0.2.6/.pybuild/cpython3_3.12_python-easysnmp/build/easysnmp
copying easysnmp/easy.py -> 
/build/reproducible-path/python-easysnmp-0.2.6/.pybuild/cpython3_3.12_python-easysnmp/build/easysnmp
running build_ext
building 'easysnmp.interface' extension
creating build/temp.linux-x86_64-cpython-312/easysnmp
x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall 
-g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/build/reproducible-path/python-easysnmp-0.2.6=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection -Wno-sign-compare -Wno-unused-function 
-Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.12 -c 
easysnmp/interface.c -o build/temp.linux-x86_64-cpython-312/easysnmp/interface.o
easysnmp/interface.c:4263:5: error: initialization of ‘void (*)(void *)’ from 
incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types]
 4263 |     __libraries_free};
      |     ^~~~~~~~~~~~~~~~
easysnmp/interface.c:4263:5: note: (near initialization for ‘moduledef.m_free’)
easysnmp/interface.c:264:6: note: ‘__libraries_free’ declared here
  264 | void __libraries_free()
      |      ^~~~~~~~~~~~~~~~
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
E: pybuild pybuild:389: build: plugin distutils failed with: exit code=1: 
/usr/bin/python3.12 setup.py build 
I: pybuild base:311: /usr/bin/python3 setup.py build 
/build/reproducible-path/python-easysnmp-0.2.6/setup.py:8: 
SetuptoolsDeprecationWarning: The test command is disabled and references to it 
are deprecated.
!!

        
********************************************************************************
        Please remove any references to `setuptools.command.test` in all 
supported versions of the affected package.

        This deprecation is overdue, please update your project and remove 
deprecated
        calls to avoid build errors in the future.
        
********************************************************************************

!!
  from setuptools.command.test import test as TestCommand
/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:261: UserWarning: 
Unknown distribution option: 'tests_require'
  warnings.warn(msg)
running build
running build_py
creating 
/build/reproducible-path/python-easysnmp-0.2.6/.pybuild/cpython3_3.13_python-easysnmp/build/easysnmp
copying easysnmp/utils.py -> 
/build/reproducible-path/python-easysnmp-0.2.6/.pybuild/cpython3_3.13_python-easysnmp/build/easysnmp
copying easysnmp/helpers.py -> 
/build/reproducible-path/python-easysnmp-0.2.6/.pybuild/cpython3_3.13_python-easysnmp/build/easysnmp
copying easysnmp/variables.py -> 
/build/reproducible-path/python-easysnmp-0.2.6/.pybuild/cpython3_3.13_python-easysnmp/build/easysnmp
copying easysnmp/compat.py -> 
/build/reproducible-path/python-easysnmp-0.2.6/.pybuild/cpython3_3.13_python-easysnmp/build/easysnmp
copying easysnmp/session.py -> 
/build/reproducible-path/python-easysnmp-0.2.6/.pybuild/cpython3_3.13_python-easysnmp/build/easysnmp
copying easysnmp/__init__.py -> 
/build/reproducible-path/python-easysnmp-0.2.6/.pybuild/cpython3_3.13_python-easysnmp/build/easysnmp
copying easysnmp/exceptions.py -> 
/build/reproducible-path/python-easysnmp-0.2.6/.pybuild/cpython3_3.13_python-easysnmp/build/easysnmp
copying easysnmp/easy.py -> 
/build/reproducible-path/python-easysnmp-0.2.6/.pybuild/cpython3_3.13_python-easysnmp/build/easysnmp
running build_ext
building 'easysnmp.interface' extension
creating build/temp.linux-x86_64-cpython-313/easysnmp
x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall 
-g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/build/reproducible-path/python-easysnmp-0.2.6=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection -Wno-sign-compare -Wno-unused-function 
-Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.13 -c 
easysnmp/interface.c -o build/temp.linux-x86_64-cpython-313/easysnmp/interface.o
easysnmp/interface.c:4263:5: error: initialization of ‘void (*)(void *)’ from 
incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types]
 4263 |     __libraries_free};
      |     ^~~~~~~~~~~~~~~~
easysnmp/interface.c:4263:5: note: (near initialization for ‘moduledef.m_free’)
easysnmp/interface.c:264:6: note: ‘__libraries_free’ declared here
  264 | void __libraries_free()
      |      ^~~~~~~~~~~~~~~~
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
E: pybuild pybuild:389: 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.12 3.13" 
returned exit code 13
make: *** [debian/rules:11: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

** Affects: python-easysnmp (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: python-easysnmp (Debian)
     Importance: Undecided
         Status: New


** Tags: ftbfs update-excuse

** Bug watch added: Debian Bug tracker #1097678
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1097678

** Changed in: python-easysnmp (Debian)
 Remote watch: None => Debian Bug tracker #1097678

** Tags added: ftbfs update-excuse

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2132639

Title:
  python-easysnmp: ftbfs with GCC-15

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-easysnmp/+bug/2132639/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to