Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 81791 - mythtv-0.17 fails to compile with dvb
Summary: mythtv-0.17 fails to compile with dvb
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Television related Applications in Gentoo's Portage
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-12 14:56 UTC by ralph vater
Modified: 2005-02-13 11:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ralph vater 2005-02-12 14:56:38 UTC
Reproducible: Always
Steps to Reproduce:
1.ACCEPTED_KEYWORD="~x86" emerge mythtv (with USE="dvb")
2.
3.

Actual Results:  
g++ -c -pipe -Wall -W -O2 -march=i686 -pipe -fomit-frame-pointer -fno-pie 
`freetype-config --cflags` -D_REENTRANT -fPIC  -D_GNU_SOURCE 
-D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr\" -DMMX -DUSING_IVTV -DUSING_DVB 
-DUSING_DVB_EIT -DUSING_XRANDR -DUSING_XV -DQT_NO_DEBUG -DQT_THREAD_SUPPORT 
-I/usr/qt/3/mkspecs/linux-g++ -I. -I/usr/include -I/usr/include/linux/dvb 
-I../.. -I../libmyth -I.. -Idvbdev -Impeg -I../libavcodec -I../libmythmpeg2 
-I/usr/qt/3/include -o progfind.o progfind.cpp 
In file included from dvbchannel.h:20, 
                 from videosource.h:14, 
                 from videosource.cpp:2: 
dvbtypes.h:22:31: linux/dvb/version.h: No such file or directory 
dvbtypes.h:24:2: #error "DVB driver includes with API version 3 not found!" 
dvbtypes.h:31:32: linux/dvb/frontend.h: No such file or directory 
dvbtypes.h:32:27: linux/dvb/dmx.h: No such file or directory 
In file included from dvbchannel.h:20, 
                 from videosource.h:14, 
                 from videosource.cpp:2: 
dvbtypes.h:49: error: field `params' has incomplete type 
dvbtypes.h:50: error: 'fe_sec_voltage_t' is used as a type, but is not defined 
   as a type. 
dvbtypes.h:51: error: 'fe_sec_tone_mode_t' is used as a type, but is not 
   defined as a type. 
dvbtypes.h:84: error: 'fe_status_t' is used as a type, but is not defined as a 
   type. 
In file included from dvbchannel.h:21, 
                 from videosource.h:14, 
                 from videosource.cpp:2: 
dvbdiseqc.h:14:32: linux/dvb/frontend.h: No such file or directory 
In file included from dvbchannel.h:21, 
                 from videosource.h:14, 
                 from videosource.cpp:2: 
dvbdiseqc.h:35: error: type specifier omitted for parameter ` 
   dvb_diseqc_master_cmd' 
dvbdiseqc.h:35: error: parse error before `&' token 
dvbdiseqc.h:36: error: `dvb_diseqc_master_cmd' was not declared in this scope 
dvbdiseqc.h:36: error: `cmd' was not declared in this scope 
dvbdiseqc.h:36: error: invalid data member initialization 
dvbdiseqc.h:36: error: (use `=' to initialize static data members) 
dvbdiseqc.h:36: error: declaration of `bool DVBDiSEqC::SendDiSEqCMessage' 
dvbdiseqc.h:35: error: conflicts with previous declaration `bool 
   DVBDiSEqC::SendDiSEqCMessage(...)' 
In file included from videosource.h:14, 
                 from videosource.cpp:2: 
dvbchannel.h:39: error: parse error before `)' token 
dvbchannel.h: In function `void GetCurrentChannel(dvb_channel_t*&)': 
dvbchannel.h:50: error: `chan_opts' undeclared (first use this function) 
dvbchannel.h:50: error: (Each undeclared identifier is reported only once for 
   each function it appears in.) 
dvbchannel.h: In function `int GetCurrentTransportDBID()': 
dvbchannel.h:75: error: `currentTID' undeclared (first use this function) 
dvbchannel.h: In function `int GetCardNum()': 
dvbchannel.h:77: error: `cardnum' undeclared (first use this function) 
dvbchannel.h: At global scope: 
dvbchannel.h:85: error: parse error before `public' 
dvbchannel.h:92: error: parse error before `private' 
dvbchannel.h:100: error: `fe_modulation_t' was not declared in this scope 
dvbchannel.h:100: error: `modulation' was not declared in this scope 
dvbchannel.h:101: error: `fe_code_rate_t' was not declared in this scope 
dvbchannel.h:101: error: `rate' was not declared in this scope 
dvbchannel.h:118: error: 'dvb_frontend_info' is used as a type, but is not 
   defined as a type. 
dvbchannel.h:119: error: `dvb_channel_t chan_opts' used prior to declaration 
dvbchannel.h:122: error: `int cardnum' used prior to declaration 
dvbchannel.h:124: error: `int currentTID' used prior to declaration 
dvbchannel.h:130: error: parse error before `}' token 
videosource.cpp:16:32: linux/dvb/frontend.h: No such file or directory 
videosource.cpp: In static member function `static CardUtil::DVB_TYPES 
   CardUtil::cardDVBType(unsigned int, QString&)': 
videosource.cpp:64: error: aggregate `dvb_frontend_info info' has incomplete 
   type and cannot be defined 
videosource.cpp:66: error: `FE_GET_INFO' undeclared (first use this function) 
videosource.cpp:71: error: `FE_QAM' undeclared (first use this function) 
videosource.cpp:74: error: `FE_QPSK' undeclared (first use this function) 
videosource.cpp:77: error: `FE_OFDM' undeclared (first use this function) 
videosource.cpp: At top level: 
dvbchannel.h:110: warning: `void* SpawnSectionReader(void*)' declared `static' 
   but never defined 
dvbchannel.h:111: warning: `void* SpawnSIParser(void*)' declared `static' but 
   never defined 
make: *** [videosource.o] Error 1 
make: *** Waiting for unfinished jobs.... 
make: Leaving directory 
`/var/tmp/portage/mythtv-0.17/work/mythtv-0.17/libs/libmythtv' 


emerge info 
Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5, 
glibc-2.3.4.20040808-r1, 2.6.9-gentoo i686) 
================================================================= 
System uname: 2.6.9-gentoo i686 AMD Athlon(tm) Processor 
Gentoo Base System version 1.4.16 
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 12 2005, 
19:37:46)] 
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[disabled] 
dev-lang/python:     2.3.4-r1 
sys-devel/autoconf:  2.13, 2.59-r6 
sys-devel/automake:  1.5, 1.7.9-r1, 1.6.3, 1.8.5-r3, 1.4_p6, 1.9.4 
sys-devel/binutils:  2.15.92.0.2-r1 
sys-devel/libtool:   1.5.10-r4 
virtual/os-headers:  2.4.21-r1 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer" 
CHOST="i686-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/control /var/www/localhost/htdocs//mythweb/config" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" 
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ 
ftp://ftp6.uni-erlangen.de/pub/mirrors/gentoo 
ftp://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/ 
http://ftp.du.se/pub/os/gentoo" 
MAKEOPTS="-j9" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="x86 3dnow X alsa apache2 apm avi berkdb bitmap-fonts bzlib cdr crypt cups 
dga dvb dvd dvdr encode f77 fam font-server foomaticdb fortran gdbm gif gpm 
gtk2 imlib ipv6 jpeg libg++ libwww mad mikmod mmx motif mpeg mysql mysqli 
ncurses nls oggvorbis oss pam pdflib perl png python quicktime readline samba 
sdl shared slang spell ssl svga tcltk tcpd tiff truetype truetype-fonts 
type1-fonts usb xml2 xmms xosd xv xvid zlib zllib" 
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2005-02-13 08:18:36 UTC
I have no DVB equipment and nor does any other Gentoo dev so.. really.. no idea...

As far as the missing file goes... maybe you need to emerge linuxdvb? I dunno.

You're using the 2.4.x kernel headers on you system while running a 2.6.x kernel.

You might want to consider switching to linux26-headers. Because it looks like those headers provide the necessary files.
Comment 2 ralph vater 2005-02-13 11:47:38 UTC
thanks a lot,
after emerging kernel26-headers it works for me.
changing bug to fixed