I'm trying to use some Linux libs under FreeBSD/PC-BSD, and I have some doubts about how Linux binary compatibility on FreeBSD works.
I have installed the required kernel module for this task, with the additional linux_base package containing the Linux libraries.
The library itself is libspotify, which can be downloaded here (there are no libspotify builds available for FreeBSD, so the Linux one must be used): https://developer.spotify.com/technologies/libspotify/#download
Running this Python code snipped fails:
import ctypes
lib_path = './libspotify.so'
lib = ctypes.cdll.LoadLibrary(lib_path)
It says the following:
OSError: Shared object "libpthread.so.0" not found, required by "libspotify.so"
The handbook says that linux binaries must be tagged using brandelf
, and I did so:
http://www.freebsd.org/doc/handbook/linuxemu-lbc-install.html#idp74327472
But it does not work yet.
So the question is: Linux binary compatibility is only for Linux executables or is also suitable for loading Linux libraries inside FreeBSD executables?
EDIT: I'm aware that this may require changing the linker configuration as stated on an answer to this similar question, but since the library is going to be loaded inside a Python script, it doesn't seem a suitable approach.
Thanks in advance.