On Sat, 29 Jan 2005 00:10:13 +0000
Mauro Collin <maurocollin@gmail.com> wrote:
ai galera ! estou com um probleminha na hora de compilar o driver para o
meu modem. se alguem poder me ajudar agradeço muito...
se estiver fazendo alguma besteira favor relatar...
abaixo é a saida da compilação do driver do modem a compilação vai bem,
mas na hora de carregar o driver....veja abaixo:
root@debian:/usr/src/pctel-0.9.7-9# ./setup
checking for running kernel version...2.4.22
checking for ptserial...ptserial-2.4.7.c
checking for gcc...3.3.5
searching for kernel includes...found at /usr/src/linux-2.4.22/include/
checking for
modversions.h.../usr/src/linux-2.4.22/include//linux/modversions.h
checking for kernel_version...UTS_RELEASE is 2.4.22
detecting your modem..../configure: line 61: test: -eq: unary operator
expected
./configure: line 61: test: -eq: unary operator expected
./configure: line 61: test: -eq: unary operator expected
./configure: line 61: test: -eq: unary operator expected
./configure: line 61: test: -eq: unary operator expected
./configure: line 61: test: -eq: unary operator expected
./configure: line 61: test: -eq: unary operator expected
./configure: line 61: test: -eq: unary operator expected
** error
autodetection failed, your modem is not in the database of
known modems. Try to guess the hal and report success, if
the modem worked. Please read the FAQ about autodetection
failed.
#TUDO BEM, COLOQUEI O NOME DO BENDITO NA MÃO CM8738
please enter your hal type
choose one of: pct789, cm8738, i8xx, sis, via686a
hal type: cm8738
installing device file...done
installing driver...done
installation done
#ATÉ AQUI OK, MAS DAQUI PRA BAIXO ESTA ALÉM DOS MEUS CONHECIMENTOS....
root@debian:/usr/src/pctel-0.9.7-9# insmod pctel
Using /lib/modules/2.4.22/misc/lib/pctel.o
insmod: a module named pctel already exists
root@debian:/usr/src/pctel-0.9.7-9# insmod ptserial
Using /lib/modules/2.4.22/misc/lib/ptserial.o
/lib/modules/2.4.22/misc/lib/ptserial.o: The module you are trying to
load (/lib/modules/2.4.22/misc/lib/ptserial.o) is compiled with a gcc
version 2 compiler, while the kernel you are running is compiled with
a gcc version 3 compiler. This is known to not work.
root@debian:/usr/src/pctel-0.9.7-9#
como faço para escolher a verção do gcc para a compilação??? se for este
o erro!!!!
mude o link simbolico. no diretorio /usr/bin
carlucio@tropical:/usr/bin$ ls -l gcc*
lrwxrwxrwx 1 root root 8 Abr 29 2004 gcc -> gcc-2.95
-rwxr-xr-x 1 root root 74088 Set 23 2002 gcc-2.95
-rwxr-xr-x 1 root root 74056 Abr 7 2002 gcc-3.0
-rwxr-xr-x 1 root root 15647 Abr 7 2002 gccbug-3.0
carlucio@tropical:/usr/bin$
abracos.