openct port and USB2

Hans Petter Selasky hselasky at c2i.net
Wed Mar 18 14:09:04 PDT 2009


On Wednesday 18 March 2009, Mike Tancsa wrote:
> Hi,
>          I was trying to see if OpenCT and OpenSC work under the new
> USB regime, but openCT doesnt compile now.  Are there any tricks to
> get it to compile and or work ?
>
> .
> .
> .
> mv -f .deps/libifd_la-sys-sunray.Tpo .deps/libifd_la-sys-sunray.Plo
> /bin/sh ../../libtool --tag=CC   --mode=compile cc -DHAVE_CONFIG_H
> -I. -I../..     -I../../src/include
> -I../../src/include   -I/usr/local/include -O2 -pipe
> -fno-strict-aliasing -MT libifd_la-sys-solaris.lo -MD -MP -MF
> .deps/libifd_la-sys-solaris.Tpo -c -o libifd_la-sys-solaris.lo `test
> -f 'sys-solaris.c' || echo './'`sys-solaris.c
>   cc -DHAVE_CONFIG_H -I. -I../.. -I../../src/include
> -I../../src/include -I/usr/local/include -O2 -pipe
> -fno-strict-aliasing -MT libifd_la-sys-solaris.lo -MD -MP -MF
> .deps/libifd_la-sys-solaris.Tpo -c sys-solaris.c  -fPIC -DPIC -o
> .libs/libifd_la-sys-solaris.o
>   cc -DHAVE_CONFIG_H -I. -I../.. -I../../src/include
> -I../../src/include -I/usr/local/include -O2 -pipe
> -fno-strict-aliasing -MT libifd_la-sys-solaris.lo -MD -MP -MF
> .deps/libifd_la-sys-solaris.Tpo -c sys-solaris.c -o
> libifd_la-sys-solaris.o >/dev/null 2>&1
> mv -f .deps/libifd_la-sys-solaris.Tpo .deps/libifd_la-sys-solaris.Plo
> /bin/sh ../../libtool --tag=CC   --mode=compile cc -DHAVE_CONFIG_H
> -I. -I../..     -I../../src/include
> -I../../src/include   -I/usr/local/include -O2 -pipe
> -fno-strict-aliasing -MT libifd_la-sys-bsd.lo -MD -MP -MF
> .deps/libifd_la-sys-bsd.Tpo -c -o libifd_la-sys-bsd.lo `test -f
> 'sys-bsd.c' || echo './'`sys-bsd.c
>   cc -DHAVE_CONFIG_H -I. -I../.. -I../../src/include
> -I../../src/include -I/usr/local/include -O2 -pipe
> -fno-strict-aliasing -MT libifd_la-sys-bsd.lo -MD -MP -MF
> .deps/libifd_la-sys-bsd.Tpo -c sys-bsd.c  -fPIC -DPIC -o
> .libs/libifd_la-sys-bsd.o
> sys-bsd.c: In function 'ifd_sysdep_usb_bulk':
> sys-bsd.c:113: error: 'USB_SET_SHORT_XFER' undeclared (first use in
> this function)
> sys-bsd.c:113: error: (Each undeclared identifier is reported only once
> sys-bsd.c:113: error: for each function it appears in.)
> sys-bsd.c: In function 'ifd_sysdep_usb_control':
> sys-bsd.c:243: error: storage size of 'ctrl' isn't known
> sys-bsd.c:256: error: 'USBD_SHORT_XFER_OK' undeclared (first use in
> this function)
> sys-bsd.c:265: error: 'USB_SET_TIMEOUT' undeclared (first use in this
> function) sys-bsd.c:272: error: 'USB_DO_REQUEST' undeclared (first use in
> this function) sys-bsd.c: In function 'ifd_sysdep_usb_set_configuration':
> sys-bsd.c:291: error: 'USB_SET_CONFIG' undeclared (first use in this
> function) sys-bsd.c: In function 'ifd_sysdep_usb_set_interface':
> sys-bsd.c:312: error: 'USB_SET_ALTINTERFACE' undeclared (first use in
> this function)
> sys-bsd.c: In function 'ifd_scan_usb':
> sys-bsd.c:378: error: 'USB_MAX_DEVICES' undeclared (first use in this
> function) sys-bsd.c:379: error: storage size of 'device_info' isn't known
> sys-bsd.c:386: error: 'USB_DEVICEINFO' undeclared (first use in this
> function) gmake[3]: *** [libifd_la-sys-bsd.lo] Error 1
> gmake[3]: Leaving directory
> `/usr/ports/security/openct/work/openct-0.6.15/src/ifd'
> gmake[2]: *** [all-recursive] Error 1
> gmake[2]: Leaving directory
> `/usr/ports/security/openct/work/openct-0.6.15/src' gmake[1]: ***
> [all-recursive] Error 1
> gmake[1]: Leaving directory `/usr/ports/security/openct/work/openct-0.6.15'
> gmake: *** [all] Error 2
> *** Error code 2
>
> Stop in /usr/ports/security/openct.
> *** Error code 1
>
> Stop in /usr/ports/security/openct.
> 1[i7]#
>
>          ---Mike
>

You need to check in the sources if there is a libusb-based backend which you 
can use! Else the old way is still supported, but ioctl numbers have changed. 
See /usr/include/dev/usb/usb_ioctl.h

--HPS


More information about the freebsd-usb mailing list