Only .2.6.22 or higher is supported. If possible you should probably
upgrade your kernel. However adding the following bit of code to the
sn9c20x.h file should allow it to compile on the 2.6.21 kernel

#define list_first_entry(ptr, type, member) \
       list_entry((ptr)->next, type, member)

On Tue, Jan 6, 2009 at 6:24 AM, Vasily Khoruzhick <[email protected]> wrote:
> On 5 January 2009 00:11:41 KrysKahles wrote:
>> Hello everyone,
>>
>> I've got since two years a webcam (0c45:627b Microdia) using the
>> famous SN9C201 driver. And since two years I'm trying to use it under
>> linux. Finally I figured out your project with a great happiness and
>> hope.
>>
>> I downloaded (4th January) your package and unhappily I've got a
>> problem with the compiling. Here is my output:
>>
>> *****
>> make -C /lib/modules/2.6.21.5-smp/build SUBDIRS=/home/Krys/microdia
>> modules
>> make[1]: entrant dans le répertoire /usr/src/linux-2.6.21.5
>>   CC [M]  /home/Krys/microdia/sn9c20x-usb.o
>> /home/Krys/microdia/sn9c20x-usb.c: In function
>> 'usb_sn9c20x_completion_handler':
>> /home/Krys/microdia/sn9c20x-usb.c:580: attention : implicit
>> declaration of function 'list_first_entry'
>> /home/Krys/microdia/sn9c20x-usb.c:580: erreur: expected expression
>> before 'struct'
>> /home/Krys/microdia/sn9c20x-usb.c:581: attention : assignment makes
>> pointer from integer without a cast
>> make[2]: *** [/home/Krys/microdia/sn9c20x-usb.o] Erreur 1
>> make[1]: *** [_module_/home/Krys/microdia] Erreur 2
>> make[1]: quittant le répertoire  /usr/src/linux-2.6.21.5
>> make: *** [driver] Erreur 2
>> *****
>>
>> Can you help me ?
>>
>> Thank you very much.
>>
>> Krys
>
> AFAIR you need at least 2.6.22 (or 2.6.24) kernel to compile sn9c20x driver
>
> Regards
> Vasily
>

--~--~---------~--~----~------------~-------~--~----~
Lets make microdia webcams plug'n play, (currently plug'n pray)
To post to this group, send email to [email protected]
Visit us online https://groups.google.com/group/microdia
-~----------~----~----~----~------~----~------~--~---

Reply via email to