Project

General

Profile

Actions

Bug #4936

closed

osmo-pcu OBS nightly builds all fail "/usr/bin/ld: cannot find -lmnl"

Added by laforge over 3 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Target version:
-
Start date:
01/08/2021
Due date:
% Done:

100%

Spec Reference:

Description

Tonight, all our osmo-pcu (and osmo-sgsn) builds started to fail with:

[  308s]   CXX      pcu_main.o
[  308s]   CXX      gprs_debug.lo
[  308s]   CC       csn1.lo
[  308s]   CC       gsm_rlcmac.lo
[  308s]   CXX      gprs_bssgp_pcu.lo
[  308s]   CXX      gprs_rlcmac.lo
[  308s]   CXX      gprs_rlcmac_sched.lo
[  308s]   CXX      gprs_rlcmac_meas.lo
[  310s]   CXX      gprs_rlcmac_ts_alloc.lo
[  312s]   CC       gprs_ms.lo
[  312s]   CXX      gprs_ms_storage.lo
[  312s]   CXX      gsm_timer.lo
[  313s]   CXX      pcu_l1_if.lo
[  313s]   CC       pcu_vty.lo
[  314s]   CXX      pcu_vty_functions.lo
[  315s]   CC       mslot_class.lo
[  315s]   CXX      tbf.lo
[  316s]   CXX      tbf_ul.lo
[  316s]   CXX      tbf_dl.lo
[  316s]   CXX      bts.lo
[  317s]   CXX      pdch.lo
[  318s]   CXX      poll_controller.lo
[  318s]   CXX      encoding.lo
[  318s]   CXX      sba.lo
[  321s]   CXX      decoding.lo
[  322s]   CXX      llc.lo
[  322s]   CXX      rlc.lo
[  322s]   CXX      osmobts_sock.lo
[  323s]   CC       gprs_codel.lo
[  323s]   CC       coding_scheme.lo
[  324s]   CXX      egprs_rlc_compression.lo
[  327s]   CXXLD    libgprs.la
[  327s] copying selected object files to avoid basename conflicts...
[  327s]   CXXLD    osmo-pcu
[  328s] /usr/bin/ld: cannot find -lmnl
[  328s] collect2: error: ld returned 1 exit status
[  328s] make[1]: *** [Makefile:723: osmo-pcu] Error 1

I don't really get why this is happening. libosmocore.so.* is linked with libmnl.so.x.y.z, so there is absolutely no need to link each application explicitly against "-lmnl". The latter would require libmnl-dev to be installed, which it is not (and which it should not required to be).

So where does the sudden "-lmnl" come from?

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)