LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Problems compiling rt2860 source with module assistant (https://www.linuxquestions.org/questions/linux-general-1/problems-compiling-rt2860-source-with-module-assistant-710275/)

ANO1453 03-09-2009 11:33 AM

Problems compiling rt2860 source with module assistant
 
Hi!

I have a Ralink wireless device and searching for a way to install the drivers I've found a sources package (rt2860 driver) in a debian repository. Has I'm on Kubuntu, I thought it should work.

I've downloaded and installed module assistant and debhelper and tried to install the rt2860 driver using, as I saw on a tutorial, the command:

Quote:

sudo m-a prepare
sudo m-a a-i rt2860
Everything fine on the prepare, but the automatic installation (m-a a-i) produced the folllowing:

Quote:

dh_testdir
dh_testroot
dh_clean
/usr/bin/make -f debian/rules kdist_clean kdist_config binary-modules
make[1]: Entrando no directório `/usr/src/modules/rt2860'
dh_testdir
dh_testroot
dh_clean
dh_clean: Sorry, but 6 is the highest compatibility level supported by this debhelper.
make[1]: ** [kdist_clean] Erro 1
make[1]: Saindo do diretório `/usr/src/modules/rt2860'
make: ** [kdist_build] Erro 2
'entrando no diretório' means 'entering directory'
'saindo do diretório' means 'leaving directory'
'Erro' is 'error'

How can I solve this problem?

Larry Webb 03-11-2009 12:34 AM

It looks like the ubuntu does not like the debian installer. Download your driver from the ralink site here and install it according to the readme directions with the driver.

http://www.ralinktech.com/ralink/Hom...ort/Linux.html

ANO1453 03-11-2009 12:36 PM

The build instructions are a bit confuse. How do I do this step (included in the instructions):

Quote:

3> In os/linux/config.mk
define the GCC and LD of the target machine
define the compiler flags CFLAGS
modify to meet your need.

Larry Webb 03-11-2009 03:29 PM

I can not get to my linux now but if you have the later kubuntu installed you will probably have your gcc packages installed by default. Try running the make and see what if any errors you get.

ANO1453 03-13-2009 01:09 PM

make output:

make -C tools
make[1]: Entrando no diretório `/home/helder/2008_0918_RT2860_Linux_STA_v1.8.0.0
/tools'
gcc -g bin2h.c -o bin2h
bin2h.c:28:19: erro: stdio.h: Ficheiro ou directoria inexistente
bin2h.c:29:20: erro: string.h: Ficheiro ou directoria inexistente
bin2h.c:30:20: erro: stdlib.h: Ficheiro ou directoria inexistente
bin2h.c: Na função ‘main’:
bin2h.c:34: erro: ‘FILE’ undeclared (first use in this function)
bin2h.c:34: erro: (Each undeclared identifier is reported only once
bin2h.c:34: erro: for each function it appears in.)
bin2h.c:34: erro: ‘infile’ undeclared (first use in this function)
bin2h.c:34: erro: ‘outfile’ undeclared (first use in this function)
bin2h.c:42: aviso: incompatible implicit declaration of built-in function ‘memse
t’
bin2h.c:49: aviso: incompatible implicit declaration of built-in function ‘print
f’
bin2h.c:54: aviso: incompatible implicit declaration of built-in function ‘print
f’
bin2h.c:57: aviso: incompatible implicit declaration of built-in function ‘strca
t’
bin2h.c:69: erro: expected expression before ‘)’ token
bin2h.c:71: aviso: incompatible implicit declaration of built-in function ‘print
f’
bin2h.c:76: erro: expected expression before ‘)’ token
bin2h.c:78: aviso: incompatible implicit declaration of built-in function ‘print
f’
bin2h.c:146: aviso: incompatible implicit declaration of built-in function ‘spri
ntf’
bin2h.c:155: aviso: incompatible implicit declaration of built-in function ‘exit

make[1]: ** [all] Erro 1
make[1]: Saindo do diretório `/home/helder/2008_0918_RT2860_Linux_STA_v1.8.0.0/t
ools'
make: ** [build_tools] Erro 2

ANO1453 03-14-2009 01:05 PM

I installed kernel-devel and everything went OK.

Thanks!


All times are GMT -5. The time now is 11:06 PM.