Project

General

Profile

Bug #4947

tvhpoll.c error when running make

Added by Chris Vaughan almost 7 years ago. Updated almost 7 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
Configuration
Target version:
-
Start date:
2018-02-18
Due date:
% Done:

100%

Estimated time:
Found in version:
4.3-1076~g8da9814f7
Affected Versions:

Description

I have very little experience with building binaries so apologies if this makes no sense... Trying to build tvheadend on Mac OS 10.13.3, when running make, I get 4 errors relating to src/tvhpoll.c. The output is:

/Library/Developer/CommandLineTools/usr/bin/make -f Makefile.webui LANGUAGES="ach ady ar bg cs da de en_US en_GB es et fa fi fr he hr hu it ko lv lt nl no pl pt ro ru sl sk sq sv tr uk zh zh-Hans" all
/Library/Developer/CommandLineTools/usr/bin/make -f Makefile.webui WEBUI=std compile-std
WEBUI std finished
/Library/Developer/CommandLineTools/usr/bin/make -f Makefile.webui WEBUI=debug compile-debug
WEBUI debug finished
make: *** No rule to make target `src/tvhpoll.c', needed by `/Users/v/Movies/tvheadend/build.darwin/src/tvhpoll.o'. Stop.
vMini:tvheadend v$ make
/Library/Developer/CommandLineTools/usr/bin/make -f Makefile.webui LANGUAGES="ach ady ar bg cs da de en_US en_GB es et fa fi fr he hr hu it ko lv lt nl no pl pt ro ru sl sk sq sv tr uk zh zh-Hans" all
/Library/Developer/CommandLineTools/usr/bin/make -f Makefile.webui WEBUI=std compile-std
WEBUI std finished
/Library/Developer/CommandLineTools/usr/bin/make -f Makefile.webui WEBUI=debug compile-debug
WEBUI debug finished
CC src/tvhpoll.o
src/tvhpoll.c:193:17: error: initializing 'struct kevent' with an expression of incompatible
type 'void *'
struct kevent ev = alloca(EV_SIZE * num * 2);
~~~~~~~~~~~~~~~~~~~~~~~
src/tvhpoll.c:199:19: error: use of undeclared identifier 'ovents'
if (events ovents) continue;

src/tvhpoll.c:200:5: error: implicit declaration of function 'tvhpoll_set_evbits' is invalid in
C99 [-Werror,-Wimplicit-function-declaration]
tvhpoll_set_evbits(tp, fd, events);

src/tvhpoll.c:200:5: note: did you mean 'tvhpoll_set_events'?
src/tvhpoll.c:90:1: note: 'tvhpoll_set_events' declared here
tvhpoll_set_events ( tvhpoll_t *tp, int fd, uint32_t events )

src/tvhpoll.c:201:44: error: expected expression
if (events & (TVHPOLL_OUT|TVHPOLL_IN)) (TVHPOLL_OUT|TVHPOLL_IN)) {

4 errors generated.

Posting here as a last resort, any help is greatly appreciated.

History

#1

Updated by Jaroslav Kysela almost 7 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Applied in changeset commit:tvheadend|c52ae66c7dd38ab86f6825c9ee66928e45b7076b.

Also available in: Atom PDF