Ticket #18620 (closed defect: fixed)
Module build fails on linux due to mistake in vboxnetadp/Makefile -> fixed in releases after 7 May 2019
Reported by: | Ambroz Bizjak | Owned by: | |
---|---|---|---|
Component: | host support | Version: | VirtualBox 6.0.6 |
Keywords: | Cc: | ||
Guest type: | other | Host type: | Linux |
Description
In some circumstances (probably out-of-tree build), the vboxnetadp module fails to build with an error like this:
cc1: fatal error: /build/virtualbox-6.0.6-modsrc/include/VBox/SUPDrvMangling.h: No such file or directory
This is fixed by changing
VBOXMOD_CFLAGS = -include $(KBUILD_EXTMOD)/include/VBox/SUPDrvMangling.h -fno-pie -Wno-declaration-after-statement
to
VBOXMOD_CFLAGS = -include $(VBOXNETADPT_DIR)include/VBox/SUPDrvMangling.h -fno-pie -Wno-declaration-after-statement
in the vboxnetadp Makefile. It appears that this change was missed during refactoring of the makefiles in this commit: https://www.virtualbox.org/changeset/77394/vbox. One can easily see the problem by comparing this line with the equivalent lines in Makefiles of other modules.
Attachments
Change History
Changed 2 years ago by Ambroz Bizjak
-
attachment
fix_kbuild.patch
added
comment:1 Changed 2 years ago by michael
- Summary changed from Module build fails on linux due to mistake in vboxnetadp/Makefile to Module build fails on linux due to mistake in vboxnetadp/Makefile -> fixed in releases after 7 May 2019
Thank you, fixed!
https://www.virtualbox.org/changeset/78436/vbox
I hope I got your name right in the change log (should there be accented characters?) Interestingly I was just looking at that place before I saw your patch as part of getting rid of $(KBUILD_EXTMOD) in Make files.
Patch