Thread: Error in Compiling Third Party Modem Driver
i trying compile third-party usb modem driver zte ac8710 ubuntu 9.10 (linux-headers-2.6.31-14-generic) source code provided inside windows installation cd. directed in redame file, have changed makefile point correct linux source header files.
geting following compilation errors:
abhijit@lenovo:~$ cd linux
abhijit@lenovo:~/linux$ make
make -c /usr/src/linux-headers-2.6.31-14-generic m=/home/abhijit/linux modules
make[1]: entering directory `/usr/src/linux-headers-2.6.31-14-generic'
cc [m] /home/abhijit/linux/usb-serial.o
/home/abhijit/linux/usb-serial.c: in function ‘destroy_serial’:
/home/abhijit/linux/usb-serial.c:159: error: ‘struct usb_serial_driver’ has no member named ‘shutdown’
/home/abhijit/linux/usb-serial.c:165: error: ‘struct usb_serial_port’ has no member named ‘open_count’
/home/abhijit/linux/usb-serial.c: in function ‘serial_open’:
/home/abhijit/linux/usb-serial.c:246: error: ‘struct usb_serial_port’ has no member named ‘open_count’
/home/abhijit/linux/usb-serial.c:251: error: ‘struct usb_serial_port’ has no member named ‘tty’
/home/abhijit/linux/usb-serial.c:253: error: ‘struct usb_serial_port’ has no member named ‘open_count’
/home/abhijit/linux/usb-serial.c:265: warning: passing argument 1 of ‘serial->type->open’ incompatible pointer type
/home/abhijit/linux/usb-serial.c:265: note: expected ‘struct tty_struct *’ argument of type ‘struct usb_serial_port *’
/home/abhijit/linux/usb-serial.c:265: warning: passing argument 2 of ‘serial->type->open’ incompatible pointer type
/home/abhijit/linux/usb-serial.c:265: note: expected ‘struct usb_serial_port *’ argument of type ‘struct file *’
/home/abhijit/linux/usb-serial.c:265: error: few arguments function ‘serial->type->open’
/home/abhijit/linux/usb-serial.c:276: error: ‘struct usb_serial_port’ has no member named ‘open_count’
/home/abhijit/linux/usb-serial.c:278: error: ‘struct usb_serial_port’ has no member named ‘tty’
/home/abhijit/linux/usb-serial.c: in function ‘serial_close’:
/home/abhijit/linux/usb-serial.c:357: error: ‘struct usb_serial_port’ has no member named ‘open_count’
/home/abhijit/linux/usb-serial.c:371: error: ‘struct usb_serial_port’ has no member named ‘open_count’
/home/abhijit/linux/usb-serial.c:372: error: ‘struct usb_serial_port’ has no member named ‘open_count’
/home/abhijit/linux/usb-serial.c:375: error: many arguments function ‘port->serial->type->close’
/home/abhijit/linux/usb-serial.c:377: error: ‘struct usb_serial_port’ has no member named ‘tty’
searching net solution no avail. missing patch or other package needs present compilation successful? please
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Networking & Wireless [ubuntu] Error in Compiling Third Party Modem Driver
Ubuntu
Comments
Post a Comment