LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   /lib/modules/2.6.7/build/ - where is it? (https://www.linuxquestions.org/questions/debian-26/lib-modules-2-6-7-build-where-is-it-258813/)

bobbens 11-24-2004 10:46 AM

/lib/modules/2.6.7/build/ - where is it?
 
im trying to compile a driver for my wireless card, ive tried several different approaches, but it always looks in /lib/modules/2.6.3/build/ for version.o and stuff like that... Where can i get those files to be able to make the driver? Reading a troubleshooting site it says that it means i don't have my kernel source installed, but i have it installed (with apt-get), untared and have a symbolic link in /usr/src/linux . I've tried searching around the kernel source and headers for a build folder but i haven't found any... Anyone know what to do? This is to compile the acx100 driver with my 2.6.7 kernel. Thanks

Andrew Benton 11-24-2004 11:33 AM

/lib/modules/$KERNEL_VERSION/build should be a symbolic link pointing at the kernel source. make modules_install creates the link. You probably need to install the kernel source for your distro.

darkleaf 11-24-2004 02:40 PM

Next to make modules_install you can also just create it yourself. I did that a couple of times.

bobbens 11-25-2004 10:46 AM

Ok i set up a symbolic link to my kernel-source at /lib/modules/$KERNEL_VERSION/build, but now i get a different error, see if you can help me plz.
Code:

debian:/home/bobbens/acx100# make && make install
make -C src
make[1]: Entering directory `/home/bobbens/acx100/src'
gcc -Wall -Wstrict-prototypes -Wno-trigraphs -O -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=4 -march=i586 -DACX_DEBUG=1 -DACX_32BIT_IO -D__KERNEL__ -DMODULE -DWLAN_HOSTIF=WLAN_PCI -I/lib/modules/2.6.7-1-386/build/include -I../include  -c -o acx100.o acx100.c
In file included from /usr/include/asm/smp.h:18,
                from /usr/include/linux/smp.h:17,
                from /usr/include/linux/sched.h:23,
                from /usr/include/linux/module.h:10,
                from acx100.c:70:
/usr/include/asm/mpspec.h:6:25: mach_mpspec.h: No such file or directory
In file included from /usr/include/asm/smp.h:18,
                from /usr/include/linux/smp.h:17,
                from /usr/include/linux/sched.h:23,
                from /usr/include/linux/module.h:10,
                from acx100.c:70:
/usr/include/asm/mpspec.h:8: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:9: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:10: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:12: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:19: error: `MAX_APICS' undeclared here (not in a function)
/usr/include/asm/mpspec.h:20: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:20: error: conflicting types for `mp_bus_id_to_type'
/usr/include/asm/mpspec.h:8: error: previous declaration of `mp_bus_id_to_type'
/usr/include/asm/mpspec.h:22: error: `MAX_IRQ_SOURCES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:24: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:24: error: conflicting types for `mp_bus_id_to_pci_bus'
/usr/include/asm/mpspec.h:12: error: previous declaration of `mp_bus_id_to_pci_bus'
/usr/include/asm/mpspec.h:54: error: `MAX_APICS' undeclared here (not in a function)
In file included from /usr/include/asm/smp.h:20,
                from /usr/include/linux/smp.h:17,
                from /usr/include/linux/sched.h:23,
                from /usr/include/linux/module.h:10,
                from acx100.c:70:
/usr/include/asm/io_apic.h:120: error: `MAX_IRQ_SOURCES' undeclared here (not in a function)
/usr/include/asm/io_apic.h:120: error: conflicting types for `mp_irqs'
/usr/include/asm/mpspec.h:22: error: previous declaration of `mp_irqs'
In file included from /usr/include/linux/smp.h:17,
                from /usr/include/linux/sched.h:23,
                from /usr/include/linux/module.h:10,
                from acx100.c:70:
/usr/include/asm/smp.h:73:26: mach_apicdef.h: No such file or directory
In file included from /usr/include/linux/irq.h:20,
                from /usr/include/asm/hardirq.h:6,
                from /usr/include/linux/interrupt.h:11,
                from /usr/include/linux/netdevice.h:489,
                from /usr/include/linux/if_arp.h:26,
                from acx100.c:77:
/usr/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory
In file included from /usr/include/asm/hardirq.h:6,
                from /usr/include/linux/interrupt.h:11,
                from /usr/include/linux/netdevice.h:489,
                from /usr/include/linux/if_arp.h:26,
                from acx100.c:77:
/usr/include/linux/irq.h:70: error: `NR_IRQS' undeclared here (not in a function)
In file included from /usr/include/linux/irq.h:72,
                from /usr/include/asm/hardirq.h:6,
                from /usr/include/linux/interrupt.h:11,
                from /usr/include/linux/netdevice.h:489,
                from /usr/include/linux/if_arp.h:26,
                from acx100.c:77:
/usr/include/asm/hw_irq.h:28: error: `NR_IRQS' undeclared here (not in a function)
/usr/include/asm/hw_irq.h:31: error: `NR_IRQS' undeclared here (not in a function)
make[1]: *** [acx100.o] Error 1
make[1]: Leaving directory `/home/bobbens/acx100/src'
make: *** [driver] Error 2

Thanks, i think im probably missing a dependancy but i have no idea which one, thanks alot...


All times are GMT -5. The time now is 07:22 PM.