Package: libuhd-dev
Version: 3.14.1.0-2
Severity: important

Hi,

osmo-trx fails to build since a few days/weeks ago in Debian testing and
unstable, while it still builds fine in Debian stable. Reported osmo-trx
in Debian can be found in [1] and upstream in [2]. Example of build
failure can be found in Osmocom's OBS repositories for Debian (different
versions available) [3].

Summary of failure [4]:
"""
[  396s] libtool: link: g++ -I/usr/include/ -I/usr/include/ -I/usr/include/ -g
 -O2 -fdebug-prefix-map=/usr/src/packages/BUILD=.
 -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z
 -Wl,relro -Wl,-z -Wl,now -o osmo-trx-uhd osmo_trx_uhd-osmo-trx.o
 ./device/uhd/.libs/libdevice.a ./.libs/libtransceiver_common.a
 ../Transceiver52M/arch/x86/.libs/libarch.a ../GSM/.libs/libGSM.a
 ../CommonLibs/.libs/libcommon.a -lpthread -lfftw3f
 /usr/lib/x86_64-linux-gnu/libosmoctrl.so
 /usr/lib/x86_64-linux-gnu/libosmogsm.so -ltalloc
 /usr/lib/x86_64-linux-gnu/libosmovty.so
 /usr/lib/x86_64-linux-gnu/libosmocore.so -luhd
 [  397s] /usr/bin/ld: ./device/uhd/.libs/libdevice.a(UHDDevice.o):
 undefined reference to symbol '_ZN5boost6system16generic_categoryEv'
 [  397s] /usr/bin/ld:
 /usr/lib/x86_64-linux-gnu/libboost_system.so.1.67.0: error adding
 symbols: DSO missing from command line
 [  397s] collect2: error: ld returned 1 exit status
 [  397s] make[4]: *** [Makefile:681: osmo-trx-uhd] Error 1
"""

UHD version in stable (building fine): 3.13.1.0-3 ,
https://packages.debian.org/stable/libuhd-dev
UHD version in testing/unstable (build failure): 3.14.1.0-2 ,
https://packages.debian.org/stable/libuhd-dev

Main difference seems to be UHD in testing and stable has this extra patch:
https://sources.debian.org/patches/uhd/3.14.1.0-2/fix-pkg-config/

I'm not sure why this patch was applied (I don't see a similar patch 
applied in UHD master in upstream). Could it be that libboost-system 
doesn't exist on some system architectures but it was unconditionally 
dropped with that patch?

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=939974
[2] https://osmocom.org/issues/4182
[3] https://build.opensuse.org/package/show/network:osmocom:nightly/osmo-trx
[4] 
https://build.opensuse.org/package/live_build_log/network:osmocom:nightly/osmo-trx/Debian_Testing/x86_64

-- System Information:
Debian Release: testing or unstable (works on buster stable)
Architecture: amd64 (x86_64)

Reply via email to