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

** Also affects: nethogs (Debian) via
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1149626
   Importance: Unknown
       Status: Unknown

** Description changed:

  [ Impact ]
  nethogs fails to build from source in stonking on all architectures because 
dpkg-gensymbols detects missing symbols under GCC 15.
  
  [ Fix ]
  Mark 16 compiler-inlined internal C++ template and destructor symbols as 
(c++|optional) in debian/libnethogs0.symbols. Public C ABI is untouched.
  
  [ Test Plan ]
  1. Run dpkg-buildpackage -us -uc -b on stonking (GCC 15).
  2. Verify build succeeds with exit code 0 and packages (libnethogs0, 
libnethogs-dev, nethogs) are produced.
  
  [ Where problems could occur ]
  Only symbols metadata is changed. External callers linking against public 
libnethogs functions are unaffected.
  
  [ Other Info ]
  Target: stonking. Debdiff attached.
+ Debian BTS: https://bugs.debian.org/1149626
  
  --- [ Original Report ]
  nethogs 0.9.0-1 fails to build from source in stonking.
  
  Regressing architectures (built before, fail now): amd64, amd64v3, arm64,
  armhf, ppc64el, riscv64, s390x.
  
  Build logs:
    - amd64: 
https://launchpad.net/ubuntu/+source/nethogs/0.9.0-1/+build/33470127/+files/buildlog_ubuntu-stonking-amd64.nethogs_0.9.0-1_BUILDING.txt.gz
    - amd64v3: 
https://launchpad.net/ubuntu/+source/nethogs/0.9.0-1/+build/33470128/+files/buildlog_ubuntu-stonking-amd64v3.nethogs_0.9.0-1_BUILDING.txt.gz
    - arm64: 
https://launchpad.net/ubuntu/+source/nethogs/0.9.0-1/+build/33470129/+files/buildlog_ubuntu-stonking-arm64.nethogs_0.9.0-1_BUILDING.txt.gz
    - armhf: 
https://launchpad.net/ubuntu/+source/nethogs/0.9.0-1/+build/33470130/+files/buildlog_ubuntu-stonking-armhf.nethogs_0.9.0-1_BUILDING.txt.gz
    - ppc64el: 
https://launchpad.net/ubuntu/+source/nethogs/0.9.0-1/+build/33470131/+files/buildlog_ubuntu-stonking-ppc64el.nethogs_0.9.0-1_BUILDING.txt.gz
    - riscv64: 
https://launchpad.net/ubuntu/+source/nethogs/0.9.0-1/+build/33470132/+files/buildlog_ubuntu-stonking-riscv64.nethogs_0.9.0-1_BUILDING.txt.gz
    - s390x: 
https://launchpad.net/ubuntu/+source/nethogs/0.9.0-1/+build/33470133/+files/buildlog_ubuntu-stonking-s390x.nethogs_0.9.0-1_BUILDING.txt.gz
  
  Diagnosis (deterministic matcher): dpkg-gensymbols-mismatch - 
"dpkg-gensymbols:
  error: some symbols or patterns disappeared in the symbols file: see diff
  output below", followed by "dh_makeshlibs: error: failing due to earlier 
errors".
  
  Root cause: debian/libnethogs0.symbols lists symbols that the stonking
  toolchain no longer emits. They are compiler-generated C++ template
  instantiations and inline destructors (std::map/set/list/vector destructors,
  std::_Rb_tree helpers, std::ctype<char>::do_widen, std::piecewise_construct,
  PackListNode::~PackListNode()). None of them are part of libnethogs's real
  ABI. riscv64 fails with the same error. The same 0.9.0-1 builds fine on
  Debian's buildds, so the failure comes from the newer Ubuntu toolchain.
  
  Suggested fix: mark these compiler-generated std:: template and inline
  destructor symbols (and PackListNode::~PackListNode()) as (optional) in
  debian/libnethogs0.symbols, or drop them. Forward the change to Debian
  (src:nethogs), because newer GCC there will hit the same problem. No existing
  Ubuntu or Debian bug covers this.

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

Title:
  nethogs 0.9.0-1 FTBFS

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nethogs/+bug/2168992/+subscriptions


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

Reply via email to