Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 540350 - media-tv/kodi[-webserver]: xbmc/network/httprequesthandler/IHTTPRequestHandler.h:32:24: fatal error: microhttpd.h: No such file or directory
Summary: media-tv/kodi[-webserver]: xbmc/network/httprequesthandler/IHTTPRequestHandle...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Xbox project
URL: http://trac.kodi.tv/ticket/16113
Whiteboard:
Keywords:
: 554382 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-02-17 10:10 UTC by Miroslav Šulc
Modified: 2015-07-17 02:45 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Miroslav Šulc gentoo-dev 2015-02-17 10:10:36 UTC
In file included from HttpRangeUtils.cpp:23:0:
/var/tmp/portage/media-tv/kodi-9999/work/kodi-9999/xbmc/network/httprequesthandler/IHTTPRequestHandler.h:32:24: fatal error: microhttpd.h: No such file or directory
 #include <microhttpd.h>
                        ^
compilation terminated.
/var/tmp/portage/media-tv/kodi-9999/work/kodi-9999/Makefile.include:93: recipe for target 'HttpRangeUtils.o' failed


[ebuild     U *] media-tv/kodi-9999::gentoo [14.1::gentoo] USE="X bluetooth bluray caps fishbmc midi opengl projectm pulseaudio rsxs samba udisks upower usb vdpau xrandr -airplay -avahi -cec -css -debug -gles -goom -java -joystick -mysql -nfs -profile -pvr -rtmp -sftp {-test} -upnp -vaapi -webserver" PYTHON_TARGETS="python2_7" 0 KiB
Comment 1 hal 2015-04-16 00:00:05 UTC
I didn't look deeper into the issue but from a user's point of view I'd say microhttpd is needed for remotes (webinterfaces, mobile apps) to communicate with the JSON API. To be more specific I'd say it is the following settings:

- Allow programs on other systems to control Kodi (http://kodi.wiki/view/Settings/Services#Remote_control)
-  Allow control of Kodi via HTTP (http://kodi.wiki/view/Settings/Services#Webserver)

As a consequence we could remove IUSE="webserver" and add net-libs/libmicrohttpd[messages] to the $COMMON_DEPEND variable instead.
Comment 2 SpanKY gentoo-dev 2015-07-10 08:12:38 UTC
*** Bug 554382 has been marked as a duplicate of this bug. ***
Comment 3 hal 2015-07-10 10:42:59 UTC
I just rebuilt kodi successfully with USE="-webserver". So it seems like upstream fixed the issue in the meantime.
Comment 4 hal 2015-07-10 11:13:14 UTC
(In reply to hal from comment #3)
> I just rebuilt kodi successfully with USE="-webserver". So it seems like
> upstream fixed the issue in the meantime.

Sorry, I missed the fact that libmicrohttpd wasn't installed at all onto the OP's system.
Comment 5 hal 2015-07-10 12:14:34 UTC
Bug report upstream as a reference: http://trac.kodi.tv/ticket/16113#ticket
Comment 6 hal 2015-07-15 11:14:25 UTC
Fixed with commit 0d912d5: https://github.com/xbmc/xbmc/commit/0d912d551c50ec77523f795a1558b9469ff179eb

Details: https://github.com/xbmc/xbmc/pull/7510

As far as I can tell it will be backported to the upcoming Kodi 15 Isengard release.
Comment 7 SpanKY gentoo-dev 2015-07-17 02:45:42 UTC
should be all set now in the tree; thanks for the report!

Commit message: Make libmicrohttpd dep unconditional for current release as backporting the required patches from upstream looks like a bit of a hassle
http://sources.gentoo.org/media-tv/kodi/kodi-14.1.ebuild?r1=1.7&r2=1.8