Author Topic: Addons dependency management on Linux  (Read 411 times)

Kristian

  • Guest
Addons dependency management on Linux
« on: 23 Jun '18 - 15:36 »
Right now, the shared objects for the addons do not depend on libbass.so, even though they try to call BASS_GetVersion. This means that you have to globally load libbass.so which is inefficient and unintuitive, if you don't, you get a segmentation fault.

LD_DEBUG=all output:
/usr/lib/libbassmix.so: error: symbol lookup error: undefined symbol: BASS_GetVersion (fatal)

Ian @ un4seen

  • Administrator
  • Posts: 21379
Re: Addons dependency management on Linux
« Reply #1 on: 25 Jun '18 - 13:36 »
Indeed, the add-ons aren't linked with the libbass.so library and instead depend on it being loaded (with global scope) by the application first. The reason for this is that the application's directory isn't in Linux's library search path, and so the add-ons would otherwise fail to load if the libbass.so library isn't installed in the library search path. Alternative solution suggestions are welcome.