sklnet / vtuner

Automatically exported from code.google.com/p/vtuner
0 stars 0 forks source link

linux-headers-3.8.0-2-generic #30

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Under the 3.8.0 Kernel vtunerc_main.c fails to compile as the #include 
"demux.h" fails to resolve to a the correct directory / file.

I think this is due to the uapi kernel split since 3.7. gcc -V option does 
appear to have the right paths to uapi though. See log below. 

phill@compaq:~/vtuner.linux-driver$ make 
KDIR=/usr/src/linux-headers-3.8.0-2-generic V=1
make -C /usr/src/linux-headers-3.8.0-2-generic 
SUBDIRS=/home/phill/vtuner.linux-driver modules
make[1]: Entering directory `/usr/src/linux-headers-3.8.0-2-generic'
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (        \
    echo >&2;                           \
    echo >&2 "  ERROR: Kernel configuration is invalid.";       \
    echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
    echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";  \
    echo >&2 ;                          \
    /bin/false)
mkdir -p /home/phill/vtuner.linux-driver/.tmp_versions ; rm -f 
/home/phill/vtuner.linux-driver/.tmp_versions/*
make -f scripts/Makefile.build obj=/home/phill/vtuner.linux-driver
  gcc -Wp,-MD,/home/phill/vtuner.linux-driver/.vtunerc_main.o.d  -nostdinc -isystem /usr/lib/gcc/i686-linux-gnu/4.7/include  -I/usr/src/linux-headers-3.8.0-2-generic/arch/x86/include -Iarch/x86/include/generated  -Iinclude -I/usr/src/linux-headers-3.8.0-2-generic/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-headers-3.8.0-2-generic/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-headers-3.8.0-2-generic/include/linux/kconfig.h -Iubuntu/include  -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -fno-pic -mpreferred-stack-boundary=2 -march=i686 -mtune=generic -maccumulate-outgoing-args -Wa,-mtune=generic32 -ffreestanding -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=1024 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -Idrivers/media/dvb/dvb-core -Idrivers/media/dvb/frontends -Idrivers/media/common/tuners -Iinclude -DVTUNERC_MAX_ADAPTERS=4  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(vtunerc_main)"  -D"KBUILD_MODNAME=KBUILD_STR(vtunerc)" -c -o /home/phill/vtuner.linux-driver/.tmp_vtunerc_main.o /home/phill/vtuner.linux-driver/vtunerc_main.c
/home/phill/vtuner.linux-driver/vtunerc_main.c:26:29: fatal error: 
linux/dvb/demux.h: No such file or directory
compilation terminated.
make[2]: *** [/home/phill/vtuner.linux-driver/vtunerc_main.o] Error 1
make[1]: *** [_module_/home/phill/vtuner.linux-driver] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.8.0-2-generic'
make: *** [default] Error 2
phill@compaq:~/vtuner.linux-driver$ 

Original issue reported on code.google.com by laven...@gmail.com on 27 Jan 2013 at 9:52

GoogleCodeExporter commented 9 years ago
Just in case.. dvb_core module is installed..

phill@compaq:~$ lsmod | grep dvb_core
dvb_core               90402  2 cx88_dvb,videobuf_dvb

Original comment by laven...@gmail.com on 27 Jan 2013 at 10:34

GoogleCodeExporter commented 9 years ago
As suggested by _jata_ in forum, add the line to the Makefile
(http://www.nessiedvb.org/forum/viewtopic.php?f=11&t=3&p=311#p311):

    --- Makefile.orig       2013-02-07 13:09:14.903314119 +0100
    +++ Makefile    2013-02-07 13:09:31.158134414 +0100
    @@ -11,6 +11,7 @@
     obj-$(CONFIG_DVB_VTUNERC) += vtunerc.o

     ccflags-y += -Idrivers/media/dvb/dvb-core
    +ccflags-y += -Idrivers/media/dvb-core
     ccflags-y += -Idrivers/media/dvb/frontends
     ccflags-y += -Idrivers/media/common/tuners
     ccflags-y += -Iinclude

/Honza

Original comment by jpetrous on 2 Apr 2013 at 11:50

GoogleCodeExporter commented 9 years ago
Fixed in the repository.

/Honza

Original comment by jpetrous on 2 Apr 2013 at 12:05