Hello, if I wanna build a kernel module standalone (without the kernel e.g. for testing) I do it the following way (wlan in this example):
cd /usr/src/sys/modules/wlan make all maybe make install if I wanna install it. Now I want do build the linux.ko module with the symbol DEBUG defined and tried the following: cd /usr/src/sys/modules/linux make -DDEBUG all but unfortunately this ends up with: cc -c -O2 -pipe -march=athlon64 -DCOMPAT_FREEBSD32 -DCOMPAT_LINUX32 -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-omit-frame-pointer -mno-sse -mcmodel=kernel -mno-red-zone -mno-mmx -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option /usr/src/sys/modules/linux/../../amd64/linux32/linux32_genassym.c In file included from ./machine/param.h:46, from @/sys/param.h:115, from /usr/src/sys/modules/linux/../../amd64/linux32/linux32_genassym.c:4: ./machine/_align.h:6:24: error: x86/_align.h: No such file or directory Building the module insinde a make buildkernel works fine - so there are actually no missing files. Do you have any ideas what I'am missing? Thank you, Martin Laabs _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"