I am trying to compile the acx100 driver for a friend's computer. I have followed the instructions on how to compile inside the kernel tree. When I do make, it terminates with this error:
monkey:/usr/src/linux# monkey:/usr/src/linux# make
CC [M] drivers/net/wireless/acx/wlan.o
drivers/net/wireless/acx/wlan.c:40:26: error: linux/config.h: No such file or directory
make: *** [drivers/net/wireless/acx/wlan.o] Error 1
make: *** [drivers/net/wireless/acx] Error 2
make: *** [drivers/net/wireless] Error 2
make: *** [drivers/net] Error 2
make: *** [drivers] Error 2
I have looked for config.h in /usr/src/linux/include/linux, and it isn't there (but is in /usr/include/linux)
how can I get this to compile?
which kernel version are you using? Is it a very old kernel?
Having had a quick look at the wlan.c file , it seems that config.h is only included for kernels older than 2.6.18. I have not such kernel to reproduce this, but I would advise you either to try with a newer kernel if you can or with the out-of-tree build method if you can.
I think it was 2.6.21-1-multimedia-486 (from the 64studio distro), but not quite sure as it was on a friend's machine not mine.
I gave up in the end and used ndiswrapper instead, which is working fine so I don't really want to spend much more time on this one.
Thanks anyway for your time,
P.S. I just had a quick look at my version of wlan.c and it includes config.h unconditionally, so I guess this is the problem. I can't remember where I got the source from though - might have been the 64studio repositories or the sourceforge site.
Log in to post a comment.