Project

General

Profile

Bug #737

tvheadend won't compile

Added by David Magniez about 13 years ago. Updated about 13 years ago.

Status:
Fixed
Priority:
Urgent
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-10-06
Due date:
% Done:

100%

Estimated time:
Found in version:
revision c88a6469
Affected Versions:

Description

Hello,

I can't compile tvheadend last git release :

make: * [build.Linux/src/dvb/dvb_preconf.o] Erreur 1
serveur:/usr/src/tvheadend_sept/tvheadend# make
CC build.Linux/src/dvb/dvb_preconf.o
/usr/src/tvheadend_sept/tvheadend/src/dvb/dvb_preconf.c: In function ‘dvb_mux_preconf_add’:
/usr/src/tvheadend_sept/tvheadend/src/dvb/dvb_preconf.c:67: error: ‘struct dvb_mux_conf’ has no member named ‘dmc_fe_delsys’
/usr/src/tvheadend_sept/tvheadend/src/dvb/dvb_preconf.c:67: error: ‘SYS_DVBS’ undeclared (first use in this function)
/usr/src/tvheadend_sept/tvheadend/src/dvb/dvb_preconf.c:67: error: (Each undeclared identifier is reported only once
/usr/src/tvheadend_sept/tvheadend/src/dvb/dvb_preconf.c:67: error: for each function it appears in.)
make: *
[build.Linux/src/dvb/dvb_preconf.o] Erreur 1

Is something missing ? dependency not checked in configure step ?


Files

oldkernelsupport.diff (409 Bytes) oldkernelsupport.diff patch to correct undefined variable appeared after kernel 2.6.28 David Magniez, 2011-10-11 23:31

History

#1

Updated by Jouk Hettema - about 13 years ago

Hi David,

with all the different flavours (distributions) of Linux out there it could come in handy if you mentioned the distribution you try this on. I compiled this version about 3 days ago on centos-5/centos-6/fedora-13/fedora-14/fedora-15 32/64 bit and they all went ok.

kind regards

Jouk

#2

Updated by David Magniez about 13 years ago

Hi,

Of course, I'm idiot !

I'm running debian lenny with pinning for some packets

david@server:~$ gcc --version
gcc (GCC) 4.1.3 20080704 (prerelease) (Debian 4.1.2-25)
david@server:~$ uname -a
Linux server 2.6.26-2-amd64 #1 SMP Thu Sep 16 15:56:38 UTC 2010 x86_64 GNU/Linux

#3

Updated by Hein Rigolo about 13 years ago

A change was made to the dvb_preconf.c code with the following diff:

https://www.lonelycoder.com/redmine/projects/tvheadend/repository/diff/src/dvb/dvb_preconf.c?rev=45281ce0c3b684a7ecbf6a11a026707958cb86d6&rev_to=42adea653d7e08162e614958ab9827d10f86677b

That added the line that is causing your compile to fail. Not sure why a SYS_DVBS is not defined in your case.

Hein

#4

Updated by David Magniez about 13 years ago

ok, thanks Hein !
just deleting this line resolve dependency with S2API which is included since kernel 2.6.28

can we make a kernel version check or something else for better support with older kernel ?

I think about this sort of code (which is working for me) but maybe a better check exist ?

#ifdef SYS_DVBS
dmc.dmc_fe_delsys = SYS_DVBS;
#endif
#5

Updated by Andreas Smas about 13 years ago

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

Applied in changeset commit:089f60ddf42d3f7e325f9104cf1620d4c6572abb.

Also available in: Atom PDF