Никак не могу настроить интернет.
Неопределяется модем.
Попробывал установить usb-modeswitch, нету в репозиториях lenny.
Скачал исходники с официального сайта, попробывал откомпилировать, куча ошибок....
Код: Выделить всё
make install
gcc -Wall -l usb -o usb_modeswitch usb_modeswitch.c
usb_modeswitch.c:66:17: error: usb.h: Нет такого файла или каталога
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
make: *** [usb_modeswitch] Ошибка 1Спасибо.