Mak
09-11-2007, 11:49
Salve a tutti,
ho installato Ubuntu 7.04 x amd64, dopo un breve giro tra le varie applicazioni ho provato ad installare il modem.
Ho un Fastrate100 usb, quello fornito da aliceadsl, ho cercato su internet (con win) i driver e guide all'installazione,
(http://wiki.ubuntu-it.org/Hardware/Modem/FastrateUSB100 , ecc.) ce ne sono diverse, riferite a versioni precedenti ma pensavo non dovesse cambiare molto dalla mia, unico dubbio è x l'amd64.
I problemi sorgono dopo questo comando:
make modules CC=/usr/bin/gcc-3.4
non trova gcc-3.4 accedo alla dir e vedo che ho gcc-4.1 come compilatore, quindi provo a fare:
make modules CC=/usr/bin/gcc-4.1
il putiferio!!!!
un casino di errori cominciano così:
for i in libm unicorn_pci unicorn_usb ; do make -C $i modules MODDIR=/home/marco/unicorn/$i ; done
make[1]: Entering directory `/home/marco/unicorn/libm'
/usr/bin/gcc-4.1 -O2 -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o e_powf.o e_powf.c
In file included from e_powf.c:20:
math.h:98:23: error: sys/cdefs.h: No such file or directory
In file included from e_powf.c:20:
math.h:103: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘extern’
quest'ultima riga ripetuta un centinaio di volte (i caratteri strani sono diversi tra linux e win)
In file included from e_powf.c:21:
math_private.h:20:23: error: sys/types.h: No such file or directory
In file included from e_powf.c:21:
math_private.h:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘typedef’
math_private.h:57: error: expected specifier-qualifier-list before ‘u_int32_t’
math_private.h:60: error: conflicting types for ‘ieee_double_shape_type’
math_private.h:46: error: previous declaration of ‘ieee_double_shape_type’ was here
math_private.h:153: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__P’
quest'ultima riga ripetuta ancora x 20/30 volte
e_powf.c: In function ‘powf’:
e_powf.c:72: error: ‘int32_t’ undeclared (first use in this function)
e_powf.c:72: error: (Each undeclared identifier is reported only once
e_powf.c:72: error: for each function it appears in.)
e_powf.c:72: error: expected ‘;’ before ‘i’
e_powf.c:73: error: expected ‘;’ before ‘hx’
e_powf.c:76: error: ‘hx’ undeclared (first use in this function)
e_powf.c:77: error: ‘hy’ undeclared (first use in this function)
e_powf.c:78: error: ‘ix’ undeclared (first use in this function)
e_powf.c:78: error: ‘iy’ undeclared (first use in this function)
e_powf.c:86: warning: implicit declaration of function ‘isinf’
e_powf.c:98: error: ‘yisint’ undeclared (first use in this function)
e_powf.c:102: error: ‘k’ undeclared (first use in this function)
e_powf.c:103: error: ‘j’ undeclared (first use in this function)
e_powf.c:123: warning: implicit declaration of function ‘sqrtf’
e_powf.c:123: warning: incompatible implicit declaration of built-in function ‘sqrtf’
e_powf.c:126: warning: implicit declaration of function ‘fabsf’
e_powf.c:126: warning: incompatible implicit declaration of built-in function ‘fabsf’
e_powf.c:141: error: ‘u_int32_t’ undeclared (first use in this function)
e_powf.c:141: error: expected ‘)’ before ‘hx’
e_powf.c:155: error: ‘is’ undeclared (first use in this function)
e_powf.c:160: error: ‘n’ undeclared (first use in this function)
e_powf.c:212: error: expected ‘)’ before ‘hx’
e_powf.c:229: error: expected ‘)’ before ‘j’
e_powf.c:235: error: ‘i’ undeclared (first use in this function)
e_powf.c:259: warning: implicit declaration of function ‘__scalbnf’
make[1]: *** [e_powf.o] Error 1
make[1]: Leaving directory `/home/marco/unicorn/libm'
make[1]: Entering directory `/home/marco/unicorn/unicorn_pci'
Makefile:31: /usr/src/linux/.config: No such file or directory
make[1]: *** No rule to make target `/usr/src/linux/.config'. Stop.
make[1]: Leaving directory `/home/marco/unicorn/unicorn_pci'
make[1]: Entering directory `/home/marco/unicorn/unicorn_usb'
make CC=/usr/bin/gcc-4.1 -C /usr/src/linux SUBDIRS=/home/marco/unicorn/unicorn_usb modules
make[2]: Entering directory `/usr/src/linux'
make[2]: *** No rule to make target `modules'. Stop.
make[2]: Leaving directory `/usr/src/linux'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/home/marco/unicorn/unicorn_usb'
make: *** [modules] Error 2
Mi sembra che non trovi sys/cdefs.h, e forse il resto degli errori è una conseguenza.
Ma leggendo tra le specifiche dei driver, dice che è compilato x gcc-3.4, quindi la 4.1 non è compatibile con le versioni precedenti?
O è la versione del kernel x amd64 che non è compatibile con i driver?
Se non installo il modem, niente internet, e ubuntu mi diventa quasi inutile.
:help:
ho installato Ubuntu 7.04 x amd64, dopo un breve giro tra le varie applicazioni ho provato ad installare il modem.
Ho un Fastrate100 usb, quello fornito da aliceadsl, ho cercato su internet (con win) i driver e guide all'installazione,
(http://wiki.ubuntu-it.org/Hardware/Modem/FastrateUSB100 , ecc.) ce ne sono diverse, riferite a versioni precedenti ma pensavo non dovesse cambiare molto dalla mia, unico dubbio è x l'amd64.
I problemi sorgono dopo questo comando:
make modules CC=/usr/bin/gcc-3.4
non trova gcc-3.4 accedo alla dir e vedo che ho gcc-4.1 come compilatore, quindi provo a fare:
make modules CC=/usr/bin/gcc-4.1
il putiferio!!!!
un casino di errori cominciano così:
for i in libm unicorn_pci unicorn_usb ; do make -C $i modules MODDIR=/home/marco/unicorn/$i ; done
make[1]: Entering directory `/home/marco/unicorn/libm'
/usr/bin/gcc-4.1 -O2 -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o e_powf.o e_powf.c
In file included from e_powf.c:20:
math.h:98:23: error: sys/cdefs.h: No such file or directory
In file included from e_powf.c:20:
math.h:103: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘extern’
quest'ultima riga ripetuta un centinaio di volte (i caratteri strani sono diversi tra linux e win)
In file included from e_powf.c:21:
math_private.h:20:23: error: sys/types.h: No such file or directory
In file included from e_powf.c:21:
math_private.h:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘typedef’
math_private.h:57: error: expected specifier-qualifier-list before ‘u_int32_t’
math_private.h:60: error: conflicting types for ‘ieee_double_shape_type’
math_private.h:46: error: previous declaration of ‘ieee_double_shape_type’ was here
math_private.h:153: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__P’
quest'ultima riga ripetuta ancora x 20/30 volte
e_powf.c: In function ‘powf’:
e_powf.c:72: error: ‘int32_t’ undeclared (first use in this function)
e_powf.c:72: error: (Each undeclared identifier is reported only once
e_powf.c:72: error: for each function it appears in.)
e_powf.c:72: error: expected ‘;’ before ‘i’
e_powf.c:73: error: expected ‘;’ before ‘hx’
e_powf.c:76: error: ‘hx’ undeclared (first use in this function)
e_powf.c:77: error: ‘hy’ undeclared (first use in this function)
e_powf.c:78: error: ‘ix’ undeclared (first use in this function)
e_powf.c:78: error: ‘iy’ undeclared (first use in this function)
e_powf.c:86: warning: implicit declaration of function ‘isinf’
e_powf.c:98: error: ‘yisint’ undeclared (first use in this function)
e_powf.c:102: error: ‘k’ undeclared (first use in this function)
e_powf.c:103: error: ‘j’ undeclared (first use in this function)
e_powf.c:123: warning: implicit declaration of function ‘sqrtf’
e_powf.c:123: warning: incompatible implicit declaration of built-in function ‘sqrtf’
e_powf.c:126: warning: implicit declaration of function ‘fabsf’
e_powf.c:126: warning: incompatible implicit declaration of built-in function ‘fabsf’
e_powf.c:141: error: ‘u_int32_t’ undeclared (first use in this function)
e_powf.c:141: error: expected ‘)’ before ‘hx’
e_powf.c:155: error: ‘is’ undeclared (first use in this function)
e_powf.c:160: error: ‘n’ undeclared (first use in this function)
e_powf.c:212: error: expected ‘)’ before ‘hx’
e_powf.c:229: error: expected ‘)’ before ‘j’
e_powf.c:235: error: ‘i’ undeclared (first use in this function)
e_powf.c:259: warning: implicit declaration of function ‘__scalbnf’
make[1]: *** [e_powf.o] Error 1
make[1]: Leaving directory `/home/marco/unicorn/libm'
make[1]: Entering directory `/home/marco/unicorn/unicorn_pci'
Makefile:31: /usr/src/linux/.config: No such file or directory
make[1]: *** No rule to make target `/usr/src/linux/.config'. Stop.
make[1]: Leaving directory `/home/marco/unicorn/unicorn_pci'
make[1]: Entering directory `/home/marco/unicorn/unicorn_usb'
make CC=/usr/bin/gcc-4.1 -C /usr/src/linux SUBDIRS=/home/marco/unicorn/unicorn_usb modules
make[2]: Entering directory `/usr/src/linux'
make[2]: *** No rule to make target `modules'. Stop.
make[2]: Leaving directory `/usr/src/linux'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/home/marco/unicorn/unicorn_usb'
make: *** [modules] Error 2
Mi sembra che non trovi sys/cdefs.h, e forse il resto degli errori è una conseguenza.
Ma leggendo tra le specifiche dei driver, dice che è compilato x gcc-3.4, quindi la 4.1 non è compatibile con le versioni precedenti?
O è la versione del kernel x amd64 che non è compatibile con i driver?
Se non installo il modem, niente internet, e ubuntu mi diventa quasi inutile.
:help: