View Single Post
  #9  
Old 6th July 2009, 22:44
sanne sanne is offline
Junior Member
 
Join Date: Jul 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

I also have troubles building the CP210x drivers from silabs.com. I end up with the following:

2.6 Kernel
+ cp ./Makefile26 ./Makefile
+ make -f Makefile26 modules
make -C /lib/modules/2.6.18-6-ixp4xx/build -I /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0 M=/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.18-6-ixp4xx'
CC [M] /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.o
In file included from /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:95:
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:411: warning: 'struct ktermios' declared inside parameter list
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:411: warning: its scope is only this definition or declaration, which is probably not what you want
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:794: error: unknown field 'usb_driver' specified in initializer
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:794: warning: initialization from incompatible pointer type
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:807: warning: initialization from incompatible pointer type
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:816: warning: initialization from incompatible pointer type
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:817: warning: initialization from incompatible pointer type
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c: In function 'silabs_cp210x_open':
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:394: error: 'struct usb_serial_port' has no member named 'throttled'
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:395: error: 'struct usb_serial_port' has no member named 'throttle_req'
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:430: warning: passing argument 6 of 'usb_fill_bulk_urb' from incompatible pointer type
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c: At top level:
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:994: warning: 'struct ktermios' declared inside parameter list
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:995: error: conflicting types for 'silabs_cp210x_set_termios'
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:411: error: previous declaration of 'silabs_cp210x_set_termios' was here
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c: In function 'silabs_cp210x_set_termios':
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1025: error: dereferencing pointer to incomplete type
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1027: error: dereferencing pointer to incomplete type
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1033: error: dereferencing pointer to incomplete type
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1034: error: dereferencing pointer to incomplete type
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c: In function 'cp210x_send_port_data':
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:2166: warning: passing argument 6 of 'usb_fill_bulk_urb' from incompatible pointer type
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c: In function 'cp210x_resubmit_read_urb':
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:2416: warning: passing argument 6 of 'usb_fill_bulk_urb' from incompatible pointer type
make[2]: *** [/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.o] Error 1
make[1]: *** [_module_/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.18-6-ixp4xx'
make: *** [modules] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.88405 (%build)


Does it ring a bell maybe to someone? I don't have a lot of knowledge and experience with Linux, so mainly I google my way around any time I encouter difficulties. I really got stuck this time.

Any help is appreciated!

Regards,
Sanne
Reply With Quote