Hi!

First of all sorry for my bad english.

I have some trouble compiling the ivtv driver on Novell
Linux Desktop.
The details:
It is a pvr150, and works fine on Debian Sarge, with kernel
2.4.30
On NLD I'm using the stock kernel, 2.6.5-7.145-default
the kernel source is installed, as the developement tools
(alotof -devel package, pure waste of hd space)
no other kernel, or kernel source is installed

When I try to compile it says:

ayanami:/usr/local/src/ivtv-0.3.7c/driver # make
make CONFIG_VIDEO_IVTV=m -C
/lib/modules/2.6.5-7.145-default/build M=/usr/local
src/ivtv-0.3.7c/driver modules
make[1]: Entering directory
`/usr/src/linux-2.6.5-7.145-obj/i386/default'
make -C ../../../linux-2.6.5-7.145
O=../linux-2.6.5-7.145-obj/i386/default modu
es
  CC [M]  /usr/local/src/ivtv-0.3.7c/driver/msp3400.o
/usr/local/src/ivtv-0.3.7c/driver/msp3400.c:138: error:
parse error before "int
/usr/local/src/ivtv-0.3.7c/driver/msp3400.c:138: warning:
type defaults to `int
 in declaration of `module_param'
/usr/local/src/ivtv-0.3.7c/driver/msp3400.c:138: warning:
function declaration 
sn't a prototype
/usr/local/src/ivtv-0.3.7c/driver/msp3400.c:138: warning:
data definition has n
 type or storage class
/usr/local/src/ivtv-0.3.7c/driver/msp3400.c:139: error:
parse error before "int
/usr/local/src/ivtv-0.3.7c/driver/msp3400.c:139: warning:
type defaults to `int
 in declaration of `module_param'
/usr/local/src/ivtv-0.3.7c/driver/msp3400.c:139: warning:
function declaration 
sn't a prototype
/usr/local/src/ivtv-0.3.7c/driver/msp3400.c:139: warning:
data definition has n
 type or storage class
/usr/local/src/ivtv-0.3.7c/driver/msp3400.c:140: error:
parse error before "int
/usr/local/src/ivtv-0.3.7c/driver/msp3400.c:140: warning:
type defaults to `int
 in declaration of `module_param'
/usr/local/src/ivtv-0.3.7c/driver/msp3400.c:140: warning:
function declaration 
sn't a prototype
/usr/local/src/ivtv-0.3.7c/driver/msp3400.c:140: warning:
data definition has n
 type or storage class
/usr/local/src/ivtv-0.3.7c/driver/msp3400.c:141: error:
parse error before "int
/usr/local/src/ivtv-0.3.7c/driver/msp3400.c:141: warning:
type defaults to `int
 in declaration of `module_param'
/usr/local/src/ivtv-0.3.7c/driver/msp3400.c:141: warning:
function declaration 
sn't a prototype
/usr/local/src/ivtv-0.3.7c/driver/msp3400.c:141: warning:
data definition has n
 type or storage class
/usr/local/src/ivtv-0.3.7c/driver/msp3400.c:142: error:
parse error before "int
/usr/local/src/ivtv-0.3.7c/driver/msp3400.c:142: warning:
type defaults to `int
 in declaration of `module_param'
/usr/local/src/ivtv-0.3.7c/driver/msp3400.c:142: warning:
function declaration 
sn't a prototype
/usr/local/src/ivtv-0.3.7c/driver/msp3400.c:142: warning:
data definition has n
 type or storage class
/usr/local/src/ivtv-0.3.7c/driver/msp3400.c:143: error:
parse error before "int
/usr/local/src/ivtv-0.3.7c/driver/msp3400.c:143: warning:
type defaults to `int
 in declaration of `module_param'
/usr/local/src/ivtv-0.3.7c/driver/msp3400.c:143: warning:
function declaration 
sn't a prototype
/usr/local/src/ivtv-0.3.7c/driver/msp3400.c:143: warning:
data definition has n
 type or storage class
/usr/local/src/ivtv-0.3.7c/driver/msp3400.c:144: error:
parse error before "int
/usr/local/src/ivtv-0.3.7c/driver/msp3400.c:144: warning:
type defaults to `int
 in declaration of `module_param'
/usr/local/src/ivtv-0.3.7c/driver/msp3400.c:144: warning:
function declaration 
sn't a prototype
/usr/local/src/ivtv-0.3.7c/driver/msp3400.c:144: warning:
data definition has n
 type or storage class
/usr/local/src/ivtv-0.3.7c/driver/msp3400.c:145: error:
parse error before "int
/usr/local/src/ivtv-0.3.7c/driver/msp3400.c:145: warning:
type defaults to `int
 in declaration of `module_param'
/usr/local/src/ivtv-0.3.7c/driver/msp3400.c:145: warning:
function declaration 
sn't a prototype
/usr/local/src/ivtv-0.3.7c/driver/msp3400.c:145: warning:
data definition has n
 type or storage class
make[4]: *** [/usr/local/src/ivtv-0.3.7c/driver/msp3400.o]
Error 1
make[3]: *** [_module_/usr/local/src/ivtv-0.3.7c/driver] Error 2
make[2]: *** [modules] Error 2
make[1]: *** [modules] Error 2
make[1]: Leaving directory
`/usr/src/linux-2.6.5-7.145-obj/i386/default'
make: *** [all] Error 2

All versions of ivtv i tried produces this error message
exaclty.

I looked into the file msp3400.c, and this the failing part:

#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0)
module_param(once, int, 0644);
module_param(debug, int, 0644);
module_param(simple, int, 0644);
module_param(simpler, int, 0644);
module_param(stereo_threshold, int, 0644);
module_param(standard, int, 0644);
module_param(amsound, int, 0644);
module_param(dolby, int, 0644);
#else
MODULE_PARM(once, "i");
MODULE_PARM(debug, "i");
MODULE_PARM(simple, "i");
MODULE_PARM(simpler, "i");
MODULE_PARM(stereo_threshold, "i");
MODULE_PARM(standard, "i");
MODULE_PARM(amsound, "i");
MODULE_PARM(dolby, "i");
#endif

I think the first half is for 2.6.x kernels, and the second
is for "other" (2.4 , 2.5) kernels.
If i modify this part to include the lines for "other
kernels" then the make goes through this part, and fails at
another.
So the MODULE_PARM(once, "i"); line is compiling, and the
module_param(once, int, 0644); line is not.
I dont know the 2.6 kernels, i prefer using 2.4.
I cant imagine what could this error message mean, and i
have to set this up with this kernel.

If you have any idea, please help me.
Thanks


Zsolt Papp

_______________________________________________________________________
[freemail] extra 1GB-os postafiókkal, Önnek már van? http://freemail.hu




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Ivtv-users mailing list
Ivtv-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ivtv-users

Reply via email to