Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linux-dvb] Can't compile saa7146_fops.c
Hello world,
I'm trying to prepare my computer for a new Hauppauge Nova-T card
(yes, I know I should have looked out for the older, better-supported
version... and I did try, but the &#%^$ vendor posted a misleading
image of the thing). From lurking here, I inferred that I would need
- recent kernel 2.6.9
- current video4linux version
- dvb-kernel CVS tree instead of the drivers from the stock kernel
so I got them and started compiling. This is how far I got:
# get kernel source
cd /usr/src
tar xvjf ~/net/Linux/kernel/linux-2.6.9.tar.bz2
cd linux-2.6.9
# apply v4l patch
patch -p1 < ~/net/hardware/DVB-T/bytesex/All-2.6.9-rc4.dif
zcat /proc/config.gz > .config
make oldconfig
# choose M for all the DVB driver thingies
echo -dvbt > localversion
cd ..
mv linux-2.6.9 linux-2.6.9-dvbt
cd linux-2.6.9-dvbt
make
VERSION=$(basename `pwd` | sed s/linux-//)
make modules_install
cp System.map /boot/System.map-$VERSION
cp arch/i386/boot/bzImage /boot/vmlinuz-$VERSION
gnuclient /boot/grub/menu.lst
init 6
# build dvb-kernel modules
tar xvjf ~/net/hardware/DVB-T/linuxtv/dvb-kernel.tar.bz2
cd dvb-kernel/build-2.6
make
This make fails:
CC [M] /usr/src/dvb-kernel/build-2.6/saa7146_fops.o
/usr/src/dvb-kernel/build-2.6/saa7146_fops.c: In function `fops_poll':
/usr/src/dvb-kernel/build-2.6/saa7146_fops.c:361: warning: passing arg 3 of `videobuf_poll_stream' from incompatible pointer type
/usr/src/dvb-kernel/build-2.6/saa7146_fops.c:361: error: too few arguments to function `videobuf_poll_stream'
make[2]: *** [/usr/src/dvb-kernel/build-2.6/saa7146_fops.o] Error 1
make[1]: *** [_module_/usr/src/dvb-kernel/build-2.6] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.9-dvbt'
make: *** [all] Error 2
It seems to me that several places check the kernel version via
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10))
to see whether to call the three-argument or the four-argument version
of functions. But as far as I can see the change to video_buf.h
happened between 2.6.8 and 2.6.9, not 2.6.10. Should the 10 here read 9,
or do I have a wrong version of something? Or am I terribly
misunderstanding something entirely other?
--
Kilian Foth Phone +49 40 42883-2518
AB NATS, FB Informatik Fax +49 40 42883-2515
Universität Hamburg
Vogt-Kölln-Str. 30
22527 Hamburg
Home |
Main Index |
Thread Index