Compile Virtualbox 6.0.* Guest Additions for Windows

Discussions related to using the OSE version of VirtualBox.
Post Reply
Yurii.Ch
Posts: 31
Joined: 16. Oct 2018, 08:47
Primary OS: Mac OS X other
VBox Version: OSE self-compiled
Guest OSses: Windows 7-10, Linux

Compile Virtualbox 6.0.* Guest Additions for Windows

Post by Yurii.Ch »

Compilation of Guest Additions is getting stuck with the following error (formatted for readability):

Code: Select all

C:/MSVS/10.0/VC/bin/link.exe’
-nologo’
-machine:x86
-Ignore:4197
-Driver
-Subsystem:NATIVE
-Incremental:NO
-Align:4096
-MapInfo:Exports
-NoD
-Release
-Debug
-Opt:Ref
-Opt:Icf
-Version:600.4
-Stub:winstub.com'
-IntegrityCheck
/Entry:DriverEntry@8
/OUT:VBoxWddm.sys
/MAPINFO:EXPORTS
/INCREMENTAL:NO
/MAP:VBoxWddm.map
/LIBPATH:C:/WinDDK/7600.16385.1/lib/wlh/i386         
/LIBPATH:C:/WinDDK/8.1.1/Lib/win8/km/x86
@VBoxWddm.rsp

Creating library VBoxWddm.lib and object VBoxWddm.exp 
BufferOverflowK.lib(loadcfg.obj) : error LNK2001: unresolved external symbol __guard_fids_table
BufferOverflowK.lib(loadcfg.obj) : error LNK2001: unresolved external symbol __guard_fids_count
BufferOverflowK.lib(loadcfg.obj) : error LNK2001: unresolved external symbol __guard_flags 
VBoxWddm.sys : fatal error LNK1120: 3 unresolved externals
__guard_fids_table is a part of Microsoft anti-malware Control Flow Guard API, introduced in Windows 8.1. As far as I know, it requires Visual C++ version 14.0 (which is MSVS 2015 Update 3), however, it's still lack of good documentation of this API, so I'm not 100% sure. Also I'm not sure, is that bug of build system or it's real usage of Control Flow Guard API in addition to Hardening, and some additional configuration required.
Yurii.Ch
Posts: 31
Joined: 16. Oct 2018, 08:47
Primary OS: Mac OS X other
VBox Version: OSE self-compiled
Guest OSses: Windows 7-10, Linux

Re: Compile Virtualbox 6.0.* Guest Additions for Windows

Post by Yurii.Ch »

Problem is solved, patience colleagues, complete build instructions for Virtualbox 6 is coming soon.
Post Reply