Bug #737
tvheadend won't compile
100%
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
History
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
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
Updated by Hein Rigolo about 13 years ago
A change was made to the dvb_preconf.c code with the following diff:
That added the line that is causing your compile to fail. Not sure why a SYS_DVBS is not defined in your case.
Hein
Updated by David Magniez about 13 years ago
- File oldkernelsupport.diff oldkernelsupport.diff added
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
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.