LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ivtv driver (https://www.linuxquestions.org/questions/linux-software-2/ivtv-driver-258685/)

j0han 11-24-2004 02:57 AM

ivtv driver
 
Hey!

I know there have been threads about the "same" problem, but can't get it to work.. :/ maby someone can help me?

Running Debian Sarge custom 2.6.8

Getting this error all the time trying to compile the ivtv driver :/
using an WinTV-PVR 350.

~/ivtv/driver$ make clean
rm -f *.o *~ core

~/ivtv/driver$ make
gcc -D__KERNEL__ -D__KERNEL_SYSCALLS__ -DMODULE -DMODVERSIONS -I/lib/modules/2.6.8-20041123/build/include -O2 -fomit-frame-pointer -march=i586 -mcpu=i586 -fno-strict-aliasing -Wno-unused -include /lib/modules/2.6.8-20041123/build/include/linux/modversions.h -c -o msp3400.o msp3400.c
<command line>:138473769:61808: /lib/modules/2.6.8-20041123/build/include/linux/modversions.h: No such file or directory
msp3400.c: In function `msp3400c_set_scart':
msp3400.c:344: error: structure has no member named `data'
msp3400.c: In function `msp3400c_setmode':
msp3400.c:408: error: structure has no member named `data'
msp3400.c: In function `msp3400c_setstereo':
msp3400.c:481: error: structure has no member named `data'
msp3400.c: In function `msp3400c_restore_dfp':
msp3400.c:609: error: structure has no member named `data'
msp3400.c: In function `autodetect_stereo':
msp3400.c:637: error: structure has no member named `data'
msp3400.c: In function `watch_stereo':
msp3400.c:737: error: structure has no member named `data'
msp3400.c: In function `msp3400c_thread':
msp3400.c:756: error: structure has no member named `data'
msp3400.c:761: error: too few arguments to function `daemonize'
msp3400.c:765: error: structure has no member named `sigmask_lock'
msp3400.c:767: error: structure has no member named `sigmask_lock'
msp3400.c: In function `msp3410d_thread':
msp3400.c:1011: error: structure has no member named `data'
msp3400.c:1014: error: too few arguments to function `daemonize'
msp3400.c:1018: error: structure has no member named `sigmask_lock'
msp3400.c:1020: error: structure has no member named `sigmask_lock'
msp3400.c: In function `msp_attach':
msp3400.c:1282: error: structure has no member named `data'
msp3400.c:1333: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /lib/modules/2.6.8-20041123/build/include/linux/module.h:555)
msp3400.c: In function `msp_detach':
msp3400.c:1357: error: structure has no member named `data'
msp3400.c:1383: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /lib/modules/2.6.8-20041123/build/include/linux/module.h:567)
msp3400.c: In function `msp_probe':
msp3400.c:1390: warning: passing arg 3 of `i2c_probe' from incompatible pointer type
msp3400.c: In function `msp_wake_thread':
msp3400.c:1396: error: structure has no member named `data'
msp3400.c: In function `msp_command':
msp3400.c:1408: error: structure has no member named `data'
make: *** [msp3400.o] Error 1

Thanks in advice,
/Johan

rjlee 11-24-2004 03:38 AM

/lib/modules/2.6.8-20041123/build/include/linux/modversions.h

This file is missing, which is also (probably) causing the other errors you are seeing. Check where the file modversions.h is (try using locate) and change the path to this file (either edit the makefile, or recompile this file by hand using the gcc line, changing the path to this file).

This file is part of your kernel configuration, so it would probably help to have the kernel installed, and do a
Code:

make cloneconfig
from the kernel-source's top-level directory (usually /usr/src/linux)

j0han 11-24-2004 06:14 AM

Helped me abit.. but still having the "msp3400.c:609: error: structure has no member named `data'" etc errors :/

Electro 11-24-2004 03:38 PM

I got the same probem, so I looked in the file msp3400.c and saw msp3400.h and audochip.h. They need to be in the same directory as msp3400.c or else you have to edit it. I copied *.h (headers) from the utils directory to the driver directory. I said this in eariler post. You need to make sure /usr/src/linux is linked to the source code of your kernel.

BTW, do not forget to extract the firmware too.

j0han 12-01-2004 01:45 AM

Hey,

Made it easy for me. Installed FC3 and followed this howto -> http://www.wilsonet.com/mythtv/fcmyth.php


All times are GMT -5. The time now is 11:42 AM.