View Single Post
  #6  
Old 2nd July 2009, 15:59
crazyy crazyy is offline
Junior Member
 
Join Date: Jun 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

news I changed the directory from asm/semaphore.h to linux/semaphore.h and it works and this is the good news.
The bad news I have new errors
This is the new output:

make -C /lib/modules/2.6.28-13-generic/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.28-13-generic'
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:709: error: unknown field ‘num_interrupt_in’ specified in initializer
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:710: error: unknown field ‘num_interrupt_out’ specified in initializer
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:710: warning: missing braces around initializer
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:710: warning: (near initialization for ‘silabs_cp210x_device.driver_list’)
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:711: error: unknown field ‘num_bulk_in’ specified in initializer
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:711: warning: initialization makes pointer from integer without a cast
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:712: error: unknown field ‘num_bulk_out’ specified in initializer
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:712: warning: initialization makes pointer from integer without a cast
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:729: warning: initialization from incompatible pointer type
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:730: warning: initialization from incompatible pointer type
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:731: warning: initialization from incompatible pointer type
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:732: warning: initialization from incompatible pointer type
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:733: warning: initialization from incompatible pointer type
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:734: warning: initialization from incompatible pointer type
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:735: warning: initialization from incompatible pointer type
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:736: warning: initialization from incompatible pointer type
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:737: warning: initialization from incompatible pointer type
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:738: warning: initialization from incompatible pointer type
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:739: warning: initialization from incompatible pointer type
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:740: 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:411: error: ‘struct usb_serial_port’ has no member named ‘tty’
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:412: error: ‘struct usb_serial_port’ has no member named ‘tty’
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:571: error: ‘struct usb_serial_port’ has no member named ‘tty’
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c: In function ‘silabs_cp210x_close’:
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:679: error: ‘struct usb_serial_port’ has no member named ‘tty’
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:680: error: ‘struct usb_serial_port’ has no member named ‘tty’
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c: In function ‘cp210x_get_termios’:
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:765: error: ‘struct usb_serial_port’ has no member named ‘tty’
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:765: error: ‘struct usb_serial_port’ has no member named ‘tty’
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:972: error: ‘struct usb_serial_port’ has no member named ‘tty’
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:974: error: ‘struct usb_serial_port’ has no member named ‘tty’
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:975: error: ‘struct usb_serial_port’ has no member named ‘tty’
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:980: error: ‘struct usb_serial_port’ has no member named ‘tty’
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:982: error: ‘struct usb_serial_port’ has no member named ‘tty’
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:983: error: ‘struct usb_serial_port’ has no member named ‘tty’
/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:1015: error: ‘struct usb_serial_port’ has no member named ‘tty’
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1015: error: ‘struct usb_serial_port’ has no member named ‘tty’
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1020: error: ‘struct usb_serial_port’ has no member named ‘tty’
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1021: error: ‘struct usb_serial_port’ has no member named ‘tty’
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1026: error: ‘struct usb_serial_port’ has no member named ‘tty’
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1214: error: ‘struct usb_serial_port’ has no member named ‘tty’
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1215: error: ‘struct usb_serial_port’ has no member named ‘tty’
/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:2418: error: ‘struct usb_serial_port’ has no member named ‘open_count’
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c: In function ‘cp210x_flush_and_resubmit_read_urb’:
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:2440: error: ‘struct usb_serial_port’ has no member named ‘tty’
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:2495: error: ‘struct usb_serial_port’ has no member named ‘open_count’
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c: In function ‘silabs_cp210x_write_bulk_callback’:
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:2566: error: ‘struct usb_serial_port’ has no member named ‘tty’
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c: In function ‘silabs_cp210x_throttle’:
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:2612: error: ‘struct usb_serial_port’ has no member named ‘tty’
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c: In function ‘silabs_cp210x_unthrottle’:
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:2673: error: ‘struct usb_serial_port’ has no member named ‘tty’
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.28-13-generic'
make: *** [modules] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.13174 (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.13174 (%build)
+ [ -f /home/user/.rpmmacros.cp210x ]
+ rm /home/user/.rpmmacros
+ mv -f /home/user/.rpmmacros.cp210x /home/user/.rpmmacros
Reply With Quote