Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
im trying to "make all" the atmelwlandriver, but it quits with the error:
"lib/modules/2.6.2/build/include/asm/smp.h:72:26: mach_apicdef.h: No such file or directory"
i was able to compile this driver when i was running 2.4.22, but i recently installed 2.6.2, and now it wont work.
this is on a dell laptop with ati radeon chipset and slack 9.1.
any suggestions ?
Well, there are a few things you need to do to get ready for re-compiling drivers for different kernel versions. #1 - Are you sure that the 2.4.xxx code that you have can build for a 2.6.xxx kernel version (my guess would be no, but I'm not 100% familiar with that package). #2 - Did you make sure to reconfigure the software for a 2.6.xxx kernel? #3 - if you have done all of those things and there's still problems, post a detailed output of the configure options, source package version, and build errors.
well, i downloaded the most recent version of the atmelwlandriver, which was dated feb 27th.
it doesnt say which kernel ver. its created for.
yes, im recompiling it under the 2.6.2 kernel. i fixed the last error, but heres what i get now:
bash-2.05b# make all
Building src/Pcmcia_Pci
make[1]: Entering directory `/usr/src/atmelwlandriver/src/Pcmcia_Pci'
PCMCIA yes : revd
make[2]: Entering directory `/usr/src/atmelwlandriver/src/Pcmcia_Pci'
make clean
make[3]: Entering directory `/usr/src/atmelwlandriver/src/Pcmcia_Pci'
find . -name '*.o'|xargs rm -f
find . -name '*.ko'|xargs rm -f
make[3]: Leaving directory `/usr/src/atmelwlandriver/src/Pcmcia_Pci'
make final CFLAGS:='-I/lib/modules/2.6.2/build/include -DLINUX_OS -D__KERNEL__ -pipe -O2 -fomit-frame-pointer -fno-strict-aliasing -I/lib/modules/2.6.2/build/include -I/usr/src/atmelwlandriver/src/includes -I/usr/src/atmelwlandriver/src/includes/pcmcia -DATMEL_WLAN -DRFMD -DINT_ROAM -DREV_D' RF:='0' DBG:='0' MODULE:='pcmf502rd' LIB:=-REVD-
make[3]: Entering directory `/usr/src/atmelwlandriver/src/Pcmcia_Pci'
gcc -I/lib/modules/2.6.2/build/include -DLINUX_OS -D__KERNEL__ -pipe -O2 -fomit-frame-pointer -fno-strict-aliasing -I/lib/modules/2.6.2/build/include -I/usr/src/atmelwlandriver/src/includes -I/usr/src/atmelwlandriver/src/includes/pcmcia -DATMEL_WLAN -DRFMD -DINT_ROAM -DREV_D -c -o card.o card.c
In file included from /lib/modules/2.6.2/build/include/asm/smp.h:18,
from /lib/modules/2.6.2/build/include/linux/smp.h:17,
from /lib/modules/2.6.2/build/include/linux/sched.h:23,
from /usr/src/atmelwlandriver/src/includes/pcmcia/vnet_linux.h:43,
from /usr/src/atmelwlandriver/src/includes/pcmcia/vnet.h:28,
from card.c:23:
/lib/modules/2.6.2/build/include/asm/mpspec.h:6:25: mach_mpspec.h: No such file or directory
In file included from /lib/modules/2.6.2/build/include/asm/smp.h:18,
from /lib/modules/2.6.2/build/include/linux/smp.h:17,
from /lib/modules/2.6.2/build/include/linux/sched.h:23,
from /usr/src/atmelwlandriver/src/includes/pcmcia/vnet_linux.h:43,
from /usr/src/atmelwlandriver/src/includes/pcmcia/vnet.h:28,
from card.c:23:
/lib/modules/2.6.2/build/include/asm/mpspec.h:8: `MAX_MP_BUSSES' undeclared here (not in a function)
/lib/modules/2.6.2/build/include/asm/mpspec.h:9: `MAX_MP_BUSSES' undeclared here (not in a function)
/lib/modules/2.6.2/build/include/asm/mpspec.h:10: `MAX_MP_BUSSES' undeclared here (not in a function)
/lib/modules/2.6.2/build/include/asm/mpspec.h:12: `MAX_MP_BUSSES' undeclared here (not in a function)
/lib/modules/2.6.2/build/include/asm/mpspec.h:19: `MAX_APICS' undeclared here (not in a function)
/lib/modules/2.6.2/build/include/asm/mpspec.h:20: `MAX_MP_BUSSES' undeclared here (not in a function)
/lib/modules/2.6.2/build/include/asm/mpspec.h:20: conflicting types for `mp_bus_id_to_type'
/lib/modules/2.6.2/build/include/asm/mpspec.h:8: previous declaration of `mp_bus_id_to_type'
/lib/modules/2.6.2/build/include/asm/mpspec.h:22: `MAX_IRQ_SOURCES' undeclared here (not in a function)
/lib/modules/2.6.2/build/include/asm/mpspec.h:24: `MAX_MP_BUSSES' undeclared here (not in a function)
/lib/modules/2.6.2/build/include/asm/mpspec.h:24: conflicting types for `mp_bus_id_to_pci_bus'
/lib/modules/2.6.2/build/include/asm/mpspec.h:12: previous declaration of `mp_bus_id_to_pci_bus'
/lib/modules/2.6.2/build/include/asm/mpspec.h:50: `MAX_APICS' undeclared here (not in a function)
In file included from /lib/modules/2.6.2/build/include/asm/smp.h:20,
from /lib/modules/2.6.2/build/include/linux/smp.h:17,
from /lib/modules/2.6.2/build/include/linux/sched.h:23,
from /usr/src/atmelwlandriver/src/includes/pcmcia/vnet_linux.h:43,
from /usr/src/atmelwlandriver/src/includes/pcmcia/vnet.h:28,
from card.c:23:
/lib/modules/2.6.2/build/include/asm/io_apic.h:160: `MAX_IRQ_SOURCES' undeclared here (not in a function)
/lib/modules/2.6.2/build/include/asm/io_apic.h:160: conflicting types for `mp_irqs'
/lib/modules/2.6.2/build/include/asm/mpspec.h:22: previous declaration of `mp_irqs'
make[3]: *** [card.o] Error 1
make[3]: Leaving directory `/usr/src/atmelwlandriver/src/Pcmcia_Pci'
make[2]: *** [revd] Error 2
make[2]: Leaving directory `/usr/src/atmelwlandriver/src/Pcmcia_Pci'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/usr/src/atmelwlandriver/src/Pcmcia_Pci'
make: *** [all] Error 1
bash-2.05b#
I have the same problem ... it seems to be a bug
in bief : the mpspec.h include the mach_spech.h
but mach_spech.h is not in /lib/modules/linux/build/include/asm/
but in /lib/modules/2.6.8-1-686-smp/build/include/asm-i386/mach-*
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.