VirtualBox

Opened 12 years ago

Last modified 12 years ago

#10160 closed enhancement

Compile virtual box with gcc 4.7 — at Initial Version

Reported by: sergiomb Owned by:
Component: other Version: VirtualBox 4.1.8
Keywords: Cc:
Guest type: other Host type: Linux

Description

Hi, has you may know for Fedora 17 will have packages rebuild with gcc 4.7, I try build VB with gcc 4.7, patch in attach.

but it will fail with a :

In file included from /usr/include/string.h:642:0,
from /builddir/build/BUILD/VirtualBox-4.1.8_OSE/include/iprt/string.h:87,                 from /builddir/build/BUILD/VirtualBox-4.1.8_OSE/src/VBox/Runtime/testcase/tstMemAutoPtr.cpp:33:
/usr/include/bits/string3.h:77:28: note: 'void* memset(void*, int,
size_t)' declared here, later in the translation unit

In file included
from /builddir/build/BUILD/VirtualBox-4.1.8_OSE/src/VBox/Runtime/testcase/tstMemAutoPtr.cpp:30:0:
/builddir/build/BUILD/VirtualBox-4.1.8_OSE/include/iprt/cpp/mem.h: In
instantiation of 'RTCMemAutoPtr<T, a_fnDestruct,
a_fnAllocator>::RTCMemAutoPtr(size_t, bool) [with T = char; void (*
a_fnDestruct)(T*) = RTCMemEfAutoFree<char>; void* (*
a_fnAllocator)(void*, size_t, const char*) = RTMemEfReallocNP; size_t =
long unsigned int]':
/builddir/build/BUILD/VirtualBox-4.1.8_OSE/src/VBox/Runtime/testcase/tstMemAutoPtr.cpp:163:82:   required from here
/builddir/build/BUILD/VirtualBox-4.1.8_OSE/include/iprt/cpp/mem.h:172:13: error: 'memset' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation }}}

Change History (1)

by sergiomb, 12 years ago

VirtualBox-OSE-4.1.8-gcc47.patch

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use