Sorry for my english, gentlemans, but i need help.
I have OpenBSD 4.6 system + libusb-0.1.12 + usb-modeswitch-1.1.0 whith a Huawei E1550 device.
When i trying to install usb-modeswitch i got next messages:
========
# cd usb-modeswitch-1.1.0
# make install
gcc -O2 -pipe -Wall -l usb -o usb_modeswitch usb_modeswitch.c
usb_modeswitch.c:66:17: usb.h: No such file or directory
In file included from usb_modeswitch.c:67:
usb_modeswitch.h:30:17: usb.h: No such file or directory
usb_modeswitch.c: In function `main':
usb_modeswitch.c:343: warning: implicit declaration of function `usb_init'
usb_modeswitch.c:346: warning: implicit declaration of function `usb_set_debug'
usb_modeswitch.c:348: warning: implicit declaration of function `usb_find_busses'
usb_modeswitch.c:349: warning: implicit declaration of function `usb_find_devices'
usb_modeswitch.c:397: error: dereferencing pointer to incomplete type
usb_modeswitch.c:398: error: dereferencing pointer to incomplete type
usb_modeswitch.c:400: warning: implicit declaration of function `usb_open'
usb_modeswitch.c:400: warning: assignment makes pointer from integer without a cast
usb_modeswitch.c:407: error: dereferencing pointer to incomplete type
usb_modeswitch.c:409: error: dereferencing pointer to incomplete type
usb_modeswitch.c:411: error: dereferencing pointer to incomplete type
usb_modeswitch.c:561: warning: implicit declaration of function `usb_close'
usb_modeswitch.c: In function `deviceDescription':
usb_modeswitch.c:576: error: dereferencing pointer to incomplete type
usb_modeswitch.c:577: warning: implicit declaration of function `usb_get_string_simple'
usb_modeswitch.c:577: error: dereferencing pointer to incomplete type
usb_modeswitch.c:586: error: dereferencing pointer to incomplete type
usb_modeswitch.c:587: error: dereferencing pointer to incomplete type
usb_modeswitch.c:596: error: dereferencing pointer to incomplete type
usb_modeswitch.c:597: error: dereferencing pointer to incomplete type
usb_modeswitch.c: In function `deviceInquire':
usb_modeswitch.c:629: warning: implicit declaration of function `usb_claim_interface'
usb_modeswitch.c:634: warning: implicit declaration of function `usb_clear_halt'
usb_modeswitch.c:636: warning: implicit declaration of function `usb_bulk_write'
usb_modeswitch.c:642: warning: implicit declaration of function `usb_bulk_read'
usb_modeswitch.c:669: warning: implicit declaration of function `usb_release_interface'
usb_modeswitch.c: In function `resetUSB':
usb_modeswitch.c:685: warning: implicit declaration of function `sleep'
usb_modeswitch.c:687: warning: implicit declaration of function `usb_reset'
usb_modeswitch.c: In function `switchConfiguration':
usb_modeswitch.c:753: warning: implicit declaration of function `usb_set_configuration'
usb_modeswitch.c: In function `switchAltSetting':
usb_modeswitch.c:769: warning: implicit declaration of function `usb_set_altinterface'
usb_modeswitch.c: In function `switchHuaweiMode':
usb_modeswitch.c:786: warning: implicit declaration of function `usb_control_msg'
usb_modeswitch.c:786: error: `USB_TYPE_STANDARD' undeclared (first use in this function)
usb_modeswitch.c:786: error: (Each undeclared identifier is reported only once
usb_modeswitch.c:786: error: for each function it appears in.)
usb_modeswitch.c:786: error: `USB_RECIP_DEVICE' undeclared (first use in this function)
usb_modeswitch.c:786: error: `USB_REQ_SET_FEATURE' undeclared (first use in this function)
usb_modeswitch.c: In function `switchSonyMode':
usb_modeswitch.c:872: warning: assignment makes pointer from integer without a cast
usb_modeswitch.c: In function `detachDriver':
usb_modeswitch.c:909: warning: implicit declaration of function `usb_get_driver_np'
usb_modeswitch.c:926: warning: implicit declaration of function `usb_detach_kernel_driver_np'
usb_modeswitch.c: In function `checkSuccess':
usb_modeswitch.c:982: warning: assignment makes pointer from integer without a cast
usb_modeswitch.c:986: error: dereferencing pointer to incomplete type
usb_modeswitch.c:986: error: dereferencing pointer to incomplete type
usb_modeswitch.c: In function `search_devices':
usb_modeswitch.c
usb_modeswitch.c
usb_modeswitch.c
usb_modeswitch.c
usb_modeswitch.c
usb_modeswitch.c
usb_modeswitch.c
usb_modeswitch.c
usb_modeswitch.c
usb_modeswitch.c
usb_modeswitch.c
usb_modeswitch.c
usb_modeswitch.c
usb_modeswitch.c
usb_modeswitch.c
usb_modeswitch.c
usb_modeswitch.c
usb_modeswitch.c
usb_modeswitch.c
usb_modeswitch.c: In function `find_first_bulk_output_endpoint':
usb_modeswitch.c
usb_modeswitch.c
usb_modeswitch.c
usb_modeswitch.c
usb_modeswitch.c
usb_modeswitch.c
usb_modeswitch.c
usb_modeswitch.c
usb_modeswitch.c
usb_modeswitch.c: In function `find_first_bulk_input_endpoint':
usb_modeswitch.c
usb_modeswitch.c
usb_modeswitch.c
usb_modeswitch.c
usb_modeswitch.c
usb_modeswitch.c
usb_modeswitch.c
usb_modeswitch.c
usb_modeswitch.c
*** Error code 1
Stop in /opt/usb-modeswitch-1.1.0 (line 20 of Makefile).
#
======
May be problem with tclsh?
==
# tclsh
ksh: tclsh: not found
# tclsh8.5
% exit
# pkg_info
bzip2-1.0.5 block-sorting file compressor, unencumbered
ee-1.4.6p1 easy to use text editor
gettext-0.17p0 GNU gettext
glib2-2.18.4p3 general-purpose utility library
libiconv-1.13 character set conversion library
libusb-0.1.12 USB access library
mc-4.6.1p1 free Norton Commander clone with many useful features
pcre-7.9 perl-compatible regular expression library
tcl-8.5.7 Tool Command Language
unzip-5.52p0 extract, list & test files in a ZIP archive
wget-1.11.4 retrieve files from the web via HTTP, HTTPS and FTP
zip-3.0 create/update ZIP files compatible with PKZip(tm)
#
===
Very gratefully for any help.