Guest pipplo Posted April 6, 2004 Report Share Posted April 6, 2004 (edited) Hi guys, I'm using gnetoo-dev-sources, and i'm trying to compile these drivers from http://atmelwlandriver.sourceforge.net Anyway, they won't compile because of a couple of missing files. I seem to have found the files however, but I don't know why it's not finding them in the right spot. This is my second install on my laptop using the same kernel version, and following ( I think ) the same exact installation process. So here are the errors bash-2.05b# make all Building src/Pcmcia_Pci make[1]: Entering directory `/root/atmelwlandriver/src/Pcmcia_Pci' PCMCIA yes : revd make[2]: Entering directory `/root/atmelwlandriver/src/Pcmcia_Pci' make clean make[3]: Entering directory `/root/atmelwlandriver/src/Pcmcia_Pci' find . -name '*.o'|xargs rm -f find . -name '*.ko'|xargs rm -f make[3]: Leaving directory `/root/atmelwlandriver/src/Pcmcia_Pci' make final CFLAGS:='-I/usr/src/linux/include -DLINUX_OS -D__KERNEL__ -pipe -O2 -fomit-frame-pointer -fno-strict-aliasing -I/usr/src/linux/include -I/root/atmelwlandriver/src/includes -I/root/atmelwlandriver/src/includes/pcmcia -DATMEL_WLAN -DRFMD -DINT_ROAM -DREV_D' RF:='0' DBG:='0' MODULE:='pcmf502rd' LIB:=-REVD- make[3]: Entering directory `/root/atmelwlandriver/src/Pcmcia_Pci' gcc -I/usr/src/linux/include -DLINUX_OS -D__KERNEL__ -pipe -O2 -fomit-frame-pointer -fno-strict-aliasing -I/usr/src/linux/include -I/root/atmelwlandriver/src/includes -I/root/atmelwlandriver/src/includes/pcmcia -DATMEL_WLAN -DRFMD -DINT_ROAM -DREV_D -c -o card.o card.c In file included from /usr/src/linux/include/asm/smp.h:18, from /usr/src/linux/include/linux/smp.h:17, from /usr/src/linux/include/linux/sched.h:23, from /root/atmelwlandriver/src/includes/pcmcia/vnet_linux.h:43, from /root/atmelwlandriver/src/includes/pcmcia/vnet.h:28, from card.c:23: /usr/src/linux/include/asm/mpspec.h:6:25: mach_mpspec.h: No such file or directory In file included from /usr/src/linux/include/asm/smp.h:18, from /usr/src/linux/include/linux/smp.h:17, from /usr/src/linux/include/linux/sched.h:23, from /root/atmelwlandriver/src/includes/pcmcia/vnet_linux.h:43, from /root/atmelwlandriver/src/includes/pcmcia/vnet.h:28, from card.c:23: /usr/src/linux/include/asm/mpspec.h:8: error: `MAX_MP_BUSSES' undeclared here (not in a function) /usr/src/linux/include/asm/mpspec.h:9: error: `MAX_MP_BUSSES' undeclared here (not in a function) /usr/src/linux/include/asm/mpspec.h:10: error: `MAX_MP_BUSSES' undeclared here (not in a function) /usr/src/linux/include/asm/mpspec.h:12: error: `MAX_MP_BUSSES' undeclared here (not in a function) /usr/src/linux/include/asm/mpspec.h:19: error: `MAX_APICS' undeclared here (not in a function) /usr/src/linux/include/asm/mpspec.h:20: error: `MAX_MP_BUSSES' undeclared here (not in a function) /usr/src/linux/include/asm/mpspec.h:20: error: conflicting types for `mp_bus_id_to_type' /usr/src/linux/include/asm/mpspec.h:8: error: previous declaration of `mp_bus_id_to_type' /usr/src/linux/include/asm/mpspec.h:22: error: `MAX_IRQ_SOURCES' undeclared here (not in a function) /usr/src/linux/include/asm/mpspec.h:24: error: `MAX_MP_BUSSES' undeclared here (not in a function) /usr/src/linux/include/asm/mpspec.h:24: error: conflicting types for `mp_bus_id_to_pci_bus' /usr/src/linux/include/asm/mpspec.h:12: error: previous declaration of `mp_bus_id_to_pci_bus' /usr/src/linux/include/asm/mpspec.h:50: error: `MAX_APICS' undeclared here (not in a function) In file included from /usr/src/linux/include/asm/smp.h:20, from /usr/src/linux/include/linux/smp.h:17, from /usr/src/linux/include/linux/sched.h:23, from /root/atmelwlandriver/src/includes/pcmcia/vnet_linux.h:43, from /root/atmelwlandriver/src/includes/pcmcia/vnet.h:28, from card.c:23: /usr/src/linux/include/asm/io_apic.h:160: error: `MAX_IRQ_SOURCES' undeclared here (not in a function) /usr/src/linux/include/asm/io_apic.h:160: error: conflicting types for `mp_irqs' /usr/src/linux/include/asm/mpspec.h:22: error: previous declaration of `mp_irqs' In file included from /usr/src/linux/include/linux/smp.h:17, from /usr/src/linux/include/linux/sched.h:23, from /root/atmelwlandriver/src/includes/pcmcia/vnet_linux.h:43, from /root/atmelwlandriver/src/includes/pcmcia/vnet.h:28, from card.c:23: /usr/src/linux/include/asm/smp.h:72:26: mach_apicdef.h: No such file or directory make[3]: *** [card.o] Error 1 make[3]: Leaving directory `/root/atmelwlandriver/src/Pcmcia_Pci' make[2]: *** [revd] Error 2 make[2]: Leaving directory `/root/atmelwlandriver/src/Pcmcia_Pci' make[1]: *** [all] Error 1 make[1]: Leaving directory `/root/atmelwlandriver/src/Pcmcia_Pci' make: *** [all] Error 1 Now, i found both mach_apicdef.h and mach_mpspec.h here, (file:/usr/src/linux-2.6.3-gentoo-r1/include/asm-i386/mach-default), so I don't know why it doens't find them. Did i miss an installation step? /usr/src/linux is a symlink to the kernel source so I don't know why it doesn't find these files. I found that the two files are included via #include <mach_mpspec.h> and #include <mach_apicdef.h> so why aren't they found in the system include directory? I searched and found people with similar problems but no solutions that i could figure out. It is very strange because the drivers compiled about a week ago then I decided to reinstall gentoo because i wanted more space and a different partitioning. hmm It seems to me like the correct path isn't set or something any ideas? Edited April 6, 2004 by pipplo Quote Link to comment Share on other sites More sharing options...
HJ Posted April 6, 2004 Report Share Posted April 6, 2004 Looks to me like this driver has not yet been ported to the 2.6 kernel... I could be wrong, but judging fromthe errors, and that there hasn't been a release for a while, I'd think this driver will not compile for a 2.6 kernel. You could try grabbing cvs of the driver and building it. Quote Link to comment Share on other sites More sharing options...
HJ Posted April 6, 2004 Report Share Posted April 6, 2004 http://forums.gentoo.org/viewtopic.php?t=1...atmelwlandriver Gotta love the gentoo docs and Documentation and tips&tricks section Quote Link to comment Share on other sites More sharing options...
Guest pipplo Posted April 6, 2004 Report Share Posted April 6, 2004 I had actually written up a writeup on how to get it to work on gentoo at http://sotec.koston.net/HOWTOS/Wireless-Atmel. That writeup used the same kernel (i thought) cause i used gen-dev-sources. but now it wont' compile but it did last time. And i know i had a 2.6 kernel then, so they do work I figured out a cheap way to get the drivers to compile, but i'm wondering whether it;'s the kernel or the drivers since it seems to be an error with the include directive. And now it works What i did was change the #include <mach_mpspec.h> to #include <asm/mach-default/mach_mpspec.h> and the same change for the other one, then it compiled just fine :-/ and i have it connected to the net Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.