HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Kernel Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=6)
-   -   compile cp210x drivers in Ubuntu9.10 (http://www.howtoforge.com/forums/showthread.php?t=41811)

cigogo 14th December 2009 10:29

compile cp210x drivers in Ubuntu9.10
 
I downloads cp210x-3.0.0.tar.gz from:
http://www.silabs.com/pages/Download...x-3.0.0.tar.gz

When I read Install file and try to compile it,but failed:


cigogo@cigogo-desktop:~/cp210x-3.0.0$ sudo ./makerpm
[sudo] password for cigogo:
+ uname -r
+ kernel_release=2.6.31-16-generic
+ pwd
+ current_dir=/home/cigogo/cp210x-3.0.0
+ export current_dir
+ [ -f /home/cigogo/.rpmmacros ]
+ mv -f /home/cigogo/.rpmmacros /home/cigogo/.rpmmacros.cp210x
+ cp /home/cigogo/cp210x-3.0.0/cp210x/.rpmmacros /home/cigogo/.rpmmacros
+ d=/var/tmp/silabs
+ [ ! -d /var/tmp/silabs ]
+ cd /var/tmp/silabs
+ r=/var/tmp/silabs/rpmbuild
+ o=cp210x-3.0.0
+ s=/var/tmp/silabs/rpmbuild/SOURCES
+ spec=cp210x-3.0.0.spec
+ rm -rf /var/tmp/silabs/rpmbuild
+ mkdir rpmbuild
+ mkdir rpmbuild/SOURCES
+ mkdir rpmbuild/SRPMS
+ mkdir rpmbuild/SPECS
+ mkdir rpmbuild/BUILD
+ mkdir rpmbuild/RPMS
+ cd /var/tmp/silabs/rpmbuild/SOURCES
+ rm -rf cp210x-3.0.0
+ mkdir cp210x-3.0.0
+ cp -r /home/cigogo/cp210x-3.0.0/cp210x/Makefile24 /home/cigogo/cp210x-3.0.0/cp210x/Makefile26 /home/cigogo/cp210x-3.0.0/cp210x/Rules.make /home/cigogo/cp210x-3.0.0/cp210x/configure /home/cigogo/cp210x-3.0.0/cp210x/configure~ /home/cigogo/cp210x-3.0.0/cp210x/cp210x (copy).c /home/cigogo/cp210x-3.0.0/cp210x/cp210x.c /home/cigogo/cp210x-3.0.0/cp210x/cp210x.c~ /home/cigogo/cp210x-3.0.0/cp210x/cp210x.h /home/cigogo/cp210x-3.0.0/cp210x/installmod cp210x-3.0.0
+ cp -r /home/cigogo/cp210x-3.0.0/cp210x/.rpmmacros cp210x-3.0.0
+ uname -r
+ KVER=2.6.31-16-generic
+ echo 2.6.31-16-generic
+ awk -F . -- { print $1 }
+ KVER1=2
+ echo 2.6.31-16-generic
+ awk -F . -- { print $2 }
+ KVER2=6
+ echo 2.6.31-16-generic
+ sed -e s/2\.6\.//g
+ KVER3=31-16-generic
+ MyCopy=0
+ echo 2.6 Kernel
2.6 Kernel
+ rm -f cp210x-3.0.0.tar
+ rm -f cp210x-3.0.0.tar.gz
+ tar -cf cp210x-3.0.0.tar cp210x-3.0.0
+ gzip cp210x-3.0.0.tar
+ cp /home/cigogo/cp210x-3.0.0/cp210x-3.0.0.spec /var/tmp/silabs/rpmbuild/SPECS
+ echo #Now build the binaries and the rpms
#Now build the binaries and the rpms
+ echo

+ echo /var/tmp/silabs/rpmbuild/SPECS/cp210x-3.0.0.spec
/var/tmp/silabs/rpmbuild/SPECS/cp210x-3.0.0.spec
+ rpmbuild -ba /var/tmp/silabs/rpmbuild/SPECS/cp210x-3.0.0.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.teKdxr
+ umask 022
+ cd /var/tmp/silabs/rpmbuild/BUILD
+ kver2=6
+ echo 2.6 Kernel
2.6 Kernel
+ cd /var/tmp/silabs/rpmbuild/BUILD
+ rm -rf cp210x-3.0.0
+ /bin/gzip -dc /var/tmp/silabs/rpmbuild/SOURCES/cp210x-3.0.0.tar.gz
+ /bin/tar -xf -
+ STATUS=0
+ [ 0 -ne 0 ]
+ cd cp210x-3.0.0
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.U5TjSG
+ umask 022
+ cd /var/tmp/silabs/rpmbuild/BUILD
+ cd cp210x-3.0.0
+ sh ./configure
+ CONFIG_FILE=defaults.mk
+ pwd
+ PWD=/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0
+ uname -r
+ KVER=2.6.31-16-generic
+ echo 2.6.31-16-generic
+ awk -F . -- { print $1 }
+ KVER1=2
+ echo 2.6.31-16-generic
+ awk -F . -- { print $2 }
+ KVER2=6
+ echo 2.6.31-16-generic
+ sed -e s/2\.6\.//g
+ KVER3=31-16-generic
+ makefile=Makefile26
+ EXT=.ko
+ KOFILE=cp210x.ko
+ MODFILE=cp2101.ko
+ RULESFILE=
+ uname -r
+ KDIR=/lib/modules/2.6.31-16-generic/build
+ uname -r
+ MODDIR=/lib/modules/2.6.31-16-generic
+ echo

+ echo Kernel version : 2.6.31-16-generic
Kernel version : 2.6.31-16-generic
+ echo Module extension : .ko
Module extension : .ko
+ echo KO File : cp210x.ko
KO File : cp210x.ko
+ echo Kernel Dir : /lib/modules/2.6.31-16-generic/build
Kernel Dir : /lib/modules/2.6.31-16-generic/build
+ echo Module File : cp2101.ko
Module File : cp2101.ko
+ echo Module Dir : /lib/modules/2.6.31-16-generic
Module Dir : /lib/modules/2.6.31-16-generic
+ echo Current Dir : /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0
Current Dir : /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0
+ echo

+ rm -f defaults.mk
+ echo # Makefile.config
+ echo # Automatically generated
+ echo KVER=2.6.31-16-generic
+ echo KVER1=2
+ echo KVER2=6
+ echo KVER3=31-16-generic
+ echo EXT=.ko
+ echo KOFILE=cp210x.ko
+ echo KDIR=/lib/modules/2.6.31-16-generic/build
+ echo MODFILE=cp2101.ko
+ echo MODDIR=/lib/modules/2.6.31-16-generic
+ echo PWD=/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0
+ kver2=6
+ echo 2.6 Kernel
2.6 Kernel
+ cp ./Makefile26 ./Makefile
+ make -f Makefile26 modules
make -C /lib/modules/2.6.31-16-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.31-16-generic'
CC [M] /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.o
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:79:27: error: asm/semaphore.h: No such file or directory
In file included from /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:96:
/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:724: error: unknown field ‘shutdown’ specified in initializer
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:724: warning: initialization from incompatible pointer type
/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:412: error: ‘struct usb_serial_port’ has no member named ‘tty’
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:413: error: ‘struct usb_serial_port’ has no member named ‘tty’
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:572: 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:680: error: ‘struct usb_serial_port’ has no member named ‘tty’
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:681: 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:766: error: ‘struct usb_serial_port’ has no member named ‘tty’
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:766: error: ‘struct usb_serial_port’ has no member named ‘tty’
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:973: 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:976: error: ‘struct usb_serial_port’ has no member named ‘tty’
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:981: 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:984: 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:1016: error: ‘struct usb_serial_port’ has no member named ‘tty’
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1016: 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:1022: error: ‘struct usb_serial_port’ has no member named ‘tty’
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1027: 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:1216: 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:2419: 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:2441: error: ‘struct usb_serial_port’ has no member named ‘tty’
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:2496: 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:2567: 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:2613: 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:2674: 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_init’:
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:3047: error: implicit declaration of function ‘info’
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.31-16-generic'
make: *** [modules] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.U5TjSG (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.U5TjSG (%build)
+ [ -f /home/cigogo/.rpmmacros.cp210x ]
+ rm /home/cigogo/.rpmmacros
+ mv -f /home/cigogo/.rpmmacros.cp210x /home/cigogo/.rpmmacros

================================================== =====
Then, I edit line
#include <asm/semaphore.h>
to
#include <linux/semaphore.h>

It's failed again:

cigogo@cigogo-desktop:~/cp210x-3.0.0$ sudo ./makerpm
+ uname -r
+ kernel_release=2.6.31-16-generic
+ pwd
+ current_dir=/home/cigogo/cp210x-3.0.0
+ export current_dir
+ [ -f /home/cigogo/.rpmmacros ]
+ mv -f /home/cigogo/.rpmmacros /home/cigogo/.rpmmacros.cp210x
+ cp /home/cigogo/cp210x-3.0.0/cp210x/.rpmmacros /home/cigogo/.rpmmacros
+ d=/var/tmp/silabs
+ [ ! -d /var/tmp/silabs ]
+ cd /var/tmp/silabs
+ r=/var/tmp/silabs/rpmbuild
+ o=cp210x-3.0.0
+ s=/var/tmp/silabs/rpmbuild/SOURCES
+ spec=cp210x-3.0.0.spec
+ rm -rf /var/tmp/silabs/rpmbuild
+ mkdir rpmbuild
+ mkdir rpmbuild/SOURCES
+ mkdir rpmbuild/SRPMS
+ mkdir rpmbuild/SPECS
+ mkdir rpmbuild/BUILD
+ mkdir rpmbuild/RPMS
+ cd /var/tmp/silabs/rpmbuild/SOURCES
+ rm -rf cp210x-3.0.0
+ mkdir cp210x-3.0.0
+ cp -r /home/cigogo/cp210x-3.0.0/cp210x/Makefile24 /home/cigogo/cp210x-3.0.0/cp210x/Makefile26 /home/cigogo/cp210x-3.0.0/cp210x/Rules.make /home/cigogo/cp210x-3.0.0/cp210x/configure /home/cigogo/cp210x-3.0.0/cp210x/configure~ /home/cigogo/cp210x-3.0.0/cp210x/cp210x (copy).c /home/cigogo/cp210x-3.0.0/cp210x/cp210x.c /home/cigogo/cp210x-3.0.0/cp210x/cp210x.c~ /home/cigogo/cp210x-3.0.0/cp210x/cp210x.h /home/cigogo/cp210x-3.0.0/cp210x/installmod cp210x-3.0.0
+ cp -r /home/cigogo/cp210x-3.0.0/cp210x/.rpmmacros cp210x-3.0.0
+ uname -r
+ KVER=2.6.31-16-generic
+ echo 2.6.31-16-generic
+ awk -F . -- { print $1 }
+ KVER1=2
+ echo 2.6.31-16-generic
+ awk -F . -- { print $2 }
+ KVER2=6
+ echo 2.6.31-16-generic
+ sed -e s/2\.6\.//g
+ KVER3=31-16-generic
+ MyCopy=0
+ echo 2.6 Kernel
2.6 Kernel
+ rm -f cp210x-3.0.0.tar
+ rm -f cp210x-3.0.0.tar.gz
+ tar -cf cp210x-3.0.0.tar cp210x-3.0.0
+ gzip cp210x-3.0.0.tar
+ cp /home/cigogo/cp210x-3.0.0/cp210x-3.0.0.spec /var/tmp/silabs/rpmbuild/SPECS
+ echo #Now build the binaries and the rpms
#Now build the binaries and the rpms
+ echo

+ echo /var/tmp/silabs/rpmbuild/SPECS/cp210x-3.0.0.spec
/var/tmp/silabs/rpmbuild/SPECS/cp210x-3.0.0.spec
+ rpmbuild -ba /var/tmp/silabs/rpmbuild/SPECS/cp210x-3.0.0.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.xUfdRJ
+ umask 022
+ cd /var/tmp/silabs/rpmbuild/BUILD
+ kver2=6
+ echo 2.6 Kernel
2.6 Kernel
+ cd /var/tmp/silabs/rpmbuild/BUILD
+ rm -rf cp210x-3.0.0
+ /bin/gzip -dc /var/tmp/silabs/rpmbuild/SOURCES/cp210x-3.0.0.tar.gz
+ /bin/tar -xf -
+ STATUS=0
+ [ 0 -ne 0 ]
+ cd cp210x-3.0.0
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.eaUy3M
+ umask 022
+ cd /var/tmp/silabs/rpmbuild/BUILD
+ cd cp210x-3.0.0
+ sh ./configure
+ CONFIG_FILE=defaults.mk
+ pwd
+ PWD=/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0
+ uname -r
+ KVER=2.6.31-16-generic
+ echo 2.6.31-16-generic
+ awk -F . -- { print $1 }
+ KVER1=2
+ echo 2.6.31-16-generic
+ awk -F . -- { print $2 }
+ KVER2=6
+ echo 2.6.31-16-generic
+ sed -e s/2\.6\.//g
+ KVER3=31-16-generic
+ makefile=Makefile26
+ EXT=.ko
+ KOFILE=cp210x.ko
+ MODFILE=cp2101.ko
+ RULESFILE=
+ uname -r
+ KDIR=/lib/modules/2.6.31-16-generic/build
+ uname -r
+ MODDIR=/lib/modules/2.6.31-16-generic
+ echo

+ echo Kernel version : 2.6.31-16-generic
Kernel version : 2.6.31-16-generic
+ echo Module extension : .ko
Module extension : .ko
+ echo KO File : cp210x.ko
KO File : cp210x.ko
+ echo Kernel Dir : /lib/modules/2.6.31-16-generic/build
Kernel Dir : /lib/modules/2.6.31-16-generic/build
+ echo Module File : cp2101.ko
Module File : cp2101.ko
+ echo Module Dir : /lib/modules/2.6.31-16-generic
Module Dir : /lib/modules/2.6.31-16-generic
+ echo Current Dir : /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0
Current Dir : /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0
+ echo

+ rm -f defaults.mk
+ echo # Makefile.config
+ echo # Automatically generated
+ echo KVER=2.6.31-16-generic
+ echo KVER1=2
+ echo KVER2=6
+ echo KVER3=31-16-generic
+ echo EXT=.ko
+ echo KOFILE=cp210x.ko
+ echo KDIR=/lib/modules/2.6.31-16-generic/build
+ echo MODFILE=cp2101.ko
+ echo MODDIR=/lib/modules/2.6.31-16-generic
+ echo PWD=/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0
+ kver2=6
+ echo 2.6 Kernel
2.6 Kernel
+ cp ./Makefile26 ./Makefile
+ make -f Makefile26 modules
make -C /lib/modules/2.6.31-16-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.31-16-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:96:
/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:724: error: unknown field ‘shutdown’ specified in initializer
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:724: warning: initialization from incompatible pointer type
/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:412: error: ‘struct usb_serial_port’ has no member named ‘tty’
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:413: error: ‘struct usb_serial_port’ has no member named ‘tty’
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:572: 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:680: error: ‘struct usb_serial_port’ has no member named ‘tty’
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:681: 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:766: error: ‘struct usb_serial_port’ has no member named ‘tty’
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:766: error: ‘struct usb_serial_port’ has no member named ‘tty’
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:973: 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:976: error: ‘struct usb_serial_port’ has no member named ‘tty’
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:981: 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:984: 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:1016: error: ‘struct usb_serial_port’ has no member named ‘tty’
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1016: 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:1022: error: ‘struct usb_serial_port’ has no member named ‘tty’
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1027: 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:1216: 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:2419: 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:2441: error: ‘struct usb_serial_port’ has no member named ‘tty’
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:2496: 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:2567: 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:2613: 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:2674: 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_init’:
/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:3047: error: implicit declaration of function ‘info’
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.31-16-generic'
make: *** [modules] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.eaUy3M (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.eaUy3M (%build)
+ [ -f /home/cigogo/.rpmmacros.cp210x ]
+ rm /home/cigogo/.rpmmacros
+ mv -f /home/cigogo/.rpmmacros.cp210x /home/cigogo/.rpmmacros

Anyone who know how to solve it?
Thank you for your assistance in advance.
Email:bibici@tom.com

falko 15th December 2009 16:27

Looks as if you're trying to build an rpm package. You cannot install rpm packages on Debian/Ubuntu - the package format for these distributions is deb, not rpm.


All times are GMT +2. The time now is 21:08.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.