Ho ubuntu 5.10 e il modem usb zyxel 600 dotato di chip connexant.
Ho seguito la guida di cxacru.altervista.org,
Ho installato il compilatore gcc dal gestore dei pacchetti synaptic,ho fatto cerca ho messo ppp e ho marcato e installato i pacchetti.
Ho scaricato il tar cxacru da sourceforge (la versione vekkia obsoleta).
Ho estratto il tutto manualmente su /usr/src
E poi ho fatto questo dal terminale (da root):
root@IMEDIA:/usr/src/cxacru# make
cd init && make clean
make[1]: Entering directory `/usr/src/cxacru/init'
rm -f cxload cxioctl cxloaddbg cxloaddbgt
make[1]: Leaving directory `/usr/src/cxacru/init'
cd module && make clean
grep: /lib/modules/2.6.12-9-386/build/include/linux/atmdev.h: No such file or directory
make[1]: Entering directory `/usr/src/cxacru/module'
rm -f cxacrunormal.o sarlib.o sartest cxacru.o cxacrudebug.o cxacrudbg.o version.h
make[1]: Leaving directory `/usr/src/cxacru/module'
cd module2 && make clean
make[1]: Entering directory `/usr/src/cxacru/module2'
rm -f *.o .*.flags *.ko *.mod.* .*.o.cmd .*.ko.cmd
make[1]: Leaving directory `/usr/src/cxacru/module2'
cd sarlib && make clean
grep: /lib/modules/2.6.12-9-386/build/include/linux/atmdev.h: No such file or directory
grep: /lib/modules/2.6.12-9-386/build/include/linux/atmdev.h: No such file or directory
make[1]: Entering directory `/usr/src/cxacru/sarlib'
/bin/rm -f *.o
make[1]: Leaving directory `/usr/src/cxacru/sarlib'
cd panel && make clean
make[1]: Entering directory `/usr/src/cxacru/panel'
rm -f cxpanel *.bak
make[1]: Leaving directory `/usr/src/cxacru/panel'
cd bridged && make clean
make[1]: Entering directory `/usr/src/cxacru/bridged'
rm -f br2684ctl
make[1]: Leaving directory `/usr/src/cxacru/bridged'
cd init && make && make install
make[1]: Entering directory `/usr/src/cxacru/init'
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -pipe -march=i686 -Wall -DLINUX -I../include -lusb -lpthread cxload.c -o cxload
cxload.c:127:19: error: stdio.h: No such file or directory
cxload.c:128:20: error: stdlib.h: No such file or directory
cxload.c:129:20: error: string.h: No such file or directory
cxload.c:130:18: error: time.h: No such file or directory
cxload.c:131:21: error: pthread.h: No such file or directory
cxload.c:132:17: error: usb.h: No such file or directory
In file included from cxload.c:133:
../include/usbi.h:6:19: error: error.h: No such file or directory
In file included from cxload.c:133:
../include/usbi.h:49: error: syntax error before ‘*’ token
../include/usbi.h:49: warning: function declaration isn’t a prototype
../include/usbi.h:54: error: syntax error before ‘*’ token
../include/usbi.h:54: warning: function declaration isn’t a prototype
../include/usbi.h:55: error: syntax error before ‘*’ token
../include/usbi.h:55: warning: function declaration isn’t a prototype
cxload.c:134:21: error: libintl.h: No such file or directory
cxload.c:135:20: error: locale.h: No such file or directory
cxload.c:136:22: error: sys/stat.h: No such file or directory
cxload.c:137:22: error: sys/time.h: No such file or directory
cxload.c:138:20: error: unistd.h: No such file or directory
cxload.c: In function ‘file_exists’:
cxload.c:204: error: storage size of ‘info_file’ isn’t known
cxload.c:206: warning: implicit declaration of function ‘stat’
cxload.c:204: warning: unused variable ‘info_file’
cxload.c: In function ‘print_char’:
cxload.c:213: warning: implicit declaration of function ‘printf’
cxload.c:213: warning: incompatible implicit declaration of built-in function ‘printf’
cxload.c: In function ‘dump’:
cxload.c:226: warning: incompatible implicit declaration of built-in function ‘printf’
cxload.c: At top level:
cxload.c:236: error: syntax error before ‘*’ token
cxload.c:237: warning: function declaration isn’t a prototype
cxload.c: In function ‘transfer_ctrl_msg’:
cxload.c:247: warning: implicit declaration of function ‘usb_control_msg’
cxload.c:247: error: ‘adsl_handle’ undeclared (first use in this function)
cxload.c:247: error: (Each undeclared identifier is reported only once
cxload.c:247: error: for each function it appears in.)
cxload.c:247: error: ‘requesttype’ undeclared (first use in this function)
cxload.c:247: error: ‘request’ undeclared (first use in this function)
cxload.c:247: error: ‘value’ undeclared (first use in this function)
cxload.c:247: error: ‘index’ undeclared (first use in this function)
cxload.c:247: error: ‘buf’ undeclared (first use in this function)
cxload.c:247: error: ‘size’ undeclared (first use in this function)
cxload.c:257: warning: incompatible implicit declaration of built-in function ‘printf’
cxload.c:257: warning: implicit declaration of function ‘gettext’
cxload.c:257: warning: incompatible implicit declaration of built-in function ‘gettext’
cxload.c:257: warning: implicit declaration of function ‘usb_strerror’
cxload.c:257: warning: format ‘%s’ expects type ‘char *’, but argument 2 has type ‘int’
cxload.c:259: warning: implicit declaration of function ‘usb_clear_halt’
cxload.c:268: warning: incompatible implicit declaration of built-in function ‘printf’
cxload.c:268: warning: incompatible implicit declaration of built-in function ‘gettext’
cxload.c: At top level:
cxload.c:275: error: syntax error before ‘*’ token
cxload.c:276: warning: function declaration isn’t a prototype
cxload.c: In function ‘read_bulk’:
cxload.c:281: warning: implicit declaration of function ‘memset’
cxload.c:281: warning: incompatible implicit declaration of built-in function ‘memset’
cxload.c:281: error: ‘buf’ undeclared (first use in this function)
cxload.c:287: warning: implicit declaration of function ‘usb_bulk_read’
cxload.c:287: error: ‘adsl_handle’ undeclared (first use in this function)
cxload.c:287: error: ‘ep’ undeclared (first use in this function)
cxload.c:287: error: ‘size’ undeclared (first use in this function)
cxload.c:297: warning: incompatible implicit declaration of built-in function ‘printf’
cxload.c:297: warning: incompatible implicit declaration of built-in function ‘gettext’
cxload.c:297: warning: format ‘%s’ expects type ‘char *’, but argument 2 has type ‘int’
cxload.c:307: warning: incompatible implicit declaration of built-in function ‘printf’
cxload.c:307: warning: incompatible implicit declaration of built-in function ‘gettext’
cxload.c: At top level:
cxload.c:314: error: syntax error before ‘*’ token
cxload.c:315: warning: function declaration isn’t a prototype
cxload.c: In function ‘send_bulk’:
cxload.c:321: error: ‘nfil’ undeclared (first use in this function)
cxload.c:327: warning: implicit declaration of function ‘usb_bulk_write’
cxload.c:327: error: ‘adsl_handle’ undeclared (first use in this function)
cxload.c:327: error: ‘ep’ undeclared (first use in this function)
cxload.c:327: error: ‘buf’ undeclared (first use in this function)
cxload.c:327: error: ‘ncol’ undeclared (first use in this function)
cxload.c:337: warning: incompatible implicit declaration of built-in function ‘printf’
cxload.c:337: warning: incompatible implicit declaration of built-in function ‘gettext’
cxload.c:337: warning: format ‘%s’ expects type ‘char *’, but argument 2 has type ‘int’
cxload.c:347: warning: incompatible implicit declaration of built-in function ‘printf’
cxload.c:347: warning: incompatible implicit declaration of built-in function ‘gettext’
cxload.c: At top level:
cxload.c:383: error: syntax error before ‘*’ token
cxload.c:384: warning: function declaration isn’t a prototype
cxload.c: In function ‘dispatch_info’:
cxload.c:389: error: ‘time_t’ undeclared (first use in this function)
cxload.c:389: error: syntax error before ‘first’
cxload.c:392: warning: implicit declaration of function ‘time’
cxload.c:392: error: ‘first’ undeclared (first use in this function)
cxload.c:396: warning: incompatible implicit declaration of built-in function ‘memset’
cxload.c:397: error: ‘adsl_handle’ undeclared (first use in this function)
cxload.c:411: warning: implicit declaration of function ‘memcpy’
cxload.c:411: warning: incompatible implicit declaration of built-in function ‘memcpy’
cxload.c:438: warning: incompatible implicit declaration of built-in function ‘printf’
cxload.c:438: warning: incompatible implicit declaration of built-in function ‘gettext’
cxload.c:438: warning: format ‘%s’ expects type ‘char *’, but argument 2 has type ‘int’
cxload.c:442: warning: implicit declaration of function ‘usb_resetep’
cxload.c:443: warning: implicit declaration of function ‘sleep’
cxload.c:447: error: ‘last’ undeclared (first use in this function)
cxload.c:449: warning: implicit declaration of function ‘difftime’
cxload.c:449: error: ‘timeout’ undeclared (first use in this function)
cxload.c:453: warning: incompatible implicit declaration of built-in function ‘printf’
cxload.c:453: warning: incompatible implicit declaration of built-in function ‘gettext’
cxload.c: At top level:
cxload.c:459: error: syntax error before ‘*’ token
cxload.c:460: warning: function declaration isn’t a prototype
cxload.c: In function ‘send_cmd_wait_answers’:
cxload.c:464: error: ‘adsl_handle’ undeclared (first use in this function)
cxload.c:464: error: ‘NULL’ undeclared (first use in this function)
cxload.c:464: error: ‘buf’ undeclared (first use in this function)
cxload.c:470: error: ‘answers’ undeclared (first use in this function)
cxload.c:471: error: ‘wait’ undeclared (first use in this function)
cxload.c:472: error: ‘timeout’ undeclared (first use in this function)
cxload.c: In function ‘format_message’:
cxload.c:487: warning: incompatible implicit declaration of built-in function ‘memset’
cxload.c:497: warning: incompatible implicit declaration of built-in function ‘memcpy’
cxload.c: At top level:
cxload.c:501: error: syntax error before ‘*’ token
cxload.c:502: warning: function declaration isn’t a prototype
cxload.c: In function ‘write_value’:
cxload.c:505: warning: incompatible implicit declaration of built-in function ‘memset’
cxload.c:506: error: ‘value’ undeclared (first use in this function)
cxload.c:510: error: ‘address’ undeclared (first use in this function)
cxload.c:511: error: ‘adsl_handle’ undeclared (first use in this function)
cxload.c: At top level:
cxload.c:518: error: syntax error before ‘*’ token
cxload.c:519: warning: function declaration isn’t a prototype
cxload.c: In function ‘send_cmd’:
cxload.c:522: warning: incompatible implicit declaration of built-in function ‘memset’
cxload.c:523: error: ‘id’ undeclared (first use in this function)
cxload.c:525: error: ‘adsl_handle’ undeclared (first use in this function)
cxload.c:527: error: ‘answers’ undeclared (first use in this function)
cxload.c: At top level:
cxload.c:532: error: syntax error before ‘*’ token
cxload.c:533: warning: function declaration isn’t a prototype
cxload.c: In function ‘send_cmd_wait’:
cxload.c:536: warning: incompatible implicit declaration of built-in function ‘memset’
cxload.c:537: error: ‘id’ undeclared (first use in this function)
cxload.c:538: error: ‘adsl_handle’ undeclared (first use in this function)
cxload.c:538: error: ‘wait’ undeclared (first use in this function)
cxload.c:538: error: ‘answers’ undeclared (first use in this function)
cxload.c:538: error: ‘timeout’ undeclared (first use in this function)
cxload.c: At top level:
cxload.c:542: error: syntax error before ‘*’ token
cxload.c:543: warning: function declaration isn’t a prototype
cxload.c: In function ‘send_cmd_value’:
cxload.c:546: warning: incompatible implicit declaration of built-in function ‘memset’
cxload.c:547: error: ‘id’ undeclared (first use in this function)
cxload.c:547: error: ‘value’ undeclared (first use in this function)
cxload.c:549: error: ‘adsl_handle’ undeclared (first use in this function)
cxload.c:551: error: ‘answers’ undeclared (first use in this function)
cxload.c: At top level:
cxload.c:556: error: syntax error before ‘*’ token
cxload.c:557: warning: function declaration isn’t a prototype
cxload.c: In function ‘send_goto_cmd’:
cxload.c:560: warning: incompatible implicit declaration of built-in function ‘memset’
cxload.c:561: error: ‘address’ undeclared (first use in this function)
cxload.c:562: error: ‘adsl_handle’ undeclared (first use in this function)
cxload.c: In function ‘write_configuration’:
cxload.c:571: error: ‘FILE’ undeclared (first use in this function)
cxload.c:571: error: ‘params’ undeclared (first use in this function)
cxload.c:573: warning: implicit declaration of function ‘fopen’
cxload.c:574: error: ‘NULL’ undeclared (first use in this function)
cxload.c:576: warning: incompatible implicit declaration of built-in function ‘printf’
cxload.c:576: warning: incompatible implicit declaration of built-in function ‘gettext’
cxload.c:579: warning: implicit declaration of function ‘fprintf’
cxload.c:579: warning: incompatible implicit declaration of built-in function ‘fprintf’
cxload.c:581: warning: incompatible implicit declaration of built-in function ‘printf’
cxload.c:581: warning: incompatible implicit declaration of built-in function ‘gettext’
cxload.c:584: warning: implicit declaration of function ‘fclose’
cxload.c: At top level:
cxload.c:589: error: syntax error before ‘*’ token
cxload.c:590: warning: function declaration isn’t a prototype
cxload.c: In function ‘send_configuration’:
cxload.c:593: error: ‘last’ undeclared (first use in this function)
cxload.c:593: error: ‘first’ undeclared (first use in this function)
cxload.c:605: warning: incompatible implicit declaration of built-in function ‘memset’
cxload.c:623: error: ‘adsl_handle’ undeclared (first use in this function)
cxload.c: At top level:
cxload.c:630: error: syntax error before ‘*’ token
cxload.c:630: warning: function declaration isn’t a prototype
cxload.c: In function ‘clear_endpoints’:
cxload.c:631: error: ‘adsl_handle’ undeclared (first use in this function)
cxload.c: At top level:
cxload.c:644: error: syntax error before ‘*’ token
cxload.c:645: warning: function declaration isn’t a prototype
cxload.c: In function ‘send_block’:
cxload.c:646: error: ‘len’ undeclared (first use in this function)
cxload.c:663: warning: incompatible implicit declaration of built-in function ‘memset’
cxload.c:664: warning: incompatible implicit declaration of built-in function ‘memcpy’
cxload.c:664: error: ‘bufin’ undeclared (first use in this function)
cxload.c:670: error: ‘place’ undeclared (first use in this function)
cxload.c:675: error: ‘adsl_handle’ undeclared (first use in this function)
cxload.c: At top level:
cxload.c:684: error: syntax error before ‘*’ token
cxload.c:685: warning: function declaration isn’t a prototype
cxload.c: In function ‘load_firmware’:
cxload.c:687: error: ‘FILE’ undeclared (first use in this function)
cxload.c:687: error: ‘soft’ undeclared (first use in this function)
cxload.c:693: error: ‘time_t’ undeclared (first use in this function)
cxload.c:693: error: syntax error before ‘first’
cxload.c:696: error: ‘adsl_handle’ undeclared (first use in this function)
cxload.c:699: warning: incompatible implicit declaration of built-in function ‘printf’
cxload.c:699: warning: incompatible implicit declaration of built-in function ‘gettext’
cxload.c:701: error: ‘NULL’ undeclared (first use in this function)
cxload.c:706: warning: implicit declaration of function ‘fseek’
cxload.c:706: error: ‘SEEK_END’ undeclared (first use in this function)
cxload.c:707: warning: implicit declaration of function ‘ftell’
cxload.c:753: error: ‘SEEK_SET’ undeclared (first use in this function)
cxload.c:755: warning: implicit declaration of function ‘fread’
cxload.c:850: error: ‘first’ undeclared (first use in this function)
cxload.c:850: error: ‘before’ undeclared (first use in this function)
cxload.c:857: error: ‘last’ undeclared (first use in this function)
cxload.c:860: warning: implicit declaration of function ‘fflush’
cxload.c:860: error: ‘stdout’ undeclared (first use in this function)
cxload.c: In function ‘init_modem’:
cxload.c:908: warning: incompatible implicit declaration of built-in function ‘memset’
cxload.c:909: error: ‘NULL’ undeclared (first use in this function)
cxload.c:910: error: dereferencing pointer to incomplete type
cxload.c:911: error: dereferencing pointer to incomplete type
cxload.c: In function ‘main’:
cxload.c
cxload.c
cxload.c
cxload.c
cxload.c
cxload.c
cxload.c
cxload.c
cxload.c
cxload.c
cxload.c
cxload.c
cxload.c
cxload.c
cxload.c
cxload.c
cxload.c
cxload.c
cxload.c
cxload.c
cxload.c
cxload.c
cxload.c
cxload.c
cxload.c
cxload.c
cxload.c
make[1]: *** [cxload] Error 1
make[1]: Leaving directory `/usr/src/cxacru/init'
make: *** [CX_INIT] Error 2
root@IMEDIA:/usr/src/cxacru#
Cosa è successo??
Sapete qualcosa?
