FS#66206 - [srslte-avx2] srsue crashes if optional RF frontends are not installed

Attached to Project: Community Packages
Opened by Robert Falkenberg (Falkenber9) - Friday, 10 April 2020, 14:41 GMT
Last edited by Filipe Laíns (FFY00) - Friday, 10 April 2020, 15:44 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Filipe Laíns (FFY00)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: srsue crashes if any RF frontend library in ''optdepends'' is not installed on the system


Additional info:
* affected version: ``srslte-avx2 19.12-2``
* tested by running ``srsue`` without ``bladerf`` package installed.


Steps to reproduce:

* install srslte-avx and initialize configs
* uninstall package bladerf if exists (e.g. pacman -Rdd bladerf)
* start ``srsue``
* crash:
```
srsue: error while loading shared libraries: libbladeRF.so.2: cannot open shared object file: No such file or directory
```

Explaination:
During build, all RF frontends are enabled (as required by the build deps) and the srsLTE library is linked against the corresponding shared libraries (UHD, bladerf, ...).
However, srsLTE does not support dynamic loading of shared libraries, like e.g. ``dlopen(...)`` if library exists.

Suggested Solution:
Add all RF frontends from builddeps into regular deps. This should't hurt too much :-)

This task depends upon

Closed by  Filipe Laíns (FFY00)
Friday, 10 April 2020, 15:44 GMT
Reason for closing:  Fixed
Additional comments about closing:  srslte{,-avx2} 19.12-3
Comment by Robert Falkenberg (Falkenber9) - Friday, 10 April 2020, 14:44 GMT
Please, add "[srslte-avx2] " to the subject line. Sorry.

Loading...