[Samba] Kodi crashes when trying to browse network

Michael Cronenworth mike at cchtml.com
Sat Nov 3 19:00:35 UTC 2018

On 11/3/18 11:10 AM, Rowland Penny via samba wrote:
> I think it may be because Debian uses libgnutls28-dev, whilst Fedora
> uses trousers

It seems to be a Kodi CMake issue, but I would argue Samba or trousers need to 
change the name of "read_data" to something more unique if it is going to be an 
exported shared symbol.

Kodi requires libmicrohttpd. The libmicrohttpd library uses gnutls and Fedora's 
gnutls links against trousers. Fedora's gnutls pulls in trousers through dlopen(), 
but CMake is pulling in libtspi as a compile-time link and the linker is using 
read_data() from libtspi over the Samba copy.

Versions 17.x of Kodi used autotools and didn't pull in libtspi. Version 18 relies 
soley on CMake.

I have worked[1] around the problem by filtering out "tspi" from being added to the 
linker libraries in Kodi's CMake macros. Kodi no longer crashes.



More information about the samba mailing list