Bug #737
tvheadend won't compile
| Status: | Fixed | Start date: | 10/06/2011 | |
|---|---|---|---|---|
| Priority: | Urgent | Due date: | ||
| Assignee: | - | % Done: | 100% | |
| Category: | - | |||
| Target version: | - | |||
| 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 ?
Associated revisions
Build TVH even if SYS_DVBS does not exist
Fixes #737
History
#1
Updated by Jouk Hettema - over 1 year 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 over 1 year 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 over 1 year 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
#4
Updated by David Magniez over 1 year ago
- File 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#5
Updated by Andreas Öman over 1 year ago
- Status changed from New to Fixed
- % Done changed from 0 to 100
Applied in changeset 089f60ddf42d3f7e325f9104cf1620d4c6572abb.