Project

General

Profile

Bug #1195

Compile error (In function 'dvb_adapter_start')

Added by Randy M about 12 years ago. Updated about 12 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
Category:
DVB
Target version:
-
Start date:
2012-09-03
Due date:
% Done:

100%

Estimated time:
Found in version:
3.1
Affected Versions:

Description

With most recent commit i'm getting the following error:
https://github.com/tvheadend/tvheadend/commit/ebf95d795155329375970c37ee993fc2e55570e9

CC build.linux/src/dvb/dvb_support.o
CC build.linux/src/dvb/dvb_fe.o
CC build.linux/src/dvb/dvb_tables.o
CC build.linux/src/dvb/diseqc.o
CC build.linux/src/dvb/dvb_adapter.o
cc1: warnings being treated as errors
/home/openelec/spksrc/spk/tvheadend/work-88f6281/tvheadend-tvheadend-ebf95d7/src/dvb/dvb_adapter.c: In function 'dvb_adapter_start':
/home/openelec/spksrc/spk/tvheadend/work-88f6281/tvheadend-tvheadend-ebf95d7/src/dvb/dvb_adapter.c:463: warning: implicit declaration of function 'pipe2'
/home/openelec/spksrc/spk/tvheadend/work-88f6281/tvheadend-tvheadend-ebf95d7/src/dvb/dvb_adapter.c:463: error: 'O_CLOEXEC' undeclared (first use in this function)
/home/openelec/spksrc/spk/tvheadend/work-88f6281/tvheadend-tvheadend-ebf95d7/src/dvb/dvb_adapter.c:463: error: (Each undeclared identifier is reported only once
/home/openelec/spksrc/spk/tvheadend/work-88f6281/tvheadend-tvheadend-ebf95d7/src/dvb/dvb_adapter.c:463: error: for each function it appears in.)
make3: * [build.linux/src/dvb/dvb_adapter.o] Error 1
make3: Leaving directory `/home/openelec/spksrc/spk/tvheadend/work-88f6281/tvheadend-tvheadend-ebf95d7'
make2:
[compile_target] Error 2
make2: Leaving directory `/home/openelec/spksrc/cross/tvheadend'
make1:
[depend_target] Error 2
make1: Leaving directory `/home/openelec/spksrc/spk/tvheadend'
make: *
[tvheadend] Error 2


Files

t.patch (993 Bytes) t.patch Adam Sutton, 2012-09-03 12:45

History

#1

Updated by Adam Sutton about 12 years ago

Randy,

can you try this patch, clearly I should have stayed well away from pipe2() due to limited support cross platform.

Adam

#2

Updated by Adam Sutton about 12 years ago

  • Status changed from New to Accepted
  • Assignee changed from Hein Rigolo to Adam Sutton
#3

Updated by Randy M about 12 years ago

Thanks Adam, patch seems to solve the problem.

#4

Updated by Adam Sutton about 12 years ago

Ta,

I'll push it to git master soon.

Adam

#5

Updated by Adam Sutton about 12 years ago

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

Applied in changeset commit:77398b8726bb8b56f8004876fc00439133b08cc2.

Also available in: Atom PDF