Не могу создать модуль sf64pcr

Аватар пользователя slavikVA

Есть радиотюнер Fortemedia SF 64PCR, под него скачал архив для сборки модуля (ядро 2.6.18), распокавал запускаю make, а он при компиляции выдает ошибку:

make
make -C /lib/modules/2.6.18-4-686/build SUBDIRS=/home/anatolich/soft/sf64pcr-lin
ux2.6 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.18-4-686'
CC [M] /home/anatolich/soft/sf64pcr-linux2.6/radio-sf64pcr.o
/home/anatolich/soft/sf64pcr-linux2.6/radio-sf64pcr.c: In function ‘sf64pcr_func
tion’:
/home/anatolich/soft/sf64pcr-linux2.6/radio-sf64pcr.c:202: warning: implicit dec
laration of function ‘video_devdata’
/home/anatolich/soft/sf64pcr-linux2.6/radio-sf64pcr.c:202: warning: initializati
on makes pointer from integer without a cast
/home/anatolich/soft/sf64pcr-linux2.6/radio-sf64pcr.c:203: error: dereferencing
pointer to incomplete type
/home/anatolich/soft/sf64pcr-linux2.6/radio-sf64pcr.c:287: error: dereferencing
pointer to incomplete type
/home/anatolich/soft/sf64pcr-linux2.6/radio-sf64pcr.c: In function ‘sf64pcr_ioct
l’:
/home/anatolich/soft/sf64pcr-linux2.6/radio-sf64pcr.c:301: warning: initializati
on makes pointer from integer without a cast
/home/anatolich/soft/sf64pcr-linux2.6/radio-sf64pcr.c:302: error: dereferencing
pointer to incomplete type
/home/anatolich/soft/sf64pcr-linux2.6/radio-sf64pcr.c:306: warning: implicit dec
laration of function ‘video_usercopy’
/home/anatolich/soft/sf64pcr-linux2.6/radio-sf64pcr.c: At top level:
/home/anatolich/soft/sf64pcr-linux2.6/radio-sf64pcr.c:314: error: ‘video_exclusi
ve_open’ undeclared here (not in a function)
/home/anatolich/soft/sf64pcr-linux2.6/radio-sf64pcr.c:315: error: ‘video_exclusi
ve_release’ undeclared here (not in a function)
/home/anatolich/soft/sf64pcr-linux2.6/radio-sf64pcr.c:320: error: variable ‘sf64
pcr_radio’ has initializer but incomplete type
/home/anatolich/soft/sf64pcr-linux2.6/radio-sf64pcr.c:322: error: unknown field
‘owner’ specified in initializer
/home/anatolich/soft/sf64pcr-linux2.6/radio-sf64pcr.c:322: warning: excess eleme
nts in struct initializer
/home/anatolich/soft/sf64pcr-linux2.6/radio-sf64pcr.c:322: warning: (near initia
lization for ‘sf64pcr_radio’)
/home/anatolich/soft/sf64pcr-linux2.6/radio-sf64pcr.c:323: error: unknown field
‘name’ specified in initializer
/home/anatolich/soft/sf64pcr-linux2.6/radio-sf64pcr.c:323: warning: excess eleme
nts in struct initializer
/home/anatolich/soft/sf64pcr-linux2.6/radio-sf64pcr.c:323: warning: (near initia
lization for ‘sf64pcr_radio’)
/home/anatolich/soft/sf64pcr-linux2.6/radio-sf64pcr.c:324: error: unknown field
‘type’ specified in initializer
/home/anatolich/soft/sf64pcr-linux2.6/radio-sf64pcr.c:324: warning: excess eleme
nts in struct initializer
/home/anatolich/soft/sf64pcr-linux2.6/radio-sf64pcr.c:324: warning: (near initia
lization for ‘sf64pcr_radio’)
/home/anatolich/soft/sf64pcr-linux2.6/radio-sf64pcr.c:325: error: unknown field
‘hardware’ specified in initializer
/home/anatolich/soft/sf64pcr-linux2.6/radio-sf64pcr.c:325: warning: excess eleme
nts in struct initializer
/home/anatolich/soft/sf64pcr-linux2.6/radio-sf64pcr.c:325: warning: (near initia
lization for ‘sf64pcr_radio’)
/home/anatolich/soft/sf64pcr-linux2.6/radio-sf64pcr.c:326: error: unknown field
‘fops’ specified in initializer
/home/anatolich/soft/sf64pcr-linux2.6/radio-sf64pcr.c:326: warning: excess eleme
nts in struct initializer
/home/anatolich/soft/sf64pcr-linux2.6/radio-sf64pcr.c:326: warning: (near initia
lization for ‘sf64pcr_radio’)
/home/anatolich/soft/sf64pcr-linux2.6/radio-sf64pcr.c: In function ‘sf64pcr_prob e’:
/home/anatolich/soft/sf64pcr-linux2.6/radio-sf64pcr.c:351: error: invalid use of undefined type ‘struct video_device’
/home/anatolich/soft/sf64pcr-linux2.6/radio-sf64pcr.c:353: warning: implicit dec laration of function ‘video_register_device’
/home/anatolich/soft/sf64pcr-linux2.6/radio-sf64pcr.c:353: error: ‘VFL_TYPE_RADI O’ undeclared (first use in this function)
/home/anatolich/soft/sf64pcr-linux2.6/radio-sf64pcr.c:353: error: (Each undeclar ed identifier is reported only once
/home/anatolich/soft/sf64pcr-linux2.6/radio-sf64pcr.c:353: error: for each funct ion it appears in.)
/home/anatolich/soft/sf64pcr-linux2.6/radio-sf64pcr.c:359: error: invalid use of undefined type ‘struct video_device’
/home/anatolich/soft/sf64pcr-linux2.6/radio-sf64pcr.c: In function ‘sf64pcr_remo ve’:
/home/anatolich/soft/sf64pcr-linux2.6/radio-sf64pcr.c:373: warning: implicit dec laration of function ‘video_unregister_device’
make[2]: *** [/home/anatolich/soft/sf64pcr-linux2.6/radio-sf64pcr.o] Ошибка 1
make[1]: *** [_module_/home/anatolich/soft/sf64pcr-linux2.6] Ошибка 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.18-4-686'
make: *** [default] Ошибка 2
:-?

RSS-материал