[LINUX] SVN -r25648: libbdnav wont configure on Fedora 12; missing ecdsa.h
#1
Question 
I've been building xbmc-linux from the SVN trunk on Fedora 12 i686.

Since -r25648, xbmc fails to configure.

Specifically, xbmc/cores/dvdplayer/Codecs/libbdnav/configure.ac is complaining "Version of OpenSSL does not feature openssl/ecdsa.h, please upgrade".

Fedora 12 ships openssl-1.0.0-beta4, but the package is configured no-ecdsa due to patent encumbrance[1] (and I think [2]). Commenting out the lines in configure.ac appears to allow xbmc to configure, make, install, and run, although I haven't used the dvdplayer or especially bluray support.

Is this check a surrogate for openssl version, or is ecdsa actually required for something, and if so, what?

I'd be happy to help with a patch to improve the check or turn off the optional feature, but I'm not sure what the design intent is...

-Peter

[1] https://bugzilla.redhat.com/show_bug.cgi?id=319901
[2] https://datatracker.ietf.org/ipr/220/
Reply
#2
kolbus Wrote:I've been building xbmc-linux from the SVN trunk on Fedora 12 i686.

Since -r25648, xbmc fails to configure.

Specifically, xbmc/cores/dvdplayer/Codecs/libbdnav/configure.ac is complaining "Version of OpenSSL does not feature openssl/ecdsa.h, please upgrade".

Fedora 12 ships openssl-1.0.0-beta4, but the package is configured no-ecdsa due to patent encumbrance[1] (and I think [2]). Commenting out the lines in configure.ac appears to allow xbmc to configure, make, install, and run, although I haven't used the dvdplayer or especially bluray support.

Is this check a surrogate for openssl version, or is ecdsa actually required for something, and if so, what?

I'd be happy to help with a patch to improve the check or turn off the optional feature, but I'm not sure what the design intent is...

-Peter

[1] https://bugzilla.redhat.com/show_bug.cgi?id=319901
[2] https://datatracker.ietf.org/ipr/220/

for OSX, I had to specify the path to openssl for libbdnav's configure. Like this

/configure --with-ssl-dir=/opt/local/include

this would be in xbmc's configure.in
Reply
#3
davilla Wrote:for OSX, I had to specify the path to openssl for libbdnav's configure. Like this

/configure --with-ssl-dir=/opt/local/include

this would be in xbmc's configure.in

On Fedora, -I/usr/include is sufficient to find openssl/. Most algorithms' headers are there, but ecdsa.h isn't.
Reply
#4
since i have stripped off all crypto things from libbluray (and thus just grabbed libbdnav), the ssl test is probably completely unneeded. a fix is simply to avoid checking for ssl in the configure for libbdnav, as nothing links against the ssl library anyways.
Reply
#5
spiff Wrote:since i have stripped off all crypto things from libbluray (and thus just grabbed libbdnav), the ssl test is probably completely unneeded. a fix is simply to avoid checking for ssl in the configure for libbdnav, as nothing links against the ssl library anyways.

Awesome, thanks. I've submitted the patch to trac.

http://trac.xbmc.org/ticket/8137
Reply
#6
Thanks guys for figuring this out. It was the last problem I was facing and your solution worked for me.

Fedora 12 64-bit
Reply
#7
Hi

that patch fails for me:

bash-4.0$ patch -p1 < libbdnav-remove-openssl.patch
patching file cores/dvdplayer/Codecs/libbdnav/configure.ac
Hunk #1 FAILED at 2.
Hunk #2 FAILED at 60.
2 out of 2 hunks FAILED -- saving rejects to file cores/dvdplayer/Codecs/libbdnav/configure.ac.rej

what am i doing wrong ? Fedora 12 64-bit as well.

Many Thanks in Advance
Reply
#8
If you run:

patch -p0 < libbdnav-remove-openssl.patch

it will work just fine.

Just make sure the .patch file is in the xbmc directory you checked out from svn.
Reply
#9
I am in the process of installing xmbc to my fedora 12 x64 system and I having this problems with openssl/ecdsa.h when running ./configure. I checked out from the svn earlier today so I am using the latest version available. I did not have this problem with a previous build that is working successfully on my laptop with fedora 12.

I tried applying the patch without error and ran "autoreconf --force --install" but I am still unable run successfully run ./configure.

Am I still missing something?
Reply
#10
akuma,

The latest SVN will compile on Fedora 12 now. Check out the http://buildbot.xbmc.org/grid and see the fedora-nightly for the latest svn trunk that will compile on Fedora. When I built the buildslave, I used ATRPMS to get all the dependencies, and that has worked just fine...
Reply
#11
Thanks. Got it working.
Reply

Logout Mark Read Team Forum Stats Members Help
[LINUX] SVN -r25648: libbdnav wont configure on Fedora 12; missing ecdsa.h0