LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-15-2008, 11:43 AM   #1
solanath
LQ Newbie
 
Registered: Aug 2008
Distribution: linux mint 5
Posts: 6

Rep: Reputation: 0
Problem compiling madwifi


Hi, I'm having a problem compiling madwifi for my atheros wireless card. My chipset is Atheros Communications Inc. AR242x. I have the correct version and all, but when I go to make it a bunch of errors pop up.

here are the errors:

Checking requirements... ok.
Checking kernel configuration... ok.
make -C /lib/modules/2.6.24-19-generic/build SUBDIRS=/home/dylan/Desktop/madwifi modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.24-19-generic'
HOSTCC /home/dylan/Desktop/madwifi/ath_hal/uudecode
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:26:19: error: stdio.h: No such file or directory
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:27:19: error: errno.h: No such file or directory
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:28:20: error: getopt.h: No such file or directory
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:29:20: error: string.h: No such file or directory
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:30:20: error: stdlib.h: No such file or directory
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:32:23: error: sys/fcntl.h: No such file or directory
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:33:22: error: sys/stat.h: No such file or directory
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c: In function 'uudecode_usage':
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:37: warning: implicit declaration of function 'printf'
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:37: warning: incompatible implicit declaration of built-in function 'printf'
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c: At top level:
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:40: error: expected ')' before '*' token
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:70: error: expected ')' before '*' token
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c: In function 'main':
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:121: error: 'FILE' undeclared (first use in this function)
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:121: error: (Each undeclared identifier is reported only once
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:121: error: for each function it appears in.)
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:121: error: 'src_stream' undeclared (first use in this function)
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:122: error: 'dst_stream' undeclared (first use in this function)
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:122: error: 'NULL' undeclared (first use in this function)
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:130: warning: implicit declaration of function 'getopt'
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:134: error: 'optarg' undeclared (first use in this function)
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:138: warning: implicit declaration of function 'exit'
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:138: warning: incompatible implicit declaration of built-in function 'exit'
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:141: error: 'optind' undeclared (first use in this function)
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:142: error: 'stdin' undeclared (first use in this function)
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:144: warning: implicit declaration of function 'fopen'
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:146: warning: implicit declaration of function 'fprintf'
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:146: warning: incompatible implicit declaration of built-in function 'fprintf'
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:146: error: 'stderr' undeclared (first use in this function)
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:147: warning: implicit declaration of function 'strerror'
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:147: error: 'errno' undeclared (first use in this function)
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:147: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:148: warning: incompatible implicit declaration of built-in function 'exit'
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:152: warning: incompatible implicit declaration of built-in function 'exit'
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:156: warning: implicit declaration of function 'get_line_from_file'
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:156: warning: assignment makes pointer from integer without a cast
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:157: warning: implicit declaration of function 'strncmp'
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:164: warning: incompatible implicit declaration of built-in function 'fprintf'
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:165: warning: incompatible implicit declaration of built-in function 'exit'
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:168: warning: implicit declaration of function 'strtoul'
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:170: warning: implicit declaration of function 'strchr'
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:170: warning: incompatible implicit declaration of built-in function 'strchr'
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:172: warning: incompatible implicit declaration of built-in function 'fprintf'
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:173: warning: incompatible implicit declaration of built-in function 'exit'
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:178: warning: implicit declaration of function 'strcmp'
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:179: error: 'stdout' undeclared (first use in this function)
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:182: error: 'O_WRONLY' undeclared (first use in this function)
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:182: error: 'O_CREAT' undeclared (first use in this function)
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:182: error: 'O_TRUNC' undeclared (first use in this function)
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:186: error: 'O_EXCL' undeclared (first use in this function)
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:188: warning: implicit declaration of function 'open'
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:189: error: 'S_IRWXU' undeclared (first use in this function)
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:189: error: 'S_IRWXG' undeclared (first use in this function)
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:189: error: 'S_IRWXO' undeclared (first use in this function)
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:191: warning: implicit declaration of function 'fdopen'
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:193: warning: incompatible implicit declaration of built-in function 'fprintf'
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:194: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:195: warning: incompatible implicit declaration of built-in function 'exit'
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:199: warning: implicit declaration of function 'read_stduu'
/home/dylan/Desktop/madwifi/ath_hal/uudecode.c:201: warning: implicit declaration of function 'fclose'
make[3]: *** [/home/dylan/Desktop/madwifi/ath_hal/uudecode] Error 1
make[2]: *** [/home/dylan/Desktop/madwifi/ath_hal] Error 2
make[1]: *** [_module_/home/dylan/Desktop/madwifi] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-19-generic'
make: *** [modules] Error 2


after looking through it, it looks like I need a C compiler but I know I have gcc installed any help? Thanks

Last edited by solanath; 08-16-2008 at 12:02 PM.
 
Old 08-15-2008, 11:56 AM   #2
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,277

Rep: Reputation: 126Reputation: 126
Are you sure you have either the kernel-headers package installed or are running from a kernel you compiled?
 
Old 08-15-2008, 11:58 AM   #3
solanath
LQ Newbie
 
Registered: Aug 2008
Distribution: linux mint 5
Posts: 6

Original Poster
Rep: Reputation: 0
I'm not sure about the kernel-headers it wouldn't hurt to reinstall them. can I get them in synaptic package manager?
 
Old 08-15-2008, 12:13 PM   #4
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
Synaptic.. that would indicate a Debian derivative of some sort. in which case I would use Debians Module-assistant.

aptitude update
aptitude install build-essential module-assistant
m-a update
m-a prepare
m-a a-i madwifi


Done !!


That will take care of the kernel headers and module compilation/installation auto-magically.
 
Old 08-15-2008, 12:19 PM   #5
solanath
LQ Newbie
 
Registered: Aug 2008
Distribution: linux mint 5
Posts: 6

Original Poster
Rep: Reputation: 0
thanks let me try that out real fast
 
Old 08-15-2008, 12:45 PM   #6
solanath
LQ Newbie
 
Registered: Aug 2008
Distribution: linux mint 5
Posts: 6

Original Poster
Rep: Reputation: 0
ok, on the very last command you gave me m-a a-i madwifi gave me this error

Installation of the madwifi-source source failed.

Ignoring this package. Maybe you need to add something to
sources.list, maybe the contrib and non-free archives.

I tried adding sources in synaptic but that didn't work.
 
Old 08-16-2008, 12:11 AM   #7
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
Post your sources.list file please..

cat /etc/apt/sources.list
 
Old 08-16-2008, 11:32 AM   #8
solanath
LQ Newbie
 
Registered: Aug 2008
Distribution: linux mint 5
Posts: 6

Original Poster
Rep: Reputation: 0
Yeah here they are

# deb cdrom:[Ubuntu 8.04.1 _Hardy Heron_ - Release amd64 (20080702.1)]/ hardy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://us.archive.ubuntu.com/ubuntu/ hardy main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://us.archive.ubuntu.com/ubuntu/ hardy universe
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy universe
deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ hardy multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy multiverse
deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://us.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository. This software is not part of Ubuntu, but is
## offered by Canonical and the respective vendors as a service to Ubuntu
## users.
deb http://archive.canonical.com/ubuntu hardy partner
deb-src http://archive.canonical.com/ubuntu hardy partner

deb http://security.ubuntu.com/ubuntu hardy-security main restricted
deb-src http://security.ubuntu.com/ubuntu hardy-security main restricted
deb http://security.ubuntu.com/ubuntu hardy-security universe
deb-src http://security.ubuntu.com/ubuntu hardy-security universe
deb http://security.ubuntu.com/ubuntu hardy-security multiverse
deb-src http://security.ubuntu.com/ubuntu hardy-security multiverse
 
Old 08-17-2008, 11:52 PM   #9
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
OK so you have the source repositories in your list..

This is interesting...
http://madwifi.org/wiki/UserDocs/Distro/Ubuntu
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error while compiling madwifi girish_hilage Linux - Networking 1 08-12-2008 09:40 AM
Madwifi-old + Aircrack/Trouble compiling madwifi Ashex Linux - Software 7 04-06-2006 12:39 AM
Madwifi-old + Aircrack/Trouble compiling madwifi Ashex Linux - Software 0 03-05-2006 07:55 PM
compiling madwifi Subbeh Mandriva 6 03-07-2005 09:17 PM


All times are GMT -5. The time now is 10:04 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration