rohitkugve
November 11th, 2009, 01:59 PM
Hi all,
I am trying to compile the device driver for Moxa RS485 PCI card( http://www.moxa.com/product/CP-132.htm ). The instruction is to compile the drive by using make. When I do make I get the following error
/home/rohit/Downloads/mxser/driver/mxser.c: In function ‘mxser_flush_buffer’:
/home/rohit/Downloads/mxser/driver/mxser.c:1990: error: request for member ‘ops’ in something not a structure or union
make[3]: *** [/home/rohit/Downloads/mxser/driver/mxser.o] Error 1
make[2]: *** [_module_/home/rohit/Downloads/mxser/driver] Error 2
I am using Ubuntu-9.10 with kernel-2.6.31-14-generic. The kernel headers are installed in /usr/src. I have not downloaded the kernel source as I read that its not necessary. I am new to compiling drivers, any idea how to resolve this?
Thanks in advance,
-Rohit
I am trying to compile the device driver for Moxa RS485 PCI card( http://www.moxa.com/product/CP-132.htm ). The instruction is to compile the drive by using make. When I do make I get the following error
/home/rohit/Downloads/mxser/driver/mxser.c: In function ‘mxser_flush_buffer’:
/home/rohit/Downloads/mxser/driver/mxser.c:1990: error: request for member ‘ops’ in something not a structure or union
make[3]: *** [/home/rohit/Downloads/mxser/driver/mxser.o] Error 1
make[2]: *** [_module_/home/rohit/Downloads/mxser/driver] Error 2
I am using Ubuntu-9.10 with kernel-2.6.31-14-generic. The kernel headers are installed in /usr/src. I have not downloaded the kernel source as I read that its not necessary. I am new to compiling drivers, any idea how to resolve this?
Thanks in advance,
-Rohit