CP210x USB to UART Bridge Linux VCP Drivers(SILICON Labs)

Discussion in 'Kernel Questions' started by perfectpol7, Mar 20, 2009.

  1. perfectpol7

    perfectpol7 New Member

    I have downloaded the drivers for the cp210x-3.0.0 for Linux kernel>2.4 and 2.6 version.
    CP210x USB to UART Bridge VCP Drivers(SILICON Labs)
    https://www.mysilabs.com/tgwWebApp/public/web_content/products/Microcontrollers/USB/en/mcu_vcp.htm

    ((((linux_VCP_driver.tar)))))

    i have it in /home/perfectpol7/Desktop/vcp (folder)
    I have tried to install following the silabs manual but failed to make the rpm modules
    root@ Program ~]# cd /home/perfectpol7
    [root@Program perfectpol7]# dir
    cp210x-3.0.0 Desktop Download Pictures Templates
    cp210x-3.0.0.tar.gz Documents Music Public Videos
    [root@ Program]# tar -xvzf cp210x-3.0.0.tar.gzcp210x-3.0.0/
    cp210x-3.0.0/REPORTING-BUGS
    cp210x-3.0.0/makerpm
    cp210x-3.0.0/cp210x/
    cp210x-3.0.0/cp210x/Makefile26
    cp210x-3.0.0/cp210x/cp210x.h
    cp210x-3.0.0/cp210x/configure
    cp210x-3.0.0/cp210x/Makefile24
    cp210x-3.0.0/cp210x/.rpmmacros
    cp210x-3.0.0/cp210x/installmod
    cp210x-3.0.0/cp210x/cp210x.c
    cp210x-3.0.0/cp210x/Rules.make
    cp210x-3.0.0/copying
    cp210x-3.0.0/RELEASE-NOTES
    cp210x-3.0.0/readme
    cp210x-3.0.0/rpm/
    cp210x-3.0.0/rpm/check-rpaths-worker
    cp210x-3.0.0/rpm/brp-java-repack-jars
    cp210x-3.0.0/rpm/check-rpaths
    cp210x-3.0.0/rpm/brp-python-bytecompile
    cp210x-3.0.0/PACKAGE-LIST
    cp210x-3.0.0/install
    cp210x-3.0.0/cp210x-3.0.0.spec
    [root@ Program perfectpol7]# cd cp210x-3.0.0
    [root@ Program cp210x-3.0.0]# ./makerpm
    ++ uname -r
    + kernel_release=2.6.27.5-117.fc10.i686
    ++ pwd
    + current_dir=/home/perfectpol7/cp210x-3.0.0
    + export current_dir
    + '[' -f /root/.rpmmacros ']'
    + mv -f /root/.rpmmacros /root/.rpmmacros.cp210x
    + cp /home/perfecpol7/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 /home/perfectpol7/cp210x-3.0.0/cp210x/configure /home/perfectpol7/cp210x-3.0.0/cp210x/cp210x.c /home/perfectpol7/cp210x-3.0.0/cp210x/cp210x.h /home/perfectpol7/cp210x-3.0.0/cp210x/defaults.mk /home/perfectpol7/cp210x-3.0.0/cp210x/installmod /home/perfectpol7/cp210x-3.0.0/cp210x/Makefile24 /home/perfectpol7/cp210x-3.0.0/cp210x/Makefile26 /home/perfectpol7/cp210x-3.0.0/cp210x/Rules.make cp210x-3.0.0
    + cp -r /home/perfectpol7/cp210x-3.0.0/cp210x/.rpmmacros cp210x-3.0.0
    ++ uname -r
    + KVER=2.6.27.5-117.fc10.i686
    ++ echo 2.6.27.5-117.fc10.i686
    ++ awk -F . -- '{ print $1 }'
    + KVER1=2
    ++ echo 2.6.27.5-117.fc10.i686
    ++ awk -F . -- '{ print $2 }'
    + KVER2=6
    ++ echo 2.6.27.5-117.fc10.i686
    ++ sed -e 's/2\.6\.//g'
    + KVER3=27.5-117.fc10.i686
    + 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 /home/perfectpol7/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.4glFke
    + umask 022
    + cd /var/tmp/silabs/rpmbuild/BUILD
    + LANG=C
    + export LANG
    + unset DISPLAY
    + kver2=6
    + case $kver2 in
    + echo '2.6 Kernel'
    2.6 Kernel
    + cd /var/tmp/silabs/rpmbuild/BUILD
    + rm -rf cp210x-3.0.0
    + /usr/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
    + /bin/chmod -Rf a+rX,u+w,g-w,o-w .
    + exit 0
    Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.4DRdS1
    + umask 022
    + cd /var/tmp/silabs/rpmbuild/BUILD
    + cd cp210x-3.0.0
    + LANG=C
    + export LANG
    + unset DISPLAY
    + sh ./configure
    + CONFIG_FILE=defaults.mk
    ++ pwd
    + PWD=/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0
    ++ uname -r
    + KVER=2.6.27.5-117.fc10.i686
    ++ echo 2.6.27.5-117.fc10.i686
    ++ awk -F . -- '{ print $1 }'
    + KVER1=2
    ++ echo 2.6.27.5-117.fc10.i686
    ++ awk -F . -- '{ print $2 }'
    + KVER2=6
    ++ sed -e 's/2\.6\.//g'
    ++ echo 2.6.27.5-117.fc10.i686
    + KVER3=27.5-117.fc10.i686
    + case $KVER2 in
    + makefile=Makefile26
    + EXT=.ko
    + KOFILE=cp210x.ko
    + MODFILE=cp2101.ko
    + RULESFILE=
    ++ uname -r
    + KDIR=/lib/modules/2.6.27.5-117.fc10.i686/build
    ++ uname -r
    + MODDIR=/lib/modules/2.6.27.5-117.fc10.i686
    + echo

    + echo 'Kernel version : 2.6.27.5-117.fc10.i686'
    Kernel version : 2.6.27.5-117.fc10.i686
    + echo 'Module extension : .ko'
    Module extension : .ko
    + echo 'KO File : cp210x.ko'
    KO File : cp210x.ko
    + echo 'Kernel Dir : /lib/modules/2.6.27.5-117.fc10.i686/build'
    Kernel Dir : /lib/modules/2.6.27.5-117.fc10.i686/build
    + echo 'Module File : cp2101.ko'
    Module File : cp2101.ko
    + echo 'Module Dir : /lib/modules/2.6.27.5-117.fc10.i686'
    Module Dir : /lib/modules/2.6.27.5-117.fc10.i686
    + 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.27.5-117.fc10.i686
    + echo KVER1=2
    + echo KVER2=6
    + echo KVER3=27.5-117.fc10.i686
    + echo EXT=.ko
    + echo KOFILE=cp210x.ko
    + echo KDIR=/lib/modules/2.6.27.5-117.fc10.i686/build
    + echo MODFILE=cp2101.ko
    + echo MODDIR=/lib/modules/2.6.27.5-117.fc10.i686
    + 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.27.5-117.fc10.i686/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.27.5-117.fc10.i686'
    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: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/kernels/2.6.27.5-117.fc10.i686'
    make: *** [modules] Error 2
    error: Bad exit status from /var/tmp/rpm-tmp.4DRdS1 (%build)


    RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.4DRdS1 (%build)
    + '[' -f /root/.rpmmacros.cp210x ']'
    + rm /root/.rpmmacros
    + mv -f /root/.rpmmacros.cp210x /root/.rpmmacros
    [root@ Program cp210x-3.0.0]#

    Can any one guide me what commands i need to use in terminal to load it or to rectify these errors: RPM build error
    i need it urgently
    I am using Fedora core 10 Kernel 2.6.27.19.2.35.fc10.i686
    please bear with me a the log is too longer but i thought it might help to have a fully analysis of my problem. Thank you for your assistance in advance.
     
  2. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    You must install the package that contains asm/semaphore.h (not sure which one it is) and then try again.
     
  3. crazyy

    crazyy New Member

    any solution

    Hi,
    I have the same problem did you perfectpol7 find any solution?.
    I didn't find out how to install the package that contains asm/semaphore.h

    any idea would be helpful.
    thanks
     
  4. perfectpol7

    perfectpol7 New Member

    Yes managed into install and configure it, now not in office will post the configurations that I used, what is your error message you are getting
     
  5. crazyy

    crazyy New Member

    user@BeataJutta:~/Desktop/cp210x-3.0.0$ sudo ./makerpm
    [sudo] password for user:
    + uname -r
    + kernel_release=2.6.28-11-generic
    + pwd
    + current_dir=/home/user/Desktop/cp210x-3.0.0
    + export current_dir
    + [ -f /home/user/.rpmmacros ]
    + mv -f /home/user/.rpmmacros /home/user/.rpmmacros.cp210x
    + cp /home/user/Desktop/cp210x-3.0.0/cp210x/.rpmmacros /home/user/.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/user/Desktop/cp210x-3.0.0/cp210x/Makefile24 /home/user/Desktop/cp210x-3.0.0/cp210x/Makefile26 /home/user/Desktop/cp210x-3.0.0/cp210x/Rules.make /home/user/Desktop/cp210x-3.0.0/cp210x/configure /home/user/Desktop/cp210x-3.0.0/cp210x/cp210x.c /home/user/Desktop/cp210x-3.0.0/cp210x/cp210x.h /home/user/Desktop/cp210x-3.0.0/cp210x/installmod cp210x-3.0.0
    + cp -r /home/user/Desktop/cp210x-3.0.0/cp210x/.rpmmacros cp210x-3.0.0
    + uname -r
    + KVER=2.6.28-11-generic
    + awk -F . -- { print $1 }
    + echo 2.6.28-11-generic
    + KVER1=2
    + awk -F . -- { print $2 }
    + echo 2.6.28-11-generic
    + KVER2=6
    + echo 2.6.28-11-generic
    + sed -e s/2\.6\.//g
    + KVER3=28-11-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/user/Desktop/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.83182
    + 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
    + tar -xf -
    + STATUS=0
    + [ 0 -ne 0 ]
    + cd cp210x-3.0.0
    + exit 0
    Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.83182
    + 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.28-11-generic
    + echo 2.6.28-11-generic
    + awk -F . -- { print $1 }
    + KVER1=2
    + echo 2.6.28-11-generic
    + awk -F . -- { print $2 }
    + KVER2=6
    + echo 2.6.28-11-generic
    + sed -e s/2\.6\.//g
    + KVER3=28-11-generic
    + makefile=Makefile26
    + EXT=.ko
    + KOFILE=cp210x.ko
    + MODFILE=cp2101.ko
    + RULESFILE=
    + uname -r
    + KDIR=/lib/modules/2.6.28-11-generic/build
    + uname -r
    + MODDIR=/lib/modules/2.6.28-11-generic
    + echo

    + echo Kernel version : 2.6.28-11-generic
    Kernel version : 2.6.28-11-generic
    + echo Module extension : .ko
    Module extension : .ko
    + echo KO File : cp210x.ko
    KO File : cp210x.ko
    + echo Kernel Dir : /lib/modules/2.6.28-11-generic/build
    Kernel Dir : /lib/modules/2.6.28-11-generic/build
    + echo Module File : cp2101.ko
    Module File : cp2101.ko
    + echo Module Dir : /lib/modules/2.6.28-11-generic
    Module Dir : /lib/modules/2.6.28-11-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.28-11-generic
    + echo KVER1=2
    + echo KVER2=6
    + echo KVER3=28-11-generic
    + echo EXT=.ko
    + echo KOFILE=cp210x.ko
    + echo KDIR=/lib/modules/2.6.28-11-generic/build
    + echo MODFILE=cp2101.ko
    + echo MODDIR=/lib/modules/2.6.28-11-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.28-11-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-11-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: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-11-generic'
    make: *** [modules] Error 2
    error: Bad exit status from /var/tmp/rpm-tmp.83182 (%build)


    RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.83182 (%build)
    + [ -f /home/user/.rpmmacros.cp210x ]
    + rm /home/user/.rpmmacros
    + mv -f /home/user/.rpmmacros.cp210x /home/user/.rpmmacros
    user@BeataJutta:~/Desktop/cp210x-3.0.0$
     
  6. crazyy

    crazyy New Member

    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
     
  7. perfectpol7

    perfectpol7 New Member

    Hie your problem is just as the one I had, not an expert but I have done a number of error and trial untill I get it.

    Is you UART connect now, what is the output of ls -l /dev/ttyS*
     
  8. crazyy

    crazyy New Member

    This is the output of ls -l /dev/ttyS*:

    crw-rw---- 1 root dialout 4, 64 2009-07-02 10:50 /dev/ttyS0
    crw-rw---- 1 root dialout 4, 65 2009-07-02 10:50 /dev/ttyS1
    crw-rw---- 1 root dialout 4, 66 2009-07-02 10:50 /dev/ttyS2
    crw-rw---- 1 root dialout 4, 67 2009-07-02 10:50 /dev/ttyS3
     
  9. sanne

    sanne New Member

    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
     
  10. bbartels

    bbartels New Member

    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
     
  11. cigogo

    cigogo New Member

    the same problem

    I have the same problem when I compile CP210x USB to UART Bridge Linux VCP Drivers.
    Anyone who can tell me how to solve it?
    Email:bibici@tom.com
     
  12. repettus

    repettus New Member

    How did you go about doing this? I am in Ubuntu 9.10. I realize that only kernel 2.6 and 2.4.36 are currently supported by the driver at Silabs.com. Semaphore.h appears to be in usr/lib. I do not have an asm/semaphore.h directory. t would be great to be able to get my Vantage Pro2 weather station which uses cp2101 CPRT to UART drivers working in Linux. I wish Silicon Labs would make a driver that is more compatible with other OS's.
     
    Last edited: Apr 7, 2010
  13. morpheus8100

    morpheus8100 New Member

    Same Issue, SiLabs Support Fails

    Hi Guys,

    I've been having pretty much the same issue as everybody else. I'm attempting to install the VCP Linux Drivers (https://www.silabs.com/products/mcu/pages/usbtouartbridgevcpdrivers.aspx)
    for my 2.6 linux kernel but I keep getting tons of errors upon trying to run:

    sudo ./makerpm

    The condensed error output i get is:

    +2.6 Kernel
    Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.91092
    2.6 Kernel
    Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.91092

    Kernel version : 2.6.8-2-386
    Module extension : .ko
    KO File : cp210x.ko
    Kernel Dir : /lib/modules/2.6.8-2-386/build
    Module File : cp2101.ko
    Module Dir : /lib/modules/2.6.8-2-386
    Current Dir : /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0

    2.6 Kernel
    make -C /lib/modules/2.6.8-2-386/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/kernel-headers-2.6.8-2-386'
    CC [M] /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.o
    make[1]: Leaving directory `/usr/src/kernel-headers-2.6.8-2-386'


    RPM build errors:+ uname -r
    + kernel_release=2.6.8-2-386
    ++ pwd
    + current_dir=/home/vcl/cp210x-3.0.0
    + export current_dir
    + '[' -f /home/vcl/.rpmmacros ']'
    + mv -f /home/vcl/.rpmmacros /home/vcl/.rpmmacros.cp210x
    + cp /home/vcl/cp210x-3.0.0/cp210x/.rpmmacros /home/vcl/.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/vcl/cp210x-3.0.0/cp210x/configure /home/vcl/cp210x-3.0.0/cp210x/cp210x.c /home/vcl/cp210x-3.0.0/cp210x/cp210x.h /home/vcl/cp210x-3.0.0/cp210x/defaults.mk /home/vcl/cp210x-3.0.0/cp210x/installmod /home/vcl/cp210x-3.0.0/cp210x/Makefile24 /home/vcl/cp210x-3.0.0/cp210x/Makefile26 /home/vcl/cp210x-3.0.0/cp210x/Rules.make cp210x-3.0.0
    + cp -r /home/vcl/cp210x-3.0.0/cp210x/.rpmmacros cp210x-3.0.0
    ++ uname -r
    + KVER=2.6.8-2-386
    ++ echo 2.6.8-2-386
    ++ awk -F . -- '{ print $1 }'
    + KVER1=2
    ++ echo 2.6.8-2-386
    ++ awk -F . -- '{ print $2 }'
    + KVER2=6
    ++ echo 2.6.8-2-386
    ++ sed -e 's/2\.6\.//g'
    + KVER3=8-2-386
    + MyCopy=0
    + echo '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/vcl/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
    + umask 022
    + cd /var/tmp/silabs/rpmbuild/BUILD
    + kver2=6
    + echo '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
    + exit 0
    + 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.8-2-386
    ++ echo 2.6.8-2-386
    ++ awk -F . -- '{ print $1 }'
    + KVER1=2
    ++ echo 2.6.8-2-386
    ++ awk -F . -- '{ print $2 }'
    + KVER2=6
    ++ echo 2.6.8-2-386
    ++ sed -e 's/2\.6\.//g'
    + KVER3=8-2-386
    + makefile=Makefile26
    + EXT=.ko
    + KOFILE=cp210x.ko
    + MODFILE=cp2101.ko
    + RULESFILE=
    ++ uname -r
    + KDIR=/lib/modules/2.6.8-2-386/build
    ++ uname -r
    + MODDIR=/lib/modules/2.6.8-2-386
    + echo
    + echo 'Kernel version : 2.6.8-2-386'
    + echo 'Module extension : .ko'
    + echo 'KO File : cp210x.ko'
    + echo 'Kernel Dir : /lib/modules/2.6.8-2-386/build'
    + echo 'Module File : cp2101.ko'
    + echo 'Module Dir : /lib/modules/2.6.8-2-386'
    + echo '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.8-2-386
    + echo KVER1=2
    + echo KVER2=6
    + echo KVER3=8-2-386
    + echo EXT=.ko
    + echo KOFILE=cp210x.ko
    + echo KDIR=/lib/modules/2.6.8-2-386/build
    + echo MODFILE=cp2101.ko
    + echo MODDIR=/lib/modules/2.6.8-2-386
    + echo PWD=/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0
    + kver2=6
    + echo '2.6 Kernel'
    + cp ./Makefile26 ./Makefile
    + make -f Makefile26 modules
    In file included from include/asm/thread_info.h:16,
    from include/linux/thread_info.h:21,
    from include/linux/spinlock.h:12,
    from include/linux/mmzone.h:8,
    from include/linux/gfp.h:4,
    from include/linux/slab.h:15,
    from /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:71:
    include/asm/processor.h:87: error: array type has incomplete element type
    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:346: warning: 'struct usb_serial_port' declared inside parameter list
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:346: 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:348: warning: 'struct usb_serial_port' declared inside parameter list
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:352: warning: 'struct usb_serial_port' declared inside parameter list
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:354: warning: 'struct usb_serial_port' declared inside parameter list
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:356: warning: 'struct usb_serial_port' declared inside parameter list
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:359: warning: 'struct usb_serial_port' declared inside parameter list
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:362: warning: 'struct usb_serial_port' declared inside parameter list
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:365: warning: 'struct usb_serial_port' declared inside parameter list
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:370: warning: 'struct usb_serial_port' declared inside parameter list
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:373: warning: 'struct usb_serial_port' declared inside parameter list
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:375: warning: 'struct usb_serial' declared inside parameter list
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:377: warning: 'struct usb_serial' declared inside parameter list
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:379: warning: 'struct usb_serial_port' declared inside parameter list
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:381: warning: 'struct usb_serial_port' declared inside parameter list
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:392: warning: 'struct usb_serial_port' declared inside parameter list
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:394: warning: 'struct usb_serial_port' declared inside parameter list
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:396: warning: 'struct usb_serial_port' declared inside parameter list
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:398: warning: 'struct usb_serial_port' declared inside parameter list
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:400: warning: 'struct usb_serial_port' declared inside parameter list
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:402: warning: 'struct usb_serial_port' declared inside parameter list
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:404: warning: 'struct usb_serial_port' declared inside parameter list
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:409: warning: 'struct usb_serial_port' declared inside parameter list
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:412: warning: 'struct ktermios' declared inside parameter list
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:412: warning: 'struct usb_serial_port' declared inside parameter list
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:418: warning: 'struct usb_serial_port' declared inside parameter list
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:836: error: 'usb_serial_disconnect' undeclared here (not in a function)
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:838: error: unknown field 'no_dynamic_id' specified in initializer
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:838: warning: missing braces around initializer
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:838: warning: (near initialization for 'silabs_cp210x_driver.driver')
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:838: warning: initialization makes pointer from integer without a cast
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:843: error: variable 'silabs_cp210x_device' has initializer but incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:844: error: unknown field 'owner' specified in initializer
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:844: warning: excess elements in struct initializer
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:844: warning: (near initialization for 'silabs_cp210x_device')
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:845: error: unknown field 'name' specified in initializer
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:845: warning: excess elements in struct initializer
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:845: warning: (near initialization for 'silabs_cp210x_device')
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:846: error: unknown field 'usb_driver' specified in initializer
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:846: warning: excess elements in struct initializer
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:846: warning: (near initialization for 'silabs_cp210x_device')
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:847: error: unknown field 'id_table' specified in initializer
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:847: warning: excess elements in struct initializer
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:847: warning: (near initialization for 'silabs_cp210x_device')
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:848: error: unknown field 'num_interrupt_in' specified in initializer
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:848: warning: excess elements in struct initializer
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:848: warning: (near initialization for 'silabs_cp210x_device')
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:849: error: unknown field 'num_bulk_in' specified in initializer
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:849: warning: excess elements in struct initializer
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:849: warning: (near initialization for 'silabs_cp210x_device')
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:850: error: unknown field 'num_bulk_out' specified in initializer
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:850: warning: excess elements in struct initializer
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:850: warning: (near initialization for 'silabs_cp210x_device')
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:851: error: unknown field 'num_ports' specified in initializer
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:851: warning: excess elements in struct initializer
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:851: warning: (near initialization for 'silabs_cp210x_device')
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:852: error: unknown field 'open' specified in initializer
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:852: warning: excess elements in struct initializer
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:852: warning: (near initialization for 'silabs_cp210x_device')
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:853: error: unknown field 'close' specified in initializer
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:853: warning: excess elements in struct initializer
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:853: warning: (near initialization for 'silabs_cp210x_device')
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:854: error: unknown field 'ioctl' specified in initializer
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:854: warning: excess elements in struct initializer
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:854: warning: (near initialization for 'silabs_cp210x_device')
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:855: error: unknown field 'break_ctl' specified in initializer
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:855: warning: excess elements in struct initializer
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:855: warning: (near initialization for 'silabs_cp210x_device')
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:856: error: unknown field 'set_termios' specified in initializer
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:856: warning: excess elements in struct initializer
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:856: warning: (near initialization for 'silabs_cp210x_device')
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:857: error: unknown field 'tiocmget' specified in initializer
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:857: warning: excess elements in struct initializer
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:857: warning: (near initialization for 'silabs_cp210x_device')
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c: In function 'cp210x_get_config_bytes':
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:119: warning: implicit declaration of function 'usb_get_serial_port_data'
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:119: warning: initialization makes pointer from integer without a cast
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:121: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:134: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:134: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:134: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:139: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:140: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:156: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:156: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:156: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c: In function 'cp210x_get_config':
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:177: warning: initialization makes pointer from integer without a cast
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:179: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:181: error: '__le32' undeclared (first use in this function)
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:181: error: (Each undeclared identifier is reported only once
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:181: error: for each function it appears in.)
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:181: error: 'buf' undeclared (first use in this function)
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:183: warning: ISO C90 forbids mixed declarations and code
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:193: warning: implicit declaration of function 'kcalloc'
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:200: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:200: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:200: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:207: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:208: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:224: error: dereferencing pointer to incomplete 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:341: error: conflicting types for 'silabs_cp210x_open'
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:358: error: previous declaration of 'silabs_cp210x_open' was here
    /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:369: warning: assignment makes pointer from integer without a cast
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:379: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:381: warning: implicit declaration of function 'usb_get_serial_data'
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:381: warning: assignment makes pointer from integer without a cast
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:384: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:384: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:384: error: dereferencing pointer to incomplete type
    dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:412: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:425: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:425: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:427: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:428: error: dereferencing pointer to incomplete type
    /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:432: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:454: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:454: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:454: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:454: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:494: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:494: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:494: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:494: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:501: warning: passing argument 1 of 'cp210x_get_serialstat' from incompatible pointer type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:511: warning: passing argument 1 of 'cp210x_get_serialstat' from incompatible pointer type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:516: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:516: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:516: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:516: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:526: warning: passing argument 1 of 'cp210x_get_commprops' from incompatible pointer type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:549: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:549: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:549: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:552: warning: passing argument 1 of 'silabs_cp210x_close' from incompatible pointer type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:564: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:564: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:564: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:567: warning: passing argument 1 of 'silabs_cp210x_close' from incompatible pointer type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:571: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:573: warning: passing argument 1 of 'cp210x_get_termios' from incompatible pointer type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:576: warning: passing argument 1 of 'silabs_cp210x_set_termios' from incompatible pointer type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:586: warning: passing argument 1 of 'cp210x_start_control_thread' from incompatible pointer type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c: In function 'cp210x_close_port':
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:598: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:602: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:604: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:605: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:606: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:607: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:608: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:612: warning: passing argument 1 of 'kfree' makes pointer from integer without a cast
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:613: warning: implicit declaration of function 'usb_set_serial_port_data'
    /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:619: error: conflicting types for 'cp210x_cleanup_port'
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:356: error: previous declaration of 'cp210x_cleanup_port' was here
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:663: warning: assignment makes pointer from integer without a cast
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:664: warning: assignment makes pointer from integer without a cast
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:678: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:679: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:680: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:728: warning: passing argument 1 of 'cp210x_stop_control_thread' 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:751: error: conflicting types for 'cp210x_get_termios'
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:394: error: previous declaration of 'cp210x_get_termios' was here
    /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:763: warning: assignment makes pointer from integer without a cast
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:765: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:765: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:773: warning: pointer targets in passing argument 3 of 'cp210x_get_config' differ in signedness
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:828: warning: pointer targets in passing argument 3 of 'cp210x_get_config' differ in signedness
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:972: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:974: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:975: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:980: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:982: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:983: error: dereferencing pointer to incomplete 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:993: 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:1008: warning: initialization makes pointer from integer without a cast
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1015: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1015: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1020: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1021: error: dereferencing pointer to incomplete type
    /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:1026: 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:1082: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1082: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1082: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1094: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1094: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1094: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1124: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1124: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1124: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1136: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1136: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1136: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1158: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1158: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1158: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1178: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1178: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1178: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1214: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1215: error: dereferencing pointer to incomplete 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:1265: error: conflicting types for 'silabs_cp210x_tiocmset'
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:367: error: previous declaration of 'silabs_cp210x_tiocmset' was here
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c: In function 'silabs_cp210x_tiocmset':
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1272: warning: initialization makes pointer from integer without a cast
    /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:1322: error: conflicting types for 'silabs_cp210x_tiocmget'
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:364: error: previous declaration of 'silabs_cp210x_tiocmget' was here
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c: In function 'silabs_cp210x_tiocmget':
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1326: warning: initialization makes pointer from integer without a cast
    /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:1366: error: conflicting types for 'silabs_cp210x_break_ctl'
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:372: error: previous declaration of 'silabs_cp210x_break_ctl' was here
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c: In function 'cp2101_ctlmsg':
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1394: warning: initialization makes pointer from integer without a cast
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1396: error: dereferencing pointer to incomplete 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:1443: error: conflicting types for 'cp210x_get_partnum'
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:404: error: previous declaration of 'cp210x_get_partnum' was here
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c: In function 'cp210x_get_partnum':
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1450: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1451: warning: initialization makes pointer from integer without a cast
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1455: error: dereferencing pointer to incomplete 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:1517: error: conflicting types for 'cp210x_get_serialstat'
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:396: error: previous declaration of 'cp210x_get_serialstat' was here
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c: In function 'cp210x_get_serialstat':
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1523: warning: initialization makes pointer from integer without a cast
    /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:1578: error: conflicting types for 'cp210x_get_commprops'
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:398: error: previous declaration of 'cp210x_get_commprops' was here
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c: In function 'cp210x_get_commprops':
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1583: warning: initialization makes pointer from integer without a cast
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c: In function 'cp210x_internal_ioctl':
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1700: warning: initialization makes pointer from integer without a cast
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1704: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1705: warning: initialization makes pointer from integer without a cast
    /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:1910: error: conflicting types for 'silabs_cp210x_ioctl'
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:389: error: previous declaration of 'silabs_cp210x_ioctl' was here
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c: In function 'silabs_cp210x_ioctl':
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:1920: warning: initialization makes pointer from integer without a cast
    /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:2070: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:2071: warning: initialization makes pointer from integer without a cast
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:2072: warning: initialization makes pointer from integer without a cast
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:2123: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:2123: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:2123: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:2123: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:2151: warning: implicit declaration of function 'usb_serial_debug_data'
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:2151: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:2160: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:2161: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:2161: error: dereferencing pointer to incomplete type
    /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:2183: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:2196: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:2196: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:2196: error: dereferencing pointer to incomplete 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:2218: error: conflicting types for 'silabs_cp210x_write'
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:406: error: previous declaration of 'silabs_cp210x_write' was here
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c: In function 'silabs_cp210x_write':
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:2223: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:2225: warning: initialization makes pointer from integer without a cast
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:2226: warning: initialization makes pointer from integer without a cast
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:2307: error: dereferencing pointer to incomplete 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:2326: error: conflicting types for 'silabs_cp210x_write_wrapper'
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:416: error: previous declaration of 'silabs_cp210x_write_wrapper' was here
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:2336: error: conflicting types for 'silabs_cp210x_chars_in_buffer'
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:402: error: previous declaration of 'silabs_cp210x_chars_in_buffer' was here
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:2566: error: dereferencing pointer to incomplete type
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:2569: warning: implicit declaration of function 'usb_serial_port_softint'
    /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:2596: error: conflicting types for 'silabs_cp210x_throttle'
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:379: error: previous declaration of 'silabs_cp210x_throttle' was here
    /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:2598: warning: initialization makes pointer from integer without a cast
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:2612: error: dereferencing pointer to incomplete 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:2657: error: conflicting types for 'silabs_cp210x_unthrottle'
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.h:381: error: previous declaration of 'silabs_cp210x_unthrottle' was here
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c: In function 'silabs_cp210x_unthrottle':
    'silabs_cp210x_init':
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:3032: warning: implicit declaration of function 'usb_serial_register'
    /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0/cp210x.c:3040: warning: implicit declaration of function 'usb_serial_deregister'
    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: *** [modules] Error 2
    error: Bad exit status from /var/tmp/rpm-tmp.2134 (%build)
    Bad exit status from /var/tmp/rpm-tmp.2134 (%build)
    + '[' -f /home/vcl/.rpmmacros.cp210x ']'
    + rm /home/vcl/.rpmmacros
    + mv -f /home/vcl/.rpmmacros.cp210x /home/vcl/.rpmmacros




    -------

    So just like everybody else, it appears that something is wrong with cp210x.c.

    Originally I received an error about the rpm build not being able to find serial.h, but I think I either edited cp210x.c or cp210x.h in the folder that contained makerpm, and that error went away.


    I tried emailed Silabs support with their contact webpage, but it just hung for a while after I clicked, 'submit' and then this appeared:

    Does anybody out there have a clue on how to fix the Linux VCP driver installation problem with the makerpm file?
     
  14. repettus

    repettus New Member

    New driver out?

    Looks like there is a new version of the driver for Debian Linux 3.0 out, anyone tried it yet?
     

Share This Page