Skip to contentSkip to conversation

Mantis-08f27ef99d74: Compile error with 2.6.25

linux-dvb Philipp Kolmann 3 participants 5 messages May 10, 2008 – May 12, 2008 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Hi,

I have a Terratec Cinergy C which worked with the mantis driver and 2.6.24 fine. Now I have updated to 2.6.25 and can't compile the mantis driver anymore:

[...]
CC [M] /home/philipp/test/deb/dvb/mantis-08f27ef99d74/v4l/cx23885-dvb.o
CC [M] /home/philipp/test/deb/dvb/mantis-08f27ef99d74/v4l/cx25840-core.o
/home/philipp/test/deb/dvb/mantis-08f27ef99d74/v4l/cx25840-core.c:71: error: conflicting type qualifiers for 'addr_data' /home/philipp/test/deb/dvb/mantis-08f27ef99d74/v4l/../linux/include/media/v4l2-i2c-drv-legacy.h:41: error: previous declaration of 'addr_data' was here make[3]: *** [/home/philipp/test/deb/dvb/mantis-08f27ef99d74/v4l/cx25840-core.o] Error 1
make[2]: *** [_module_/home/philipp/test/deb/dvb/mantis-08f27ef99d74/v4l] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.25-1-686'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/philipp/test/deb/dvb/mantis-08f27ef99d74/v4l'
make: *** [all] Error 2

Any ideas how to solve this.

Thanks
Philipp

PS: Anyone know, if and when mantis will be merged with v4l-dvb tree?

Signature · 6 lines
The more I learn about people, the more I like my dog!

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
#1 lore raw

could you try with the latest mantis version
http://jusst.de/hg/mantis/rev/b7b8a2a81f3e

and during of the compilation you should use the updated dvb-headers - frontend.h anf version.h from mantis tree

Quoted 16 lines

I have a Terratec Cinergy C which worked with the mantis driver and 2.6.24 fine. Now I have updated to 2.6.25 and can't compile the mantis driver anymore:

[...]
CC [M] /home/philipp/test/deb/dvb/mantis-08f27ef99d74/v4l/cx23885-dvb.o
CC [M] /home/philipp/test/deb/dvb/mantis-08f27ef99d74/v4l/cx25840-core.o
/home/philipp/test/deb/dvb/mantis-08f27ef99d74/v4l/cx25840-core.c:71: error: conflicting type qualifiers for 'addr_data' /home/philipp/test/deb/dvb/mantis-08f27ef99d74/v4l/../linux/include/media/v4l2-i2c-drv-legacy.h:41: error: previous declaration of 'addr_data' was here make[3]: *** [/home/philipp/test/deb/dvb/mantis-08f27ef99d74/v4l/cx25840-core.o] Error 1
make[2]: *** [_module_/home/philipp/test/deb/dvb/mantis-08f27ef99d74/v4l] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.25-1-686'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/philipp/test/deb/dvb/mantis-08f27ef99d74/v4l'
make: *** [all] Error 2

Quoted 6 lines

Any ideas how to solve this.

Thanks
Philipp

PS: Anyone know, if and when mantis will be merged with v4l-dvb tree?

good question. I don't know :(

Igor

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

#3 lore raw
In reply to Igor
Quoted 2 lines · Igor

could you try with the latest mantis version
http://jusst.de/hg/mantis/rev/b7b8a2a81f3e

Manits head got fixed (regarding to the hg log). So I tried it. Still the same error. Same with v4l tree.

Now I found a little patch which brought me over this compile error:

http://www.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.24-rc4/2.6.24-rc4-mm1/broken-out/fix-jdelvare-i2c-i2c-constify-client-address-data.patch

From: Andrew Morton <[email protected]>

drivers/media/video/tvaudio.c:147: error: conflicting type qualifiers for 'addr_data' include/media/v4l2-i2c-drv-legacy.h:37: error: previous declaration of 'addr_data' was here

---

 include/media/v4l2-i2c-drv-legacy.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/media/v4l2-i2c-drv-legacy.h renamed from include/media/v4l2-i2c-drv-legacy.h~fix-jdelvare-i2c-i2c-constify-client-address-data +1 -1
diff -puN include/media/v4l2-i2c-drv-legacy.h~fix-jdelvare-i2c-i2c-constify-client-address-data include/media/v4l2-i2c-drv-legacy.h
@@ -34,7 +34,7 @@ struct v4l2_i2c_driver_data {
 };
 
 static struct v4l2_i2c_driver_data v4l2_i2c_data;
-static struct i2c_client_address_data addr_data;
+static const struct i2c_client_address_data addr_data;
 static struct i2c_driver v4l2_i2c_driver_legacy;
 static char v4l2_i2c_drv_name_legacy[32];
 

Now I'm a step further.

Thanks
Philipp

Signature · 6 lines
The more I learn about people, the more I like my dog!

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
#4 lore raw
Quoted 10 lines · Philipp Kolmann
Quoted 2 lines · Igor

could you try with the latest mantis version
http://jusst.de/hg/mantis/rev/b7b8a2a81f3e

Manits head got fixed (regarding to the hg log). So I tried it. Still the same error. Same with v4l tree.

Now I found a little patch which brought me over this compile error:

http://www.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.24-rc4/2.6.24-rc4-mm1/broken-out/fix-jdelvare-i2c-i2c-constify-client-address-data.patch

With this patch applied (and one not used module disabled) I was able to compile latest mantis tree with Debian 2.6.25 kernel and mantis is working now for me.

Thanks for fixing this issue.
Philipp

Signature · 6 lines
The more I learn about people, the more I like my dog!

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb