[vbox-dev] [PATCH] FreeBSD: remove debugging fprintf in MachineImpl.cpp to fix build with GCC 4.6

Bernhard Froehlich decke at bluelife.at
Fri Apr 13 08:56:57 GMT 2012


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 <avg at FreeBSD.org>

-- 
Bernhard Fröhlich
http://www.bluelife.at/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-src-VBox-Main-src-server-MachineImpl.cpp
Type: application/octet-stream
Size: 500 bytes
Desc: not available
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20120413/ecbdb3c3/attachment.obj>


More information about the vbox-dev mailing list