Bug 3175

Summary: gnutls.x86_64 0:3.1.20-1.fc20 causes configure to segfault
Product: Fedora Reporter: Jerry <bugzilla>
Component: kodiAssignee: Ken Dreyer <ktdreyer>
Status: RESOLVED FIXED    
Severity: normal CC: alexl, bugzilla, ktdreyer, mike
Priority: P5    
Version: 20   
Hardware: x86_64   
OS: GNU/Linux   
See Also: https://bugzilla.redhat.com/show_bug.cgi?id=1069079
namespace:
Attachments: config.log

Description Jerry 2014-02-11 17:06:01 CET
Created attachment 1274 [details]
config.log

gnutls.x86_64 0:3.1.20-1.fc20 causes configure to segfault.  Reverting to gnutls.x86_64 3.1.16-1 fixes the problem.  Attached is the config.log

I filed a bug here: https://bugzilla.redhat.com/show_bug.cgi?id=1063089 and they said to bring it up with the XBMC folks.  I tried building the FC 21 version of gnutls with the same result.

If this is the wrong place, sorry for the noise. :)

Jerry

P.S. Everything seems to be working fine with the older version of gnutls installed.  Currently, I'm running the alpha 11 version built against your source rpm using their internal ffmpeg library.
Comment 1 Ken Dreyer 2014-02-24 06:58:38 CET
I highly suspect this is a bug in trousers or gnutls. See https://bugzilla.redhat.com/show_bug.cgi?id=1069079
Comment 2 Ken Dreyer 2014-02-24 07:30:43 CET
Already mentioned in the "update to alpha11" bug (bug 3185) but for the record, here's the patch that avoids the configure crash with newer gnutls: http://fedorapeople.org/cgit/alexlan/public_git/xbmc-rpm.git/tree/xbmc-13.0-libmysqlclient.patch?id=ad2fa8bf32377efe6d56e8a154677ce160d108f1

I am still seeing another build problem later in the process, but I ran out of time this weekend to fully diagnose it.
Comment 3 Ken Dreyer 2014-03-14 15:27:01 CET
The problem was that both Goom and the rsxs screensaver were crashing during their respective ./configure's (due to the RHBZ 1069079 mentioned above.)

The solution for XBMC is to patch our top-level configure.in in both places.

I've updated the xbmc-13.0-libmysqlclient.patch in this commit: http://fedorapeople.org/cgit/alexlan/public_git/xbmc-rpm.git/commit/?id=07a4d38162f2718884c4d9462d169b1b7ab0b7c5

This allows me to build on Rawhide (F21) and F20. Test RPMs are here: http://lesloueizeh.com/ktdreyer/xbmc-Gotham_beta1/

The problematic trousers version is present in both Fedora 21 and Fedora 20, so in RHBZ 1069079 I've asked Nikos Mavrogiannopoulos to push a trousers update to both branches. We will need xbmc-13.0-libmysqlclient.patch until then.

By the way, I think you mentioned you'd reported this upstream? Mind pointing me at the link(s) to that discussion? It would be nice if XBMC's build process treated a library's ./configure failure inside XB_CONFIG_MODULE as a fatal error, and the top-level xbmc ./configure would bail early in that case. That would save a lot of debugging time.
Comment 4 Michael Cronenworth 2014-03-21 13:00:27 CET
Gotham beta 2 has now been built for rawhide and F20. It will be a few days until you can grab it from updates-testing, but you can use the links below.

http://buildsys.rpmfusion.org/plague-results/fedora-20-rpmfusion_free/xbmc/13.0-0.7.Gotham_beta2.fc20/
http://buildsys.rpmfusion.org/plague-results/fedora-development-rpmfusion_free/xbmc/13.0-0.7.Gotham_beta2.fc21/