Answer the question
In order to leave comments, you need to log in
How to build xf86-video-virtualbox driver in gentoo?
When building xf86-video-virtualbox or xorg-drivers under virtualbox, a compilation error (more precisely, a parsing error) occurs. The compiler complains about the new keyword in the strreplace function, which acts as a variable name:
[screenshot]
The contents of /etc/portage/make.conf:
CFLAGS="-02 -pipe"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"
USE="bindist mmx sse sse2"
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
MAKEOPTS="-j3"
INPUT_DEVICES="edev keyboard mouse"
VIDEO_CARDS="virtualbox"
Answer the question
In order to leave comments, you need to log in
I have been searching for a solution for several days.
This is my first install of Gentoo, so I had to ask for help on IRC#GENTOO.
With the help of a little guidance, I finally found what and how to do.
1. It is necessary to replace the word new with newstr in 3 places in the /usr/src/linux sources .
2. Rebuild the kernel and the required packages.
Here are a couple more related links: 1 , 2 .
Also, one of the statements was that GCC should be upgraded to version 5.x.
At the time of my torment, I had gcc-4.9.4. Haven't checked yet.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question