VirtualBox

Ticket #7511 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

Compiling with Guest Properties disabled fails (fix attached)

Reported by: TwistedLincoln Owned by:
Priority: major Component: other
Version: VirtualBox 3.2.8 Keywords:
Cc: Guest type: other
Host type: Linux

Description

When compiling VirtualBox-OSE 3.2.8 without Guest Properties enabled (by setting the VBOX_WITH_GUEST_PROPS configure flag), compilation ends with an error.

This appears to be due to the fact a section of code used by the Guest Properties functionality is not properly segregated to be run only if compiled with the feature active.

The solution is to place #ifdef VBOX_WITH_GUEST_PROPS and #endif statements surrounding the offending code.

The location in question is src/VBox/Main/MachineImpl.cpp -- placing the above statements at lines 11143 and 11163 respectively solves the issue, and VirtualBox-OSE compiles as expected, with the Guest Properties approrpiately disabled.

I have attached a copy of the MachineImpl.cpp file with the modifications in place.

Attachments

MachineImpl.cpp Download (367.0 KB) - added by TwistedLincoln 4 years ago.
Fixed MachineImpl.cpp

Change History

Changed 4 years ago by TwistedLincoln

Fixed MachineImpl.cpp

comment:1 Changed 4 years ago by frank

  • Status changed from new to closed
  • Resolution set to fixed

Thanks for the report, this will be fixed in the next maintenance release.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use