[opensuse] file patching
Hi script wizards i am attempting to get the saa7231 driver compiled and have been bitten by a few glitches one was the move of autoconf.h sorted that one but now the next one is a lot more involved the error i get is as follows /home/pete/Downloads/saa7231-c6048b34be66/v4l/tea5767.c: In function 'tea5767_release': /home/pete/Downloads/saa7231-c6048b34be66/v4l/tea5767.c:441:2: error: implicit declaration of function 'kfree' /home/pete/Downloads/saa7231-c6048b34be66/v4l/tea5767.c: In function 'tea5767_attach': /home/pete/Downloads/saa7231-c6048b34be66/v4l/tea5767.c:493:2: error: implicit declaration of function 'kzalloc' /home/pete/Downloads/saa7231-c6048b34be66/v4l/tea5767.c:493:7: warning: assignment makes pointer from integer without a cast now reading around the net it seems there is a need for #include <linux/slab.h> in each file effeted and it is a lot of them is there an easy way of doing the addidition rather than opening each file and editing by hand ( as i am doing right now but the rtae it is going i will still be hacking this tike next year Pete . -- Powered by openSUSE 11.3 (x86_64) Kernel: 2.6.34.7-0.7-desktop KDE Development Platform: 4.5.5 (KDE 4.5.5) "release 1" 21:15 up 1 day 2:12, 5 users, load average: 0.31, 0.24, 0.19 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 4/13/2011 4:20 PM, Peter Nikolic wrote:
Hi script wizards
i am attempting to get the saa7231 driver compiled and have been bitten by a few glitches one was the move of autoconf.h sorted that one but now the next one is a lot more involved the error i get is as follows
/home/pete/Downloads/saa7231-c6048b34be66/v4l/tea5767.c: In function 'tea5767_release': /home/pete/Downloads/saa7231-c6048b34be66/v4l/tea5767.c:441:2: error: implicit declaration of function 'kfree' /home/pete/Downloads/saa7231-c6048b34be66/v4l/tea5767.c: In function 'tea5767_attach': /home/pete/Downloads/saa7231-c6048b34be66/v4l/tea5767.c:493:2: error: implicit declaration of function 'kzalloc' /home/pete/Downloads/saa7231-c6048b34be66/v4l/tea5767.c:493:7: warning: assignment makes pointer from integer without a cast now reading around the net it seems there is a need for
#include<linux/slab.h>
in each file effeted and it is a lot of them is there an easy way of doing the addidition rather than opening each file and editing by hand ( as i am doing right now but the rtae it is going i will still be hacking this tike next year
Pete .
http://forums.opensuse.org/english/get-technical-help-here/hardware/450034-s... http://www.linux.com/community/forums?func=view&catid=36&id=4044&start=6 Considering the dates of some of those posts and the last-change date on the mercurial repo, with the developers themselves saying it wasn't usable yet, and then doing no further work since saying that over a year ago, and no support from the manufacturer, to me that all says "wasting your time". But just as a starting point I'd only try to compile this with whatever kernel version was current the last time this was touched. The last few mercurial changelogs mentioned 2.6.16 to 2.6.19, 2.6.20, & 2.6.24, and it looks like 2.6.30.5 was the last version out as of the last-change date. http://www.jusst.de/hg/saa7231/ 2009-08-26 http://www.kernel.org/pub/linux/kernel/v2.6/ 2009-08-17 2.6.27.31 2009-05-02 2.6.28.10 2009-07-02 2.6.29.6 2009-08-16 2.6.30.5 -- bkw -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Peter Nikolic wrote:
now reading around the net it seems there is a need for
#include <linux/slab.h>
in each file effeted and it is a lot of them is there an easy way of doing the addidition rather than opening each file and editing by hand ( as i am doing right now but the rtae it is going i will still be hacking this tike next year
sed or awk plus some bash, or just do the whole job in perl -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Brian K. White
-
Dave Howorth
-
Peter Nikolic