Gerd,

Moving from Mandrake 7.0 to 7.1 my Magic TV card installation still
works but does not allow me to change channels (it always remains on
the same channel last brought up under Windows, under which
everything works well enough).

Speculation: the change from kernel 2.2.14 to 2.2.15 regresses the
bttv from the compiled version I added to 2.2.14.

Attempted Remedy:

Downloaded the latest i2c 2.5.2, compiled, installed.  No problems.

Downloaded bttv-0.7.37, recompiled my kernel, following your method 1
compiled bttv - Error 2 failure!  Transcript of terminal session
attached.

First sign of trouble is:

msp3400.c:65: `I2C_CLIENT_END' undeclared here (not in a function)
msp3400.c:65: initializer element is not constant
msp3400.c:65: (near initialization for `normal_i2c[0]')

In the bttv README, not understood:

You'll need at least these i2c config options for bttv:
CONFIG_I2C=m
CONFIG_I2C_ALGOBIT=m

These look like kernel 'make xconfig' options as might be left in
/usr/src/linux/.config, but I cannot find any mention of i2c in the
kernel options for 2.2.15 or in the .config file.  Is a more helpful
rewrite of all this planned (eg, simple step by step instructions)?

What to do?

-- 
Regards,

Ron. [AU] - sent by Mandrake Linux.
To write a poem in 17 syllables is very diffic
[root@big bttv-0.7.37]# make all
make -C driver
make[1]: Entering directory 
`/home/ron/install/packages/bttv/bttv-0.7.37/driver'
DIR=`pwd`; (cd /usr/src/linux; make SUBDIRS=$DIR modules)
make[2]: Entering directory `/usr/src/linux-2.2.15'
make -C  /home/ron/install/packages/bttv/bttv-0.7.37/driver CFLAGS="-Wall 
-Wstrict-prototypes -O2 -fomit-fr
ame-pointer -fno-strict-aliasing -pipe -O3 -fomit-frame-pointer 
-fno-exceptions -fno-rtti -pipe -s -mpentiu
m -mcpu=pentium -march=pentium -ffast-math -fexpensive-optimizations -m486 
-malign-loops=2 -malign-jumps=2-malign-functions=2 -DCPU=586 -DMODULE 
-DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h" M
AKING_MODULES=1 modules
make[3]: Entering directory 
`/home/ron/install/packages/bttv/bttv-0.7.37/driver'
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer -fno-strict-al
iasing -pipe -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pipe -s 
-mpentium -mcpu=pentium -march=pen
tium -ffast-math -fexpensive-optimizations -m486 -malign-loops=2 
-malign-jumps=2 -malign-functions=2 -DCPU=
586 -DMODULE -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h 
  -c -o msp3400.o msp3400.cIn file included from msp3400.c:60:
kcompat24.h:82: warning: `request_region' redefined
/usr/src/linux/include/linux/modules/ksyms.ver:434: warning: this is the 
location of the previous definitio
n                                                                              
                            
msp3400.c:65: `I2C_CLIENT_END' undeclared here (not in a function)
msp3400.c:65: initializer element is not constant
msp3400.c:65: (near initialization for `normal_i2c[0]')
msp3400.c:66: `I2C_CLIENT_END' undeclared here (not in a function)
msp3400.c:66: initializer element is not constant
msp3400.c:66: (near initialization for `normal_i2c_range[2]')
msp3400.c:67: `I2C_CLIENT_END' undeclared here (not in a function)
msp3400.c:67: initializer element is not constant
msp3400.c:67: (near initialization for `probe[0]')
msp3400.c:67: `I2C_CLIENT_END' undeclared here (not in a function)
msp3400.c:67: initializer element is not constant
msp3400.c:67: (near initialization for `probe[1]')
msp3400.c:68: `I2C_CLIENT_END' undeclared here (not in a function)
msp3400.c:68: initializer element is not constant
msp3400.c:68: (near initialization for `probe_range[0]')
msp3400.c:68: `I2C_CLIENT_END' undeclared here (not in a function)
msp3400.c:68: initializer element is not constant
msp3400.c:68: (near initialization for `probe_range[1]')
msp3400.c:69: `I2C_CLIENT_END' undeclared here (not in a function)
msp3400.c:69: initializer element is not constant
msp3400.c:69: (near initialization for `ignore[0]')
msp3400.c:69: `I2C_CLIENT_END' undeclared here (not in a function)
msp3400.c:69: initializer element is not constant
msp3400.c:69: (near initialization for `ignore[1]')
msp3400.c:70: `I2C_CLIENT_END' undeclared here (not in a function)
msp3400.c:70: initializer element is not constant
msp3400.c:70: (near initialization for `ignore_range[0]')
msp3400.c:70: `I2C_CLIENT_END' undeclared here (not in a function)
msp3400.c:70: initializer element is not constant
msp3400.c:70: (near initialization for `ignore_range[1]')
msp3400.c:71: `I2C_CLIENT_END' undeclared here (not in a function)
msp3400.c:71: initializer element is not constant
msp3400.c:71: (near initialization for `force[0]')
msp3400.c:71: `I2C_CLIENT_END' undeclared here (not in a function)
msp3400.c:71: initializer element is not constant
msp3400.c:71: (near initialization for `force[1]')
msp3400.c:72: variable `addr_data' has initializer but incomplete type
msp3400.c:73: warning: excess elements in struct initializer
msp3400.c:73: warning: (near initialization for `addr_data')
msp3400.c:73: warning: excess elements in struct initializer
msp3400.c:73: warning: (near initialization for `addr_data')
msp3400.c:74: warning: excess elements in struct initializer
msp3400.c:74: warning: (near initialization for `addr_data')
msp3400.c:74: warning: excess elements in struct initializer
msp3400.c:74: warning: (near initialization for `addr_data')
msp3400.c:75: warning: excess elements in struct initializer
msp3400.c:75: warning: (near initialization for `addr_data')
msp3400.c:75: warning: excess elements in struct initializer
msp3400.c:75: warning: (near initialization for `addr_data')
msp3400.c:77: warning: excess elements in struct initializer
msp3400.c:77: warning: (near initialization for `addr_data')
msp3400.c: In function `msp3400c_reset':
msp3400.c:139: warning: implicit declaration of function `i2c_master_send'
msp3400.c: In function `msp3400c_read':
msp3400.c:154: elements of array `msgs' have incomplete type
msp3400.c:155: dereferencing pointer to incomplete type
msp3400.c:155: warning: excess elements in struct initializer
msp3400.c:155: warning: (near initialization for `msgs[0]')
msp3400.c:155: warning: excess elements in struct initializer
msp3400.c:155: warning: (near initialization for `msgs[0]')
msp3400.c:155: warning: excess elements in struct initializer
msp3400.c:155: warning: (near initialization for `msgs[0]')
msp3400.c:155: warning: excess elements in struct initializer
msp3400.c:155: warning: (near initialization for `msgs[0]')
msp3400.c:156: dereferencing pointer to incomplete type
msp3400.c:156: warning: excess elements in struct initializer
msp3400.c:156: warning: (near initialization for `msgs[1]')
msp3400.c:156: `I2C_M_RD' undeclared (first use in this function)
msp3400.c:156: (Each undeclared identifier is reported only once
msp3400.c:156: for each function it appears in.)
msp3400.c:156: warning: excess elements in struct initializer
msp3400.c:156: warning: (near initialization for `msgs[1]')
msp3400.c:156: warning: excess elements in struct initializer
msp3400.c:156: warning: (near initialization for `msgs[1]')
msp3400.c:156: warning: excess elements in struct initializer
msp3400.c:156: warning: (near initialization for `msgs[1]')
msp3400.c:154: storage size of `msgs' isn't known
msp3400.c:163: warning: implicit declaration of function `i2c_transfer'
msp3400.c:163: dereferencing pointer to incomplete type
msp3400.c:154: warning: unused variable `msgs'
msp3400.c: In function `msp3400c_setmode':
msp3400.c:353: dereferencing pointer to incomplete type
msp3400.c: In function `msp3400c_setstereo':
msp3400.c:409: dereferencing pointer to incomplete type
msp3400.c: In function `autodetect_stereo':
msp3400.c:545: dereferencing pointer to incomplete type
msp3400.c: In function `watch_stereo':
msp3400.c:645: dereferencing pointer to incomplete type
msp3400.c: In function `msp3400c_thread':
msp3400.c:664: dereferencing pointer to incomplete type
msp3400.c: In function `msp3410d_thread':
msp3400.c:915: dereferencing pointer to incomplete type
msp3400.c: At top level:
msp3400.c:1093: warning: `struct i2c_adapter' declared inside parameter list
msp3400.c:1093: warning: its scope is only this definition or declaration, 
which is probably not what you w
ant.                                                                           
                            
msp3400.c:1095: warning: `struct i2c_adapter' declared inside parameter list
msp3400.c:1101: `I2C_DF_NOTIFY' undeclared here (not in a function)
msp3400.c:1101: initializer element is not constant
msp3400.c:1101: (near initialization for `driver.addr_l')
msp3400.c:1102: warning: initialization makes integer from pointer without a 
cast
msp3400.c:1102: initializer element is not computable at load time
msp3400.c:1102: (near initialization for `driver.addr_h')
msp3400.c:1103: warning: initialization from incompatible pointer type
msp3400.c:1104: warning: initialization from incompatible pointer type
msp3400.c:1107: variable `client_template' has initializer but incomplete type
msp3400.c:1109: warning: excess elements in struct initializer
msp3400.c:1109: warning: (near initialization for `client_template')
msp3400.c:1110: warning: excess elements in struct initializer
msp3400.c:1110: warning: (near initialization for `client_template')
msp3400.c:1111: warning: excess elements in struct initializer
msp3400.c:1111: warning: (near initialization for `client_template')
msp3400.c:1112: warning: excess elements in struct initializer
msp3400.c:1112: warning: (near initialization for `client_template')
msp3400.c:1113: warning: excess elements in struct initializer
msp3400.c:1113: warning: (near initialization for `client_template')
msp3400.c:1115: warning: excess elements in struct initializer
msp3400.c:1115: warning: (near initialization for `client_template')
msp3400.c:1118: warning: `struct i2c_adapter' declared inside parameter list
msp3400.c:1119: conflicting types for `msp_attach'
msp3400.c:1093: previous declaration of `msp_attach'
msp3400.c: In function `msp_attach':
msp3400.c:1125: invalid use of undefined type `struct i2c_client'
msp3400.c:1126: invalid use of undefined type `struct i2c_client'
msp3400.c:1133: sizeof applied to an incomplete type
msp3400.c:1135: sizeof applied to an incomplete type
msp3400.c:1135: sizeof applied to an incomplete type
msp3400.c:1256: conflicting types for `msp_probe'
msp3400.c:1095: previous declaration of `msp_probe'
msp3400.c: In function `msp_probe':
msp3400.c:1257: dereferencing pointer to incomplete type
msp3400.c:1257: `I2C_ALGO_BIT' undeclared (first use in this function)
msp3400.c:1257: `I2C_HW_B_BT848' undeclared (first use in this function)
msp3400.c:1258: warning: implicit declaration of function `i2c_probe'
msp3400.c: In function `msp_command':
msp3400.c:1264: dereferencing pointer to incomplete type
msp3400.c: In function `msp3400_init_module':
msp3400.c:1438: warning: implicit declaration of function `i2c_add_driver'
msp3400.c: In function `msp3400_cleanup_module':
msp3400.c:1444: warning: implicit declaration of function `i2c_del_driver'
make[3]: *** [msp3400.o] Error 1
make[3]: Leaving directory `/home/ron/install/packages/bttv/bttv-0.7.37/driver'
make[2]: *** [_mod_/home/ron/install/packages/bttv/bttv-0.7.37/driver] Error 2
make[2]: Leaving directory `/usr/src/linux-2.2.15'
make[1]: *** [here] Error 2
make[1]: Leaving directory `/home/ron/install/packages/bttv/bttv-0.7.37/driver'
make: *** [bttv] Error 2
[root@big bttv-0.7.37]#                                                        
                            

Reply via email to