View Single Post
  #10  
Old 25th August 2009, 01:05
bbartels bbartels is offline
Junior Member
 
Join Date: Aug 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Same Proble here...

I'm receiving exactly the same errors when I try to install the driver.

# ./makerpm
++ uname -r
+ kernel_release=2.6.18-128.4.1.el5.centos.plus
++ pwd
+ current_dir=/root/cp210x-3.0.0
+ export current_dir
+ '[' -f /root/.rpmmacros ']'
+ mv -f /root/.rpmmacros /root/.rpmmacros.cp210x
+ cp /root/cp210x-3.0.0/cp210x/.rpmmacros /root/.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 /root/cp210x-3.0.0/cp210x/configure /root/cp210x-3.0.0/cp210x/cp210x.c /root/cp210x-3.0.0/cp210x/cp210x.h /root/cp210x-3.0.0/cp210x/installmod /root/cp210x-3.0.0/cp210x/Makefile24 /root/cp210x-3.0.0/cp210x/Makefile26 /root/cp210x-3.0.0/cp210x/Rules.make cp210x-3.0.0
+ cp -r /root/cp210x-3.0.0/cp210x/.rpmmacros cp210x-3.0.0
++ uname -r
+ KVER=2.6.18-128.4.1.el5.centos.plus
++ echo 2.6.18-128.4.1.el5.centos.plus
++ awk -F . -- '{ print $1 }'
+ KVER1=2
++ echo 2.6.18-128.4.1.el5.centos.plus
++ awk -F . -- '{ print $2 }'
+ KVER2=6
++ echo 2.6.18-128.4.1.el5.centos.plus
++ sed -e 's/2\.6\.//g'
+ KVER3=18-128.4.1.el5.centos.plus
+ MyCopy=0
+ case $KVER2 in
+ 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 /root/cp210x-3.0.0/cp210x-3.0.0.spec /var/tmp/silabs/rpmbuild/SPECS
+ rpmbuild -ba /var/tmp/silabs/rpmbuild/SPECS/cp210x-3.0.0.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.97497
+ umask 022
+ cd /var/tmp/silabs/rpmbuild/BUILD
+ kver2=6
+ case $kver2 in
+ 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
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd cp210x-3.0.0
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.97497
+ 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.18-128.4.1.el5.centos.plus
++ echo 2.6.18-128.4.1.el5.centos.plus
++ awk -F . -- '{ print $1 }'
+ KVER1=2
++ echo 2.6.18-128.4.1.el5.centos.plus
++ awk -F . -- '{ print $2 }'
+ KVER2=6
++ echo 2.6.18-128.4.1.el5.centos.plus
++ sed -e 's/2\.6\.//g'
+ KVER3=18-128.4.1.el5.centos.plus
+ case $KVER2 in
+ makefile=Makefile26
+ EXT=.ko
+ KOFILE=cp210x.ko
+ MODFILE=cp2101.ko
+ RULESFILE=
++ uname -r
+ KDIR=/lib/modules/2.6.18-128.4.1.el5.centos.plus/build
++ uname -r
+ MODDIR=/lib/modules/2.6.18-128.4.1.el5.centos.plus
+ echo

+ echo 'Kernel version : 2.6.18-128.4.1.el5.centos.plus'
Kernel version : 2.6.18-128.4.1.el5.centos.plus
+ echo 'Module extension : .ko'
Module extension : .ko
+ echo 'KO File : cp210x.ko'
KO File : cp210x.ko
+ echo 'Kernel Dir : /lib/modules/2.6.18-128.4.1.el5.centos.plus/build'
Kernel Dir : /lib/modules/2.6.18-128.4.1.el5.centos.plus/build
+ echo 'Module File : cp2101.ko'
Module File : cp2101.ko
+ echo 'Module Dir : /lib/modules/2.6.18-128.4.1.el5.centos.plus'
Module Dir : /lib/modules/2.6.18-128.4.1.el5.centos.plus
+ echo 'Current Dir : /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0'
Current Dir : /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0
+ case $KVER2 in
+ echo

+ rm -f defaults.mk
+ echo '# Makefile.config'
+ echo '# Automatically generated'
+ echo KVER=2.6.18-128.4.1.el5.centos.plus
+ echo KVER1=2
+ echo KVER2=6
+ echo KVER3=18-128.4.1.el5.centos.plus
+ echo EXT=.ko
+ echo KOFILE=cp210x.ko
+ echo KDIR=/lib/modules/2.6.18-128.4.1.el5.centos.plus/build
+ echo MODFILE=cp2101.ko
+ echo MODDIR=/lib/modules/2.6.18-128.4.1.el5.centos.plus
+ echo PWD=/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0
+ case $KVER2 in
+ kver2=6
+ case $kver2 in
+ echo '2.6 Kernel'
2.6 Kernel
+ cp ./Makefile26 ./Makefile
+ make -f Makefile26 modules
make -C /lib/modules/2.6.18-128.4.1.el5.centos.plus/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/kernels/2.6.18-128.4.1.el5.centos.plus-x86_64'
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/kernels/2.6.18-128.4.1.el5.centos.plus-x86_64'
make: *** [modules] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.97497 (%build)


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

Did anyone find a solution for this issue yet?

Regards,

Berry
Reply With Quote