Thanks for the quick response, i am trying the first link that you gave me, the one from mythtv and i dont know what to do for this
urpmi kernel-source
it says change it for your distribution so what do i make it? for fedora core 3?
EDIT: i tried both ways, and now i am lost
*1st way*
If i do the rest up to make i get this error
Code:
[root@jfm5005 driver]# make
gcc -D__KERNEL__ -D__KERNEL_SYSCALLS__ -DMODULE -DMODVERSIONS -I/lib/modules/2.6.10-1.741_FC3/build/include -O2 -fomit-frame-pointer -march=i586 -mcpu=i586 -fno-strict-aliasing -Wno-unused -include /lib/modules/2.6.10-1.741_FC3/build/include/linux/modversions.h -c -o msp3400.o msp3400.c
cc1: /lib/modules/2.6.10-1.741_FC3/build/include/linux/modversions.h: No such file or directory
In file included from /lib/modules/2.6.10-1.741_FC3/build/include/linux/irq.h:21,
from /lib/modules/2.6.10-1.741_FC3/build/include/asm/hardirq.h:6,
from /lib/modules/2.6.10-1.741_FC3/build/include/linux/hardirq.h:6,
from /lib/modules/2.6.10-1.741_FC3/build/include/linux/delay.h:13,
from msp3400.c:43:
/lib/modules/2.6.10-1.741_FC3/build/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory
In file included from /lib/modules/2.6.10-1.741_FC3/build/include/asm/hardirq.h:6,
from /lib/modules/2.6.10-1.741_FC3/build/include/linux/hardirq.h:6,
from /lib/modules/2.6.10-1.741_FC3/build/include/linux/delay.h:13,
from msp3400.c:43:
/lib/modules/2.6.10-1.741_FC3/build/include/linux/irq.h:71: error: `NR_IRQS' undeclared here (not in a function)
In file included from /lib/modules/2.6.10-1.741_FC3/build/include/linux/irq.h:73,
from /lib/modules/2.6.10-1.741_FC3/build/include/asm/hardirq.h:6,
from /lib/modules/2.6.10-1.741_FC3/build/include/linux/hardirq.h:6,
from /lib/modules/2.6.10-1.741_FC3/build/include/linux/delay.h:13,
from msp3400.c:43:
/lib/modules/2.6.10-1.741_FC3/build/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS' undeclared here (not in a function)
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:765: error: structure has no member named `sigmask_lock'
msp3400.c:765: error: structure has no member named `sigmask_lock'
msp3400.c:765: error: structure has no member named `sigmask_lock'
msp3400.c:765: error: structure has no member named `sigmask_lock'
msp3400.c:765: error: structure has no member named `sigmask_lock'
msp3400.c:765: error: structure has no member named `sigmask_lock'
msp3400.c:765: error: structure has no member named `sigmask_lock'
msp3400.c:765: error: structure has no member named `sigmask_lock'
msp3400.c:765: error: structure has no member named `sigmask_lock'
msp3400.c:765: error: structure has no member named `sigmask_lock'
msp3400.c:765: error: structure has no member named `sigmask_lock'
msp3400.c:767: error: structure has no member named `sigmask_lock'
msp3400.c:767: error: structure has no member named `sigmask_lock'
msp3400.c:767: error: structure has no member named `sigmask_lock'
msp3400.c:767: error: structure has no member named `sigmask_lock'
msp3400.c:767: error: structure has no member named `sigmask_lock'
msp3400.c:767: error: structure has no member named `sigmask_lock'
msp3400.c:767: error: structure has no member named `sigmask_lock'
msp3400.c:767: error: structure has no member named `sigmask_lock'
msp3400.c:781: warning: `interruptible_sleep_on' is deprecated (declared at /lib/modules/2.6.10-1.741_FC3/build/include/linux/wait.h:310)
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:1018: error: structure has no member named `sigmask_lock'
msp3400.c:1018: error: structure has no member named `sigmask_lock'
msp3400.c:1018: error: structure has no member named `sigmask_lock'
msp3400.c:1018: error: structure has no member named `sigmask_lock'
msp3400.c:1018: error: structure has no member named `sigmask_lock'
msp3400.c:1018: error: structure has no member named `sigmask_lock'
msp3400.c:1018: error: structure has no member named `sigmask_lock'
msp3400.c:1018: error: structure has no member named `sigmask_lock'
msp3400.c:1018: error: structure has no member named `sigmask_lock'
msp3400.c:1018: error: structure has no member named `sigmask_lock'
msp3400.c:1018: error: structure has no member named `sigmask_lock'
msp3400.c:1020: error: structure has no member named `sigmask_lock'
msp3400.c:1020: error: structure has no member named `sigmask_lock'
msp3400.c:1020: error: structure has no member named `sigmask_lock'
msp3400.c:1020: error: structure has no member named `sigmask_lock'
msp3400.c:1020: error: structure has no member named `sigmask_lock'
msp3400.c:1020: error: structure has no member named `sigmask_lock'
msp3400.c:1020: error: structure has no member named `sigmask_lock'
msp3400.c:1020: error: structure has no member named `sigmask_lock'
msp3400.c:1035: warning: `interruptible_sleep_on' is deprecated (declared at /lib/modules/2.6.10-1.741_FC3/build/include/linux/wait.h:310)
msp3400.c: In function `msp_attach':
msp3400.c:1282: error: structure has no member named `data'
msp3400.c:1333: error: `MOD_INC_USE_COUNT' undeclared (first use in this function)
msp3400.c:1333: error: (Each undeclared identifier is reported only once
msp3400.c:1333: error: for each function it appears in.)
msp3400.c: In function `msp_detach':
msp3400.c:1357: error: structure has no member named `data'
msp3400.c:1383: error: `MOD_DEC_USE_COUNT' undeclared (first use in this function)
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
*2nd Way*
downloadeed bttv un compressed it and then ran make KDIR=.......
long story short i get this error, i coppied my command too
Code:
[root@jfm5005 bttv]# make KDIR=/lib/modules/2.6.10-1.741_FC3/build
make -C /lib/modules/2.6.10-1.741_FC3/build SUBDIRS=/home/jon/bttv modules
make[1]: Entering directory `/lib/modules/2.6.10-1.741_FC3/build'
CC [M] /home/jon/bttv/video-buf.o
CC [M] /home/jon/bttv/v4l1-compat.o
CC [M] /home/jon/bttv/v4l2-common.o
CC [M] /home/jon/bttv/btcx-risc.o
CC [M] /home/jon/bttv/ir-common.o
CC [M] /home/jon/bttv/bttv-driver.o
/home/jon/bttv/bttv-driver.c: In function `bttv_suspend':
/home/jon/bttv/bttv-driver.c:3956: error: too many arguments to function `pci_save_state'
/home/jon/bttv/bttv-driver.c: In function `bttv_resume':
/home/jon/bttv/bttv-driver.c:3977: error: too many arguments to function `pci_restore_state'
make[2]: *** [/home/jon/bttv/bttv-driver.o] Error 1
make[1]: *** [_module_/home/jon/bttv] Error 2
make[1]: Leaving directory `/lib/modules/2.6.10-1.741_FC3/build'
make: *** [default] Error 2