Not a great experience when your first time you try gentoo, people in irc say you found a bug.
it's a syntax error in the code. 'new' cannot be used as an identifier (i.e. variable name) in C++
Thank you for your report. I share your experience. With gentoo you get very young source code and can help developers to improve programs upstream. Most developers do not care about upstream bugs found in debian stable.
This bug should be reported upstream, would you do this?
Besides that I will assign this bug report to the package maintainer. Perhaps there will be an easy (patch or stabilization) solution too.
Well it's hard to deal with a bug report without having the actual build.log file attached.
I suggest to not report this to upstream unless it can be reprodced in the 5.0.x version series as well and is clearly not a bug introduced by us. We build the different virtualbox parts quite differently from how upstream wants them to be built.
Created attachment 433316 [details]
I've included the build.log, ebuild environment, and emerge --info as 3 separate text documents. If you need anything else, I can provide.
Can you please test the virtualbox-modules-4.3.36 package? I'm quite sure that 4.3.32 is too old for a 4.4.x linux kernel.
You will laugh but this can be easily fixed by modifying linux kernel 4.4 source (the line where "new" is mentioned), just rename "new" to something other. This line is fine when compild with C compiler, but xf86-video-virtualbox is compiled with g++...
The file is:
The line is:
char *strreplace(char *s, char old, char new); // new is a reserved keyword in C++
If you replace it with:
char *strreplace(char *s, char old, char new_c); // for example
then xf86-video-virtualbox will compile fine.
*** Bug 588620 has been marked as a duplicate of this bug. ***
Looks like virtualbox added a fix for this though I'm not familiar with their releases so i don't know if it's out in a newer version yet.
The content of attachment 433316 [details] has been deleted for the following reason: