Problems compiling ivtv
I'm trying to compile the ivtv driver on my dual opteron with 2.6.5-7.111.5-smp If I edit the Makefile to have -march=opteron -mcpu=opteron, I get:- gcc -D__KERNEL__ -D__KERNEL_SYSCALLS__ -DMODULE -DMODVERSIONS -I/lib/modules/2.6.5-7.111.5-smp/build/include -O2 -fomit-frame-pointer -march=opteron -mcpu=opteron -fno-strict-aliasing -Wno-unused -include /lib/modules/2.6.5-7.111.5-smp/build/include/linux/modversions.h -DNEW_I2C -c -o msp3400.o msp3400.c cc1: error: bad value (opteron) for -march= switch cc1: error: bad value (opteron) for -mcpu= switch make: *** [msp3400.o] Error 1 I note that /lib/modules/2.6.5-7.111.5-smp/build/include/linux/modversions.h doesn't exist. If I edit the Makefile to have -march=k8 -mcpu=k8, I get:- gcc -D__KERNEL__ -D__KERNEL_SYSCALLS__ -DMODULE -DMODVERSIONS -I/lib/modules/2.6.5-7.111.5-smp/build/include -O2 -fomit-frame-pointer -march=k8 -mcpu=k8 -fno-strict-aliasing -Wno-unused -include /lib/modules/2.6.5-7.111.5-smp/build/include/linux/modversions.h -DNEW_I2C -c -o msp3400.o msp3400.c<command line>:10323939:1: /lib/modules/2.6.5-7.111.5-smp/build/include/linux/modversions.h: No such file or directory In file included from /usr/include/linux/videodev2.h:904, from /usr/include/linux/videodev.h:8, from msp3400.c:46: /usr/include/linux/fs.h: In function `file_accessed': /usr/include/linux/fs.h:977: error: `O_NOATIME' undeclared (first use in this function)/usr/include/linux/fs.h:977: error: (Each undeclared identifier is reported only once/usr/include/linux/fs.h:977: error: for each function it appears in.) 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 /usr/include/linux/module.h:516) 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 /usr/include/linux/module.h:528) 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 Can anyone suggest what needs to be done? Thanks. - Richard. -- Richard Kimber http://www.psr.keele.ac.uk/
participants (1)
-
rkimber@ntlworld.com