LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-09-2009, 11:33 AM   #1
ANO1453
Member
 
Registered: Dec 2008
Location: Portugal
Distribution: OpenSuse Leap 42.1
Posts: 54

Rep: Reputation: 27
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?
 
Old 03-11-2009, 12:34 AM   #2
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
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
 
Old 03-11-2009, 12:36 PM   #3
ANO1453
Member
 
Registered: Dec 2008
Location: Portugal
Distribution: OpenSuse Leap 42.1
Posts: 54

Original Poster
Rep: Reputation: 27
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.
 
Old 03-11-2009, 03:29 PM   #4
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
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.
 
Old 03-13-2009, 01:09 PM   #5
ANO1453
Member
 
Registered: Dec 2008
Location: Portugal
Distribution: OpenSuse Leap 42.1
Posts: 54

Original Poster
Rep: Reputation: 27
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
 
Old 03-14-2009, 01:05 PM   #6
ANO1453
Member
 
Registered: Dec 2008
Location: Portugal
Distribution: OpenSuse Leap 42.1
Posts: 54

Original Poster
Rep: Reputation: 27
I installed kernel-devel and everything went OK.

Thanks!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Issue with module assistant on debian mazza Linux - Newbie 1 11-05-2010 07:35 PM
Sound Problems when rebuilding alsa drivers using module assistant VDigg Linux - Software 3 12-28-2008 04:42 AM
What is module-assistant trying to tell me? merinette Linux - Hardware 1 08-18-2008 01:42 PM
module-assistant problem Slade901 Linux - Software 1 08-24-2006 11:15 AM
Installing Module-Assistant Sleepy_Sentry Ubuntu 4 01-18-2006 08:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration