libnl-route-3-200 unresolved symbols

Bug #1903396 reported by Christopher Friedt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libnl3 (Ubuntu)
Expired
Low
Unassigned

Bug Description

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.1 LTS"

$ arch
x86_64

Getting a link error when trying to build Wireshark from source on Ubuntu Focal. I need to build Wireshark for plugin development.

Steps to reproduce:
1. Obtain source code from https://gitlab.com/wireshark/wireshark
2. Install build dependencies as per CI ./tools/debian-setup.sh --install-optional --install-test-deps -y
3. mkdir build
4. cmake ..
5. make
6. Observer error:

[ 88%] Linking CXX executable run/wireshark
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libnl-route-3.so: undefined reference to `nla_get_s32'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libnl-route-3.so: undefined reference to `nl_strerror_l'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/wireshark.dir/build.make:567: run/wireshark] Error 1
make[1]: *** [CMakeFiles/Makefile2:3713: CMakeFiles/wireshark.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

Those two symbols are not present in any of the other libnl libraries, static or dynamic.

/usr/include/libnl3/netlink/attr.h:119:extern int32_t nla_get_s32(const struct nlattr *);

$ dpkg -S /usr/include/libnl3/netlink/attr.h
libnl-3-dev:amd64: /usr/include/libnl3/netlink/attr.h

$ dpkg -S /usr/lib/x86_64-linux-gnu/libnl-route-3.so.200.26.0
libnl-route-3-200:amd64: /usr/lib/x86_64-linux-gnu/libnl-route-3.so.200.26.0

I can build and install libnl-3.2.25 from source and I don't get the linking issues anymore if I replace the .so files installed by the .debs, so it's possible that there is soemthing wrong with the packaging of libnl-route-3-200.deb.

affects: calibre → libnl3 (Ubuntu)
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report, could you provide the output of that command on a system having the issue?

$ ldd -r /usr/lib/x86_64-linux-gnu/libnl-route-3.so

what version of the library is installed?

Changed in libnl3 (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Christopher Friedt (cfriedt0) wrote : Re: [Bug 1903396] Re: libnl-route-3-200 unresolved symbols

linux-vdso.so.1 (0x00007ffcf0521000)
libnl-3.so.200 => /lib/x86_64-linux-gnu/libnl-3.so.200 (0x00007f5a697da000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f5a697b7000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f5a695c5000)
/lib64/ld-linux-x86-64.so.2 (0x00007f5a698a0000)

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

For what it's worth, I created a Focal lxd container, followed the instructions listed in the description, but could not reproduce the issue. I was able to successfully build wireshark without problems here.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for libnl3 (Ubuntu) because there has been no activity for 60 days.]

Changed in libnl3 (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.