Koenraad Lelong a écrit :
Hi, I downloaded the last version (pwc-10.0.6a) from http://www.saillard.org/linux/pwc/files/ and tried to compile it for SuSE 9.1 but I get errors. I installed the kernel sources, did a "make oldconfig" (is make cloneconfig better ?), had to make a link to a symbols file (don't remember exactly). That's what is output : kllap:/home/koenraad/webcam/pwc-10.0.6a # make make -C /lib/modules/2.6.5-7.151-default/source SUBDIRS=/home/koenraad/webcam/pwc-10.0.6a modules make[1]: Entering directory `/usr/src/linux-2.6.5-7.151' CC [M] /home/koenraad/webcam/pwc-10.0.6a/pwc-if.o /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c: In function `pwc_isoc_cleanup': /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:937: warning: implicit declaration of function `usb_kill_urb' /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c: At top level: /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2081: error: parse error before numeric constant /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2081: warning: type defaults to `int' in declaration of `module_param' /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2081: warning: function declaration isn't a prototype /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2081: warning: data definition has no type or storage class /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2082: error: parse error before "int" /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2082: warning: type defaults to `int' in declaration of `module_param' /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2082: warning: function declaration isn't a prototype /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2082: warning: data definition has no type or storage class /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2083: error: parse error before "int" /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2083: warning: type defaults to `int' in declaration of `module_param' /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2083: warning: function declaration isn't a prototype /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2083: warning: data definition has no type or storage class /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2084: error: parse error before "int" /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2084: warning: type defaults to `int' in declaration of `module_param' /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2084: warning: function declaration isn't a prototype /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2084: warning: data definition has no type or storage class /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2085: error: parse error before "int" /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2085: warning: type defaults to `int' in declaration of `module_param_named' /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2085: warning: function declaration isn't a prototype /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2085: warning: data definition has no type or storage class /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2086: error: parse error before "int" /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2086: warning: type defaults to `int' in declaration of `module_param' /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2086: warning: function declaration isn't a prototype /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2086: warning: data definition has no type or storage class /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2087: error: parse error before "int" /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2087: warning: type defaults to `int' in declaration of `module_param' /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2087: warning: function declaration isn't a prototype /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2087: warning: data definition has no type or storage class /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2089: error: parse error before "int" /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2089: warning: type defaults to `int' in declaration of `module_param_array' /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2089: warning: function declaration isn't a prototype /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2089: warning: data definition has no type or storage class /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2090: error: parse error before numeric constant /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2090: warning: type defaults to `int' in declaration of `module_param_array' /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2090: warning: function declaration isn't a prototype /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2090: warning: data definition has no type or storage class /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2077: warning: `leds_nargs' defined but not used /home/koenraad/webcam/pwc-10.0.6a/pwc-if.c:2079: warning: `dev_hint_nargs' defined but not used make[2]: *** [/home/koenraad/webcam/pwc-10.0.6a/pwc-if.o] Error 1 make[1]: *** [_module_/home/koenraad/webcam/pwc-10.0.6a] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.5-7.151' make: *** [default] Error 2 kllap:/home/koenraad/webcam/pwc-10.0.6a #
I googled, but didn't find much. One thing that might help : my gcc is version 3.3.3 (standard installation from DVD). In one message from google, I read that the module should be compiled with the same compiler the kernel had been compiled with. How do I check this ? Any suggestions, pointers ? TIA
Hi, I compiled it on my 9.2, but it should also work on 9.1 : 1) install kernel sources 2) issue the following commands : # cd /usr/src/linux # make clean # make mrproper # make cloneconfig # make prepare-all now you are ready to build extra modules for your kernel 3) cd to the pwc-10.0.6a directory and issue # make # make install That's it. William. -- --------------------------------------------------------- William Daniau Research Engineer FEMTO-ST Dept LPMO Tel : +33 (0) 381 85 39 69 Fax : +33 (0) 381 85 39 98 email : wdaniau@femto-st.fr ---------------------------------------------------------