Please note: This project is no longer active. The website is kept online for historic purposes only.
If you´re looking for a Linux driver for your Atheros WLAN device, you should continue here .

Ticket #1309 (new defect)

Opened 15 years ago

Last modified 15 years ago

Failed to compile madwifi-hal- (path issue)

Reported by: Mister_X Assigned to:
Priority: minor Milestone: version 0.9.4
Component: madwifi: makefiles Version: trunk
Keywords: Cc:
Patch is attached: 0 Pending:


I tried to compile madwifi-hal- r2327 on slackware 11 (kernel but it failed to compile in ath_rate/amrr with the following message:

for i in amrr/ onoe/ sample/ minstrel/; do \
                make -C $i || exit 1; \
make[2]: Entering directory `/root/madwifi-hal-'
make -C /lib/modules/ SUBDIRS=/root/madwifi-hal- modules
make[3]: Entering directory `/usr/src/linux-'
make -C  /root/madwifi-hal- CFLAGS="-D__KERNEL__ -I/usr/src/linux- -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fno-builtin-sprintf -fomit-frame-pointer  -pipe -mpreferred-stack-boundary=2 -march=i486 -fno-unit-at-a-time -DMODULE" MAKING_MODULES=1 modules
make[4]: Entering directory `/root/madwifi-hal-'
gcc -D__KERNEL__ -I/usr/src/linux- -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fno-builtin-sprintf -fomit-frame-pointer  -pipe -mpreferred-stack-boundary=2 -march=i486 -fno-unit-at-a-time -DMODULE -include ./../../include/compat.h -I./../../include -I./../.. -I./../../ath -I./../../ath_hal -I./../../hal -Werror -DAH_BYTE_ORDER=AH_LITTLE_ENDIAN -fomit-frame-pointer -DATH_SUPERG_FF=1 -DATH_SUPERG_DYNTURBO=1 -DATH_TURBO_SCAN=1 -DATH_SUPERG_XR=1 -DOPT_AH_H=\"./../../hal/public/i386-elf.opt_ah.h\" -nostdinc -iwithprefix include -DKBUILD_BASENAME=amrr  -DEXPORT_SYMTAB -c amrr.c
In file included from ./../../hal/ah_desc.h:42,
                 from ./../../ath/if_athvar.h:46,
                 from amrr.c:67:
./../../ath_hal/opt_ah.h:1:18: ./../../hal/public/i386-elf.opt_ah.h: No such file or directory
make[4]: *** [amrr.o] Error 1
make[4]: Leaving directory `/root/madwifi-hal-'
make[3]: *** [_mod_/root/madwifi-hal-] Error 2
make[3]: Leaving directory `/usr/src/linux-'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/madwifi-hal-'
make[1]: *** [modules] Error 1
make[1]: Leaving directory `/root/madwifi-hal-'
make: *** [modules] Error 1

As you can see it fails with:

./../../ath_hal/opt_ah.h:1:18: ./../../hal/public/i386-elf.opt_ah.h: No such file or directory

The path seems to be wrong. If I edit manually ath_hal/opt_ah.h and give the right path:

#include "../hal/public/i386-elf.opt_ah.h"

instead of

#include OPT_AH_H

it compile just fine (and btw, works well).

Change History

05/21/07 20:52:37 changed by mentor

  • version changed from madwifi-hal- branch to trunk.


05/21/07 21:44:03 changed by Mister_X

still present in trunk

05/22/07 06:38:04 changed by mrenzmann

  • milestone set to version 0.9.4.