You are using very old VirtualBox version from pkgsrc/wip. This is something I haven't bothered ever to try. I download the source from VirtualBox and build it myself. All you need is kbuild and yasm and LocalConfig.kmk with the following contents: ... VBOX_WITHOUT_HARDENING := 1 VBOX_ONLY_ADDITIONS := 1 VBOX_WITH_ADDITION_DRIVERS := 1 VBOX_WITH_X11_ADDITIONS := 1 VBOX_ONLY_ADDITIONS_WITHOUT_RTISOMAKER := 1 ...
At the moment I am trying to build v.6.0.6 under 8-STABLE from 5th of April on a machine with no pkgsrc, everything installed using pkgin. We are talking about the guest additions drivers at the moment, not the virtualisation product itself. The build process puts everything under the out subfolder, it has to be then placed in the relevant locations and configured. The build is fine: .... 19:23:54.449825 main VBoxService 6.0.6 r129722 (verbosity: 0) netbsd.amd64 (May 10 2019 20:20:57) release log 19:23:54.449841 main Log opened 2019-05-10T19:23:54.449784000Z 19:23:54.449914 main OS Product: NetBSD 19:23:54.449937 main OS Release: 8.0 19:23:54.449957 main OS Version: NetBSD 8.0 (GENERIC) #0: Tue Jul 17 14:59:51 UTC 2018 [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC 19:23:54.449972 main Executable: /usr/local/bin/additions/VBoxService 19:23:54.449979 main Process ID: 10201 19:23:54.449986 main Package type: BSD_64BITS_GENERIC 19:23:54.453211 main 6.0.6 r129722 started. Verbose level = 0 .... My initial query was what has changed in 8.99.39 compared to 8.99.37 - it builds on the later, fails on the former. On Fri, 10 May 2019 at 20:04, Mayuresh <[email protected]> wrote: > > On Sat, May 11, 2019 at 12:05:03AM +0530, Mayuresh wrote: > > pxe_call.c:(.text.pxe_api_call+0x12): undefined reference to > > `__stack_chk_guard' > > PKGSRC_USE_SSP=no makes it go away, but that gives rise to following > errors that weren't present when it was not set. > > > In file included from > /usr/pkgsrc/wip/virtualbox/work/VirtualBox-5.0.16/src/VBox/HostDrivers/Support/SUPR3HardenedMain.cpp:67:0: > /usr/pkgsrc/wip/virtualbox/work/VirtualBox-5.0.16/include/VBox/types.h:78:37: > error: expected unqualified-id before numeric constant > typedef struct VM *PVM; > ^ > /usr/pkgsrc/wip/virtualbox/work/VirtualBox-5.0.16/include/VBox/types.h:78:37: > error: expected initializer before numeric constant > kmk: *** > [/usr/pkgsrc/wip/virtualbox/work/VirtualBox-5.0.16/out/netbsd.amd64/release/obj/SUPR3HardenedStatic/SUPR3HardenedMain.o] > Error 1 > > > Mayuresh -- ----
