[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Help needed with a dh_shlibs failure on non amd64 platforms



Hello all,

I come to you because I'm puzzled with a bug I have in one of my package, and
I'm seeking for help. Please CC me when answering as I'm not on this list.

The package is ns3, a scientific simulator of computer networks. This package is
huge, I seem to be the only active maintainer, but upstream is very
collaborative.

Upstream just moved from a build system called waf to cmake, which is an nice
move. They introduced a small python script saving the waf interface to their
users that don't like changes, and unfortunately the raw cmake interface is not
usable yet (cmake checks on files created by the script), so I cannot use the
plain classical cmake build in debian/rules. I did my best to mimick the
behavior of `dh --buildsystem=cmake` but I have a strange failure on non-amd64
platforms:
https://buildd.debian.org/status/package.php?p=ns3

The build, tests and install targets go well, until dh_shlibdeps. At that step,
I get a huge bunch of errors like the following:
```
   dh_shlibdeps -a
	dpkg-shlibdeps -Tdebian/libns3.36.substvars debian/libns3.36/usr/lib/x86_64-linux-gnu/libns3-wimax.so.36.1 debian/libns3.36/usr/lib/x86_64-linux-gnu/libns3-wifi.so.36.1 debian/libns3.36/usr/lib/x86_64-linux-gnu/libns3-wave.so.36.1 debian/libns3.36/usr/lib/x86_64-linux-gnu/libns3-visualizer.so.36.1 debian/libns3.36/usr/lib/x86_64-linux-gnu/libns3-virtual-net-device.so.36.1 debian/libns3.36/usr/lib/x86_64-linux-gnu/libns3-uan.so.36.1 debian/libns3.36/usr/lib/x86_64-linux-gnu/libns3-traffic-control.so.36.1 debian/libns3.36/usr/lib/x86_64-linux-gnu/libns3-topology-read.so.36.1 debian/libns3.36/usr/lib/x86_64-linux-gnu/libns3-tap-bridge.so.36.1 debian/libns3.36/usr/lib/x86_64-linux-gnu/libns3-stats.so.36.1 debian/libns3.36/usr/lib/x86_64-linux-gnu/libns3-spectrum.so.36.1 debian/libns3.36/usr/lib/x86_64-linux-gnu/libns3-sixlowpan.so.36.1 debian/libns3.36/usr/lib/x86_64-linux-gnu/libns3-propagation.so.36.1 debian/libns3.36/usr/lib/x86_64-linux-gnu/libns3-point-to-point.so.36.1 debian/libns3.36/usr/lib/x86_64-linux-gnu/libns3-point-to-point-layout.so.36.1 debian/libns3.36/usr/lib/x86_64-linux-gnu/libns3-olsr.so.36.1 debian/libns3.36/usr/lib/x86_64-linux-gnu/libns3-nix-vector-routing.so.36.1 debian/libns3.36/usr/lib/x86_64-linux-gnu/libns3-network.so.36.1 debian/libns3.36/usr/lib/x86_64-linux-gnu/libns3-netanim.so.36.1 debian/libns3.36/usr/lib/x86_64-linux-gnu/libns3-mobility.so.36.1 debian/libns3.36/usr/lib/x86_64-linux-gnu/libns3-mesh.so.36.1 debian/libns3.36/usr/lib/x86_64-linux-gnu/libns3-lte.so.36.1 debian/libns3.36/usr/lib/x86_64-linux-gnu/libns3-lr-wpan.so.36.1 debian/libns3.36/usr/lib/x86_64-linux-gnu/libns3-internet.so.36.1 debian/libns3.36/usr/lib/x86_64-linux-gnu/libns3-internet-apps.so.36.1 debian/libns3.36/usr/lib/x86_64-linux-gnu/libns3-flow-monitor.so.36.1 debian/libns3.36/usr/lib/x86_64-linux-gnu/libns3-fd-net-device.so.36.1 debian/libns3.36/usr/lib/x86_64-linux-gnu/libns3-energy.so.36.1 debian/libns3.36/usr/lib/x86_64-linux-gnu/libns3-dsr.so.36.1 debian/libns3.36/usr/lib/x86_64-linux-gnu/libns3-dsdv.so.36.1 debian/libns3.36/usr/lib/x86_64-linux-gnu/libns3-csma.so.36.1 debian/libns3.36/usr/lib/x86_64-linux-gnu/libns3-csma-layout.so.36.1 debian/libns3.36/usr/lib/x86_64-linux-gnu/libns3-core.so.36.1 debian/libns3.36/usr/lib/x86_64-linux-gnu/libns3-config-store.so.36.1 debian/libns3.36/usr/lib/x86_64-linux-gnu/libns3-buildings.so.36.1 debian/libns3.36/usr/lib/x86_64-linux-gnu/libns3-bridge.so.36.1 debian/libns3.36/usr/lib/x86_64-linux-gnu/libns3-applications.so.36.1 debian/libns3.36/usr/lib/x86_64-linux-gnu/libns3-aodv.so.36.1 debian/libns3.36/usr/lib/x86_64-linux-gnu/libns3-antenna.so.36.1
dpkg-shlibdeps: error: cannot find library libns3-bridge.so.36.1 needed by debian/libns3.36/usr/lib/x86_64-linux-gnu/libns3-internet.so.36.1 (ELF format: 'elf64-littleaarch64' abi: '020100b700000000'; RPATH: '')
dpkg-shlibdeps: error: cannot find library libns3-traffic-control.so.36.1 needed by debian/libns3.36/usr/lib/x86_64-linux-gnu/libns3-internet.so.36.1 (ELF format: 'elf64-littleaarch64' abi: '020100b700000000'; RPATH: '')
```
This specific one is for arm64, but I get exactly the same problem for all
platforms but amd64.
https://buildd.debian.org/status/fetch.php?pkg=ns3&arch=arm64&ver=3.36.1%2Bdfsg-2&stamp=1656893780&raw=0

All libraries (eg libns3-bridge.so.36.1) that it cannot find are part of the
package. They are added to the debian/libns3.36/DEBIAN/shlibs a few lines above
in the build log, and dh_strip found them further above in the log. What really
puzzles me is that the package builds fine on amd64 and i386. 

The package is uptodate on salsa, in case someone wants to test something
directly on the package. Fear not to do so, this package only takes one hour to
build on my machine :)

If you wonder, the cmake macro to define and build a library is in 
  ns-3.36.1/build-support/custom-modules/ns3-module-macros.cmake
I already had to patch it to support Debian:
https://salsa.debian.org/debian/ns3/-/blob/master/debian/patches/library-soversion.diff
This patch is ugly for now, but I'm already discussing with upstream so that
they integrate the spirit of this patch to their code. They are receptive.


So this is it. I'm stranded here, so any kind of help, pointer, advice or patch
is more than welcome, please.


Thanks in advance,
Mt

PS: don't forget to CC me, please.

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: