Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 256656 - app-emulation/virtualbox-ose-2.0.6 /gcc-4.2.4 - /usr/include/linux/byteorder/swabb.h:94: error: ISO C++ forbids braced-groups within expressions
Summary: app-emulation/virtualbox-ose-2.0.6 /gcc-4.2.4 - /usr/include/linux/byteorder/...
Status: RESOLVED DUPLICATE of bug 253004
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Markus Ullmann (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-28 17:08 UTC by Jordan
Modified: 2009-02-08 20:45 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log of virtualbox-ose (build.log,84.27 KB, text/plain)
2009-01-28 17:08 UTC, Jordan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jordan 2009-01-28 17:08:09 UTC
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
Comment 1 Jordan 2009-01-28 17:08:29 UTC
Created attachment 179979 [details]
Build log of virtualbox-ose
Comment 2 Tiziano Müller (RETIRED) gentoo-dev 2009-02-04 16:06:05 UTC
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...
Comment 3 Tiziano Müller (RETIRED) gentoo-dev 2009-02-04 16:07:37 UTC
In fact, this bug is a dupe.

*** This bug has been marked as a duplicate of bug 253004 ***
Comment 4 Jordan 2009-02-08 18:33:18 UTC
(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.
Comment 5 Tiziano Müller (RETIRED) gentoo-dev 2009-02-08 18:57:12 UTC
> 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?
Comment 6 Jordan 2009-02-08 19:35:53 UTC
(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.
Comment 7 Tiziano Müller (RETIRED) gentoo-dev 2009-02-08 20:35:22 UTC
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.
Comment 8 Jordan 2009-02-08 20:45:53 UTC
(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.