When I try to compile virtualbox-ose-2.0.6 with gcc-4.2.4 it fails Reproducible: Always Steps to Reproduce: 1. Select version of gcc less than 4.3.* 2. emerge virtualbox-ose 3. Actual Results: Compiling fails Expected Results: Compiling should've succeed /etc/make.conf: ACCEPT_KEYWORDS="~x86" CHOST="i686-pc-linux-gnu" CFLAGS="-Os -march=pentium3 -pipe" CXXFLAGS="${CFLAGS}" MAKEOPTS="-j2" GENTOO_MIRRORS="http://gentoo.mirrors.tera-byte.com/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ " ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" INPUT_DEVICES="keyboard mouse evdev" VIDEO_CARDS="savage" LINGUAS="en" USE="-* tordns xvid ffmpeg a52 win32codecs mpeg firefox cairo gdbm python aspell acpi pcre pdf ppds mp3 mad opengl cdparanoia midi dbus alsa dvd css wifi pcmcia nls unicode ncurses mmx sse xcb xorg gnome gtk spell X ssl foomaticdb msn mp3 jpeg gif pnf tiff svg pam fam hal sdl dri cups samba threads expat glitz bzip2 zlib zip x86 usb java png truetype" CAMERAS="ptp2" source /usr/local/portage/layman/make.conf
Created attachment 179979 [details] Build log of virtualbox-ose
The problem are the kernel headers, as documented in the upstream bug report: http://www.virtualbox.org/ticket/2936 Patch is available there as well...
In fact, this bug is a dupe. *** This bug has been marked as a duplicate of bug 253004 ***
(In reply to comment #2) > The problem are the kernel headers, as documented in the upstream bug report: > > http://www.virtualbox.org/ticket/2936 > > Patch is available there as well... > Actually no, it was the version of libsdl for me.
> Actually no, it was the version of libsdl for me. hmm, what? The link for the patch or why it didn't build for you?
(In reply to comment #5) > > Actually no, it was the version of libsdl for me. > hmm, what? The link for the patch or why it didn't build for you? > My version of libsdl was too new. I had version 1.2.13-r1 installed, I downgraded to 1.2.13 and OSE compiled. A similar thing happened with PUEL edition. libsdl-1.2.13 was upgraded to 1.2.13-r1 then VBox wouldn't work. I downgraded libsdl, rebuild the vboxdrv module and vbox worked.
Well, that was not was your build.log was showing: [...] /usr/include/linux/byteorder/swabb.h: In function ‘__u32 __fswahw32(__u32)’: /usr/include/linux/byteorder/swabb.h:94: error: ISO C++ forbids braced-groups within expressions /usr/include/linux/byteorder/swabb.h: In function ‘__u32 __swahw32p(__u32*)’: /usr/include/linux/byteorder/swabb.h:99: error: ISO C++ forbids braced-groups within expressions /usr/include/linux/byteorder/swabb.h: In function ‘__u32 __fswahb32(__u32)’: /usr/include/linux/byteorder/swabb.h:109: error: ISO C++ forbids braced-groups within expressions /usr/include/linux/byteorder/swabb.h: In function ‘__u32 __swahb32p(__u32*)’: /usr/include/linux/byteorder/swabb.h:114: error: ISO C++ forbids braced-groups within expressions [...] It might be the case that some older libsdl-headers include the necessary define and those defines leak through to to VirtualBox.
(In reply to comment #7) > It might be the case that some older libsdl-headers include the necessary > define and those defines leak through to to VirtualBox. > Perhaps, I don't know. I have the latest linux-headers available in the portage tree. I had the latest libsdl installed and VirtualBox would not compile. I downgraded libsdl on revision and VBox would compile.