Codice: Seleziona tutto
fabrizio@ubuntusven:~$ sudo apt-get install libusb-dev wget build-essential
[sudo] password for fabrizio:
Lettura della lista dei pacchetti in corso... Fatto
Generazione dell'albero delle dipendenze in corso
Reading state information... Fatto
wget è già alla versione più recente.
I seguenti pacchetti verranno inoltre installati:
g++ g++-4.1 libc6-dev libstdc++6-4.1-dev linux-libc-dev
Pacchetti suggeriti:
g++-multilib g++-4.1-multilib gcc-4.1-doc glibc-doc manpages-dev
libstdc++6-4.1-doc
I seguenti pacchetti NUOVI (NEW) saranno installati:
build-essential g++ g++-4.1 libc6-dev libstdc++6-4.1-dev libusb-dev
linux-libc-dev
0 aggiornati, 7 installati, 0 da rimuovere e 9 non aggiornati.
E: Impossibile ottenere il lock /var/cache/apt/archives/lock - open (11 Resource temporarily unavailable)
E: Impossibile creare un lock sulla directory di download
fabrizio@ubuntusven:~$ wget http://www.kanoistika.sk/bobovsky/archiv/umts/huaweiAktBbo.c
--14:27:57-- http://www.kanoistika.sk/bobovsky/archiv/umts/huaweiAktBbo.c
=> `huaweiAktBbo.c.3'
Resolving www.kanoistika.sk... 82.119.237.5
Connecting to www.kanoistika.sk|82.119.237.5|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4,981 (4.9K) [text/x-csrc]
100%[====================================>] 4,981 --.--K/s
14:27:58 (34.90 KB/s) - `huaweiAktBbo.c.3' saved [4981/4981]
fabrizio@ubuntusven:~$ cc huaweiAktBbo.c -lusb -o huaweiAktBbo
huaweiAktBbo.c:9:19: error: stdio.h: No such file or directory
huaweiAktBbo.c:10:20: error: stdlib.h: No such file or directory
huaweiAktBbo.c:11:20: error: string.h: No such file or directory
huaweiAktBbo.c:12:20: error: assert.h: No such file or directory
huaweiAktBbo.c:13:20: error: signal.h: No such file or directory
huaweiAktBbo.c:14:19: error: ctype.h: No such file or directory
huaweiAktBbo.c:15:17: error: usb.h: No such file or directory
huaweiAktBbo.c: In function ‘release_usb_device’:
huaweiAktBbo.c:28: warning: incompatible implicit declaration of built-in function ‘printf’
huaweiAktBbo.c:32: warning: incompatible implicit declaration of built-in function ‘exit’
huaweiAktBbo.c: In function ‘list_devices’:
huaweiAktBbo.c:37: warning: assignment makes pointer from integer without a cast
huaweiAktBbo.c:37: error: dereferencing pointer to incomplete type
huaweiAktBbo.c:40: error: dereferencing pointer to incomplete type
huaweiAktBbo.c:40: error: dereferencing pointer to incomplete type
huaweiAktBbo.c:41: warning: incompatible implicit declaration of built-in function ‘printf’
huaweiAktBbo.c:42: error: dereferencing pointer to incomplete type
huaweiAktBbo.c:43: error: dereferencing pointer to incomplete type
huaweiAktBbo.c: In function ‘find_device’:
huaweiAktBbo.c:50: warning: assignment makes pointer from integer without a cast
huaweiAktBbo.c:50: error: dereferencing pointer to incomplete type
huaweiAktBbo.c:53: error: dereferencing pointer to incomplete type
huaweiAktBbo.c:53: error: dereferencing pointer to incomplete type
huaweiAktBbo.c:54: error: dereferencing pointer to incomplete type
huaweiAktBbo.c:55: error: dereferencing pointer to incomplete type
huaweiAktBbo.c:59: error: ‘NULL’ undeclared (first use in this function)
huaweiAktBbo.c:59: error: (Each undeclared identifier is reported only once
huaweiAktBbo.c:59: error: for each function it appears in.)
huaweiAktBbo.c: In function ‘print_bytes’:
huaweiAktBbo.c:66: warning: incompatible implicit declaration of built-in function ‘printf’
huaweiAktBbo.c:68: warning: incompatible implicit declaration of built-in function ‘printf’
huaweiAktBbo.c: In function ‘main’:
huaweiAktBbo.c:109: warning: incompatible implicit declaration of built-in function ‘printf’
huaweiAktBbo.c:115: warning: assignment makes pointer from integer without a cast
huaweiAktBbo.c:118: error: ‘SIGTERM’ undeclared (first use in this function)
huaweiAktBbo.c:169: error: ‘USB_TYPE_STANDARD’ undeclared (first use in this function)
huaweiAktBbo.c:169: error: ‘USB_RECIP_DEVICE’ undeclared (first use in this function)
huaweiAktBbo.c:169: error: ‘USB_REQ_SET_FEATURE’ undeclared (first use in this function)
fabrizio@ubuntusven:~$ sudo cp huaweiAktBbo /sbin/
cp: cannot stat `huaweiAktBbo': No such file or directory
fabrizio@ubuntusven:~$
