Project

General

Profile

Actions

Bug #6138

closed

open5gs fails to build on obs.osmocom.org for Debian testing & unstable

Added by osmith 8 months ago. Updated 2 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
08/18/2023
Due date:
% Done:

100%

Spec Reference:

Description

Error:

[  142s] /usr/include/tins/ip_address.h: In member function ‘std::size_t std::hash<Tins::IPv4Address>::operator()(const Tins::IPv4Address&) const’:
[  142s] /usr/include/tins/ip_address.h:220:31: error: ‘uint32_t’ is not a member of ‘std’; did you mean ‘wint_t’?
[  142s]   220 |         return std::hash<std::uint32_t>()(addr);
[  142s]       |                               ^~~~~~~~
[  142s]       |                               wint_t

This comes from libtins, it has been fixed on their master:
https://github.com/mfontanini/libtins/pull/496

I've asked libtins to tag a new release, so we can have it fixed in debian testing & unstable:
https://github.com/mfontanini/libtins/issues/513

Also a workaround was added to open5gs (not yet in the latest release), which is why it passes on osmocom:nightly and osmocom:master:
https://github.com/open5gs/open5gs/commit/178d1ff98632f35fde270e2a6110ddfe7d8656f8

Actions #1

Updated by osmith 8 months ago

  • % Done changed from 20 to 50

A libtins 4.5 release has been tagged with the fix, I've filed a debian ticket to ask for libtins to be upgraded.

Actions #2

Updated by osmith 8 months ago

My bug report, asking to upgrade the package on 2023-08-21:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1050161

Hm, on 2023-08-24 libtins was removed from debian testing:
https://tracker.debian.org/news/1456620/libtins-removed-from-testing/

I've replied to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1037629 asking to just upgrade the package instead.

Actions #3

Updated by osmith 8 months ago

  • % Done changed from 50 to 60
Currently open5gs is failing in our OBS for:
  • Debian unstable: with the error above in osmocom:latest
  • Debian testing: with "nothing provides libtins" in osmocom:latest and osmocom:nightly

I've sent another mail, this time to Internet Measurement Packaging Team <> who is listed as maintainer of the libtins debian package, asking if they don't want to just bring it back to Debian testing and upgrade it to the latest version. This would fix both errors.

I've also tried to build open5gs with libtins as bundled subproject, similar to how we already do it for the freeDiameter dependency (see subprojects). When removing libtins-dev from debian/control, it looks like the bundled version does get used during the build. However it fails later on with:

        install -m0755 -d debian/open5gs-pcf/DEBIAN
        dpkg-shlibdeps -Tdebian/open5gs-pcf.substvars debian/open5gs-pcf/usr/bin/open5gs-pcfd
        install -m0755 -d debian/open5gs-bsf/DEBIAN
        dpkg-shlibdeps -Tdebian/open5gs-bsf.substvars debian/open5gs-bsf/usr/bin/open5gs-bsfd
dpkg-shlibdeps: error: cannot continue due to the error above
Note: libraries are not searched in other binary packages that do not have any shlibs or symbols file.
To help dpkg-shlibdeps find private libraries, you might need to use -l.
dh_shlibdeps: error: dpkg-shlibdeps -Tdebian/open5gs-upf.substvars debian/open5gs-upf/usr/bin/open5gs-upfd returned exit code 2
        install -m0755 -d debian/open5gs-sgwu/DEBIAN
        dpkg-shlibdeps -Tdebian/open5gs-sgwu.substvars debian/open5gs-sgwu/usr/bin/open5gs-sgwud
dpkg-shlibdeps: warning: can't extract name and version from library name 'libprom.so'
dpkg-shlibdeps: warning: can't extract name and version from library name 'libprom.so'
dpkg-shlibdeps: warning: can't extract name and version from library name 'libprom.so'
        install -m0755 -d debian/open5gs-mme/DEBIAN
        dpkg-shlibdeps -Tdebian/open5gs-mme.substvars debian/open5gs-mme/usr/bin/open5gs-mmed

I guess if Debian maintainers won't answer soon, I'll just add a libtins package to our OBS to fix this.

Actions #4

Updated by osmith 8 months ago

  • Subject changed from open5gs latest fails to build on obs.osmocom.org for Debian testing & unstable to open5gs fails to build on obs.osmocom.org for Debian testing & unstable
Actions #5

Updated by osmith 8 months ago

asking for a new release was less effort and would get it fixed for debian unstable at least, so I did that now:
https://github.com/open5gs/open5gs/issues/2607

Actions #6

Updated by osmith 2 months ago

  • Status changed from In Progress to Resolved
  • % Done changed from 60 to 100

we don't provide binary packages for debian testing anymore, so this can be closed:

https://osmocom.org/news/234

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)