Kernel 4.4.6 and probable newer versions. x11-drivers/xf86-video-virtualbox does not compile. CAUSE: /usr/src/linux-4.4.6-gentoo/include/linux/string.h line 117: 'char *strreplace(char *s, char old, char new);' causes compile failure. "new" is a C++ keyword. SOLUTION: Changing to 'char *strreplace(char *s, char *, char *);' fixes the problem.
same as https://bugs.gentoo.org/show_bug.cgi?id=582132 I guess
(In reply to Elmar Haag from comment #0) > Kernel 4.4.6 and probable newer versions. > x11-drivers/xf86-video-virtualbox does not compile. > > CAUSE: > /usr/src/linux-4.4.6-gentoo/include/linux/string.h line 117: > 'char *strreplace(char *s, char old, char new);' causes compile failure. > "new" is a C++ keyword. > > SOLUTION: > Changing to 'char *strreplace(char *s, char *, char *);' fixes the problem. Thank you.
I just came across this issue too, but the proposed workaround doesn't look correct (it might happen to work if the function isn't used, but anything that used that function would fail at compile-time). The new function prototype should be: > char *strreplace(char *s, char, char); The package compiles fine with this change and seems to work fine, too.
Please reopen this bug if this is still a problem on current versions