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 |
Are you sure you have either the kernel-headers package installed or are running from a kernel you compiled?
|
I'm not sure about the kernel-headers it wouldn't hurt to reinstall them. can I get them in synaptic package manager?
|
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. |
thanks let me try that out real fast
|
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. |
Post your sources.list file please..
cat /etc/apt/sources.list |
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 |
OK so you have the source repositories in your list..
This is interesting... http://madwifi.org/wiki/UserDocs/Distro/Ubuntu |
All times are GMT -5. The time now is 05:47 PM. |