When compiling VirtualBox 4.1.12 on FreeBSD with GCC 4.6 you get a compiler error because of leftover debugging code in MachineImpl.cpp:
kBuild: Compiling VBoxSVC - /usr/obj/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.1.12/src/VBox/Main/src-server/MachineImpl.cpp /usr/obj/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.1.12/src/VBox/Main/src-server/MachineImpl.cpp:In member function 'nsresult Machine::launchVMProcess(IInternalSessionControl*,
const com::Utf8Str&, const com::Utf8Str&, ProgressProxy*)': /usr/obj/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.1.12/src/VBox/Main/src-server/MachineImpl.cpp:6646:17: error: 'stderr' was not declared in this scope /usr/obj/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.1.12/src/VBox/Main/src-server/MachineImpl.cpp:6646:44: error: 'fprintf' was not declared in this scope The attached patch removes that debugging code and thus fixes compiling with gcc 4.6. The patch is licensed under MIT License. Author: Andriy Gapon <[email protected]> -- Bernhard Fröhlich http://www.bluelife.at/
patch-src-VBox-Main-src-server-MachineImpl.cpp
Description: Binary data
_______________________________________________ vbox-dev mailing list [email protected] https://www.virtualbox.org/mailman/listinfo/vbox-dev
