On Tue, 2012-01-10 at 19:29 +0100, Julian Sikorski wrote:
W dniu 10.01.2012 17:39, Sérgio Basto pisze:
> On Fri, 2012-01-06 at 00:17 +0100, Nicolas Chauvet wrote:
>> As you might know, gcc-4.7 is available in the buildroot.
>> I will proceed with a mass rebuild on the 12/01, the same as fedora.
> VirtualBox doesn't build with gcc-4.7
> I had alter 2 patches begging to build
> Should I commit it ?
> , 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,
> /usr/include/bits/string3.h:77:28: note: 'void* memset(void*, int,
> size_t)' declared here, later in the translation unit
> In file included
> /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]':
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
This can be solved by moving the code around, have a look at the patch I
have committed to mame (nonfree).
After googling around, I found that Alexey Kurov
<nucleo(a)fedoraproject.org> has fix a similar problem with
but my problem is I can't look for this before week-end :(
Sérgio M. B.