﻿id	summary	reporter	owner	description	type	status	component	version	resolution	keywords	cc	guest	host
17678	Guest Additions won't build in Fedora 28 (Kernel 4.16.1) -> fixed in 5.2.12	Jim Avera		"Host: Ubuntu 18.04 (64-bit)
Guest: Fedora 28 beta

Installing GA fails with compilation errors like the one below.  I will attach /var/log/vboxadd-setup.log

/tmp/vbox.0/vbox_ttm.c:495:8: error: too many arguments to function ‘ttm_bo_validate’
  ret = ttm_bo_validate(&bo->bo, &bo->placement, false, false);
        ^~~~~~~~~~~~~~~
In file included from /tmp/vbox.0/vbox_drv.h:65,
                 from /tmp/vbox.0/vbox_ttm.c:31:
./include/drm/ttm/ttm_bo_api.h:338:5: note: declared here
 int ttm_bo_validate(struct ttm_buffer_object *bo,
     ^~~~~~~~~~~~~~~
cc1: some warnings being treated as errors

STEPS TO REPRODUCE:
1. (On HOST.  I used Ubuntu but probably the host does not matter)
wget https://download.fedoraproject.org/pub/fedora/linux/releases/test/28_Beta/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-28_Beta-1.3.iso

2. Create new Virtualbox VM.  I used 40G dynaimcally-allocated vdi, 4GB ram, 6 CPUs, enabled PAE/NX.
   Attach the iso image to the virtual DVD drive

3. Start the VM.  Install fedora taking all default.  Shut down the guest.
4. Remove the .iso from the virtual DVD drive
5. Boot the guest
6. Open terminal (Activities in upper left->grid of dots->""Terminal"")
   sudo dnf install dkms gcc kernel-devel kernel-headers
   Reboot the guest
7. Devices->Insert Guest Additions
   agree to install

RESULTS: Insmod fails (because module compilation did not succeed).  Look at the end of /var/log/vboxadd-setup.log

Using Virtualbox version 5.2.8_Ubuntu r120774
   "	defect	closed	guest additions	VirtualBox 5.2.8	fixed			Linux	Linux
