OpenBSD + usb_modeswitch + libusb-0.1.12

Вопросы настройки и работы с этой ОС.
Правила форума
Убедительная просьба юзать теги [cоde] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
aleks_grey
проходил мимо
Сообщения: 1
Зарегистрирован: 2010-03-10 7:40:09

OpenBSD + usb_modeswitch + libusb-0.1.12

Непрочитанное сообщение aleks_grey » 2010-03-10 7:52:10

Добрый день, господа!

Пытаюсь подключить к серверу под управлением OpenBSD 4.6 3G modem Huawei E1550. По умолчанию он определяется как zero-cd.
В принципе понимаю, что нужно установить usb_modeswitch и создать ppp соединение. ИМенно с OpenBSD ранее не работал, предпочитаю FreeBSD, поэтому каких-то нюансов не знаю...

При попытке скомпилировать usb_modeswitch происходит ситуация, уже описанная http://www.draisberghof.de/usb_modeswit ... =2010#2010.

С вашего позволения я приведу только шибки, возникающие при компиляции:

Код: Выделить всё

make
gcc -O2 -pipe -Wall -l usb -o usb_modeswitch usb_modeswitch.c
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:1093: warning: implicit declaration of function `usb_get_busses'
usb_modeswitch.c:1093: warning: assignment makes pointer from integer without a cast
usb_modeswitch.c:1093: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1095: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1095: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1097: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1097: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1098: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1119: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1126: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1126: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1128: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1138: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1142: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1144: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1146: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1147: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1153: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1153: error: dereferencing pointer to incomplete type
usb_modeswitch.c: In function `find_first_bulk_output_endpoint':
usb_modeswitch.c:1176: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1179: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1180: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1181: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1181: error: `USB_ENDPOINT_TYPE_MASK' undeclared (first use in this function)
usb_modeswitch.c:1181: error: `USB_ENDPOINT_TYPE_BULK' undeclared (first use in this function)
usb_modeswitch.c:1182: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1182: error: `USB_ENDPOINT_DIR_MASK' undeclared (first use in this function)
usb_modeswitch.c:1183: error: dereferencing pointer to incomplete type
usb_modeswitch.c: In function `find_first_bulk_input_endpoint':
usb_modeswitch.c:1194: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1197: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1198: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1199: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1199: error: `USB_ENDPOINT_TYPE_MASK' undeclared (first use in this function)
usb_modeswitch.c:1199: error: `USB_ENDPOINT_TYPE_BULK' undeclared (first use in this function)
usb_modeswitch.c:1200: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1200: error: `USB_ENDPOINT_DIR_MASK' undeclared (first use in this function)
usb_modeswitch.c:1201: error: dereferencing pointer to incomplete type
*** Error code 1

Stop in /opt/usb-modeswitch-1.1.0 (line 20 of Makefile).
Кто нибудь сталкивался с подобной ситуацией? Или же есть другой путь решения?
Заранее спасибо.

Хостинговая компания Host-Food.ru
Хостинг HostFood.ru
 

Услуги хостинговой компании Host-Food.ru

Хостинг HostFood.ru

Тарифы на хостинг в России, от 12 рублей: https://www.host-food.ru/tariffs/hosting/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2000 рублей (HP Proliant G5, Intel Xeon E5430 (2.66GHz, Quad-Core, 12Mb), 8Gb RAM, 2x300Gb SAS HDD, P400i, 512Mb, BBU):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/

Аватара пользователя
BlackCat
прапорщик
Сообщения: 469
Зарегистрирован: 2007-10-16 22:40:42

Меня терзают смутные сомнения (с)

Непрочитанное сообщение BlackCat » 2010-03-16 12:47:28

USB_ModeSwitch site писал(а):USB_ModeSwitch - Activating Switchable USB Devices on Linux
Эта утилита вообще может работать на системах отличных от Linux? Может проще найти родную OpenBSD-утилиту или повторить необходимый функционал, чем реанимировать пациента, оказавшегося в среде, не совместимой с жизнедеятельностью?

Flex
проходил мимо

Re: OpenBSD + usb_modeswitch + libusb-0.1.12

Непрочитанное сообщение Flex » 2010-04-30 22:22:53

у меня на CentOS'е такая же фигня. Что делать не знаю :(