Larry Finger wrote: > That got me part way. Now I get > > kmk[3]: Entering directory `/home/finger/vbox/src/VBox/HostDrivers' > kBuild: Compiling vboxdrv - > /home/finger/vbox/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.mod.c > /home/finger/vbox/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.mod.c:46: > error: expected ‘=’, > ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__attribute_used__’ > /home/finger/vbox/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.mod.c:88: > error: expected ‘=’, > ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__attribute_used__’ > kmk[3]: *** > [/home/finger/vbox/out/linux.amd64/release/obj/src/VBox/HostDrivers/vboxdrv/linux/SUPDrv-linux.mod.o] > Error 1
This looks like the linux header files in your install are somewhat different to what we have ever seen. Could you check what needs to be included to get __attribute_used__ defined? The 2.4.24 sources I have access to define that in include/linux/compiler-gcc*.h, though they mark it as deprecated. Do the includes you have provide a definition? > The failing command: > @gcc -c -O2 -nostdinc -iwithprefix include -Wall -Wstrict-prototypes > -Wno-trigraphs > -Wno-pointer-sign -fno-stack-protector -O2 -mtune=generic > -fno-omit-frame-pointer > -fno-strict-aliasing -fno-common -m64 -mno-red-zone -mcmodel=kernel -mno-sse > -mno-mmx -mno-sse2 > -mno-3dnow -fno-reorder-blocks -ffreestanding -fno-asynchronous-unwind-tables > -funit-at-a-time > -Wno-sign-compare -Wdeclaration-after-statement > -I/home/finger/vbox/src/VBox/HostDrivers/Support > -I/lib/modules/2.6.24-Linus-07894-g66c62b6/build/include > -I/home/finger/vbox/include > -I/home/finger/vbox/out/linux.amd64/release -DVBOX -DVBOX_OSE -DRT_OS_LINUX > -D_FILE_OFFSET_BITS=64 > -DRT_ARCH_AMD64 -D__AMD64__ -D__KERNEL__ -DMODULE -DIN_RING0 -DIN_RT_R0 > -DKBUILD_MODNAME=KBUILD_STR\(vboxdrv\) > -DKBUILD_BASENAME=KBUILD_STR\(vboxdrv\) -DMODULE -DIN_RT_R0 > -DIN_SUP_R0 -DCONFIG_VBOXDRV_AS_MISC -DUSE_NEW_OS_INTERFACE_FOR_MM > -Wp,-MD,/home/finger/vbox/out/linux.amd64/release/obj/src/VBox/HostDrivers/vboxdrv/linux/SUPDrv-linux.mod.o.dep > -Wp,-MT,/home/finger/vbox/out/linux.amd64/release/obj/src/VBox/HostDrivers/vboxdrv/linux/SUPDrv-linux.mod.o > -Wp,-MP -o > /home/finger/vbox/out/linux.amd64/release/obj/src/VBox/HostDrivers/vboxdrv/linux/SUPDrv-linux.mod.o > /home/finger/vbox/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.mod.c > > Larry > > > > > _______________________________________________ > vbox-dev mailing list > [email protected] > http://vbox.innotek.de/mailman/listinfo/vbox-dev -- Dr. Klaus Espenlaub innotek GmbH, http://www.innotek.de _______________________________________________ vbox-dev mailing list [email protected] http://vbox.innotek.de/mailman/listinfo/vbox-dev
