Problem to build TVHeadend from latest Git checkout
Added by Chef Denker about 9 years ago
Hi,
after some times not touching TVHeadend build, I see there are an update in git for ffmpeg, so I decided to update TVHeadend. Unfortunately that was a bad idea, because running make get an error and TVHeadend did not build
git show-branch
[master] en50494: fix the previous optimization, fixes #3081
Last lines when running make:
CC src/dvr/dvr_cutpoints.o
CC src/webui/webui.o
src/webui/webui.c: In function ‘http_stream_preop’:
src/webui/webui.c:283:3: error: implicit declaration of function ‘tcp_connection_launch’ [-Werror=implicit-function-declaration]
src/webui/webui.c:283:3: error: return makes pointer from integer without a cast [-Werror]
src/webui/webui.c: In function ‘http_stream_postop’:
src/webui/webui.c:289:3: error: implicit declaration of function ‘tcp_connection_land’ [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors
Makefile:527: recipe for target '/tvheadend/build.linux/src/webui/webui.o' failed
make: *** [/tvheadend/build.linux/src/webui/webui.o] Error
This is from an RaspberryPi B+, running Rasbian (Debian 7.8, Kernel 4.1.6+)
Anyone a hint to fix it?
Replies (4)
RE: Problem to build TVHeadend from latest Git checkout - Added by Prof Yaffle about 9 years ago
My guess would be this cleanup commit:
https://github.com/tvheadend/tvheadend/commit/908050b38aab25ca7f8c5fa13d4b4a47f0961713
... although I haven't had a chance to check whether it builds on my system.
Try editing webui.c and putting the #include "tcp.h" back in, see if that helps. I would presume that tcp.h should be included via some other file, which is why it's not explicitly needed here, but that's the file that defines the functions you're choking on.
RE: Problem to build TVHeadend from latest Git checkout - Added by Prof Yaffle about 9 years ago
PS it builds okay on my x64 system, so I suspect it's something ARM-specific - an include that isn't doing what it should, perhaps. Either that or the build options I'm using are masking the problem.
RE: Problem to build TVHeadend from latest Git checkout - Added by Chef Denker about 9 years ago
Hi Prof Yaffle,
insert #incloude "tcp.h" does the trick. Now the "make" process complete and TVHeadend work again .
Thank you for your quick help
RE: Problem to build TVHeadend from latest Git checkout - Added by Prof Yaffle about 9 years ago
Thanks for confirming. Raised as issue #3094.