There is a bug with gcc-3.4.6 that strikes boost. When compiling the test cases for libopenraw the compiler exits with error message: /usr/include/boost/crc.hpp:468: error: ISO C++ forbids variable-size array `table_type' The bug has been known to the boost dev team for 3 years. see: https://svn.boost.org/trac/boost/ticket/613 Although it seems to be a bug of gcc, there is an easy woraround in the source-code for it. So please add the attached patch to the patchset in the ebuild to overcome this error. Alternatively the gcc team may correct this bug :) Reproducible: Always Steps to Reproduce: 1. use hardened tool chain and gcc-3.4.6 2. install boost-1.35.0-r2 3. compile test cases with enabled strict ISO C++ compliance (eg: media-libs/libopenraw-0.0.5) Portage 2.2_rc13 (hardened/linux/x86/2008.0, gcc-3.4.6, glibc-2.8_p20080602-r0, 2.6.21.5 i686) ================================================================= System uname: Linux-2.6.21.5-i686-Genuine_Intel-R-_CPU_T2300_@_1.66GHz-with-glibc2.3.2 Timestamp of tree: Mon, 03 Nov 2008 09:45:01 +0000 app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7, 2.1.6-r1 dev-lang/python: 2.4.4-r6, 2.5.2-r8 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.3.0-r1 sys-apps/sandbox: 1.2.18.1-r3 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.19 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=prescott -O2 -pipe -mfpmath=sse -msse -msse2 -mmmx -fomit-frame-pointer -fforce-addr -fmerge-constants -finline-functions -frerun-loop-opt" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /opt/openjms/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=prescott -O2 -pipe -mfpmath=sse -msse -msse2 -mmmx -fomit-frame-pointer -fforce-addr -fmerge-constants -finline-functions -frerun-loop-opt" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer parallel-fetch preserve-libs protect-owned sandbox sfperms sparallel-fetch strict stricter unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="en_US" LC_ALL="C" LDFLAGS="-Wl,-O1" LINGUAS="en_GB de en" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X a52 aac aalib acl acpi alsa arts audiofile avi bash-completion berkdb bluetooth branding bzip2 cairo cdparanoia cdr cli cracklib crypt cups dbus dga directfb divx dri dts dvd dvdr dvdread encode fam fbcon ffmpeg firefox flac gcj gd gdbm gif glut gmp gnome gnome-keyrings gpm gstreamer gtk hal hardened hddtemp iconv id3tag idn ieee1394 imagemagick imlib inifile ipod ipv6 isdnlog ithreads java java6 jpeg jpeg2k lame libnotify libwww live lm_sensors lzo mad mhash midi mime mjpeg mmx mng mp3 mpeg mudflap musepack nautilus ncurses nptl nptlonly ogg opengl openmp pam pcmcia pcre pctnl perl pic png posix pppd python qt4 quicktime raw readline real reflection session sharedmem sndfile spl sse sse2 ssl sysfs tcpd threads tiff truetype unicode urandom usb vcd vidix vorbios wavepack wifi win32codecs wmf x264 x86 xattr xface xine xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB de en" USERLAND="GNU" VIDEO_CARDS="fbdev nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Created attachment 170617 [details, diff] boost-1.35_crc_patch.diff A patch to make the source mor gcc friendly until gcc fixes the bug
This has been fixed in >=dev-libs/boost-1.35.0-r5 is fixed.