Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 217927 (libopenraw-0.0.5)

Summary: media-libs/libopenraw-0.0.5 fails to compile
Product: Gentoo Linux Reporter: Markus Herhoffer <markus>
Component: New packagesAssignee: Freedesktop bugs <freedesktop-bugs>
Status: RESOLVED WONTFIX    
Severity: normal CC: gengor, hardened, marcin.deranek
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log

Description Markus Herhoffer 2008-04-16 10:37:38 UTC
make[3]: Entering directory `/var/tmp/portage/media-libs/libopenraw-0.0.5/work/libopenraw-0.0.5/testsuite'
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I../include -I../lib -I/usr/include/libxml2      -march=pentium-m -O2 -pipe -fomit-frame-pointer -msse2 -Wextra -ansi -pedantic -g -Wall -Wshadow -c -o testsuitetags.o testsuitetags.cpp
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I../include -I../lib -I/usr/include/libxml2      -march=pentium-m -O2 -pipe -fomit-frame-pointer -msse2 -Wextra -ansi -pedantic -g -Wall -Wshadow -c -o testsuite.o testsuite.cpp
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I../include -I../lib -I/usr/include/libxml2      -march=pentium-m -O2 -pipe -fomit-frame-pointer -msse2 -Wextra -ansi -pedantic -g -Wall -Wshadow -c -o testsuitehandler.o testsuitehandler.cpp
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I../include -I../lib -I/usr/include/libxml2      -march=pentium-m -O2 -pipe -fomit-frame-pointer -msse2 -Wextra -ansi -pedantic -g -Wall -Wshadow -c -o xmlhandler.o xmlhandler.cpp
xmlhandler.cpp:44: warning: unused parameter 'element'
In file included from testsuite.cpp:41:
/usr/include/boost/crc.hpp:468: error: ISO C++ forbids variable-size array `table_type'
make[3]: *** [testsuite.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/media-libs/libopenraw-0.0.5/work/libopenraw-0.0.5/testsuite'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/media-libs/libopenraw-0.0.5/work/libopenraw-0.0.5/testsuite'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-libs/libopenraw-0.0.5/work/libopenraw-0.0.5'
make: *** [all] Error 2
Comment 1 Rémi Cardona (RETIRED) gentoo-dev 2008-04-16 14:12:16 UTC
Please attach the full build.log created by portage and please paste the output of emerge --info.

Thanks
Comment 2 Markus Herhoffer 2008-04-17 12:30:59 UTC
Created attachment 150040 [details]
build log
Comment 3 Markus Herhoffer 2008-04-17 12:31:47 UTC
# emerge --info
Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-3.4.6, glibc-2.6.1-r0, 2.6.23-gentoo-r3 i686)
=================================================================
System uname: 2.6.23-gentoo-r3 i686 Genuine Intel(R) CPU L2400 @ 1.66GHz
Timestamp of tree: Wed, 16 Apr 2008 10:00:10 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer -msse2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer -msse2"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="[..]"
MAKEOPTS="-j3"
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"
PORTDIR_OVERLAY="/usr/portage/local/layman/pro-audio /usr/portage/local/layman/lila-theme /usr/portage/local/jmbsvicetto"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl acpi administrator aiglx alsa apache2 apm audiofile avi bash-completion berkdb bitmap-fonts bluetooth branding browserplugin bzip2 cairo cli cpudetection cracklib crypt ctype cups dba dbus dia dri dssi dvd dvdread eds emboss emf encode esd ethereal evo exif expat fam fastbuild fbsplash ffmpeg firefox flac foomaticdb force-cgi-redirect fortran ftp gd gdbm gif gimpprint glut gmp gnome gpm gstreamer gtk gtk2 gtkhtml guile hal ical iconv idn imagemagick imlib intl ipv6 isdnlog jack jackmidi java java5 jpe jpeg kerberos lcms ldap libg++ libwww logrotate mad memlimit midi mikmod mmx mng mono motif mozdevelop mozilla mp3 mp4 mpeg mudflap mysql ncurses nls nptl nptlonly nsplugin ogg opengl openmp oss pam pcre pdf pdflib perl php plotutils png posix postscript poszscript pppd python qt qt3 qt3support qt4 query-browser quicktime rar readline reflection samba sdl session simplexml slang smp sndfile soap sockets sound spell spl sse sse2 ssl svg tcltk tcpd tetex theora thunderbird tiff tokenizer truetype truetype-fonts type1-fonts udev unicode v4l v4l2 vim visualization vorbis vst wifi win32codecs wmf workbench x86 xml xml2 xorg xsl xv xvid 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 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vesa fbdev i810 intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2008-04-17 13:26:14 UTC
Which version of boost?
Comment 5 Rémi Cardona (RETIRED) gentoo-dev 2008-04-17 13:30:38 UTC
Could you make sure that you are using gcc 4.1.2 using "gcc-config -l" ? Thanks
Comment 6 Markus Herhoffer 2008-04-17 15:08:17 UTC
 # gcc-config -l
 [1] i686-pc-linux-gnu-3.4.6 *
 [2] i686-pc-linux-gnu-3.4.6-hardened
 [3] i686-pc-linux-gnu-3.4.6-hardenednopie
 [4] i686-pc-linux-gnu-3.4.6-hardenednopiessp
 [5] i686-pc-linux-gnu-3.4.6-hardenednossp
 [6] i686-pc-linux-gnu-4.1.2

# emerge -s boost
*  dev-libs/boost
      Latest version available: 1.34.1-r2
      Latest version installed: 1.34.1-r2
      Size of files: 12,688 kB
      Homepage:      http://www.boost.org/
      Description:   Boost Libraries for C++
      License:       freedist Boost-1.0
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2008-04-17 15:23:20 UTC
(In reply to comment #6)
>  # gcc-config -l
>  [1] i686-pc-linux-gnu-3.4.6 *

Old, but I'm aware hardened has old gcc in stable. :-/

>  [6] i686-pc-linux-gnu-4.1.2

Try this one.

>       Latest version available: 1.34.1-r2

Good.
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2008-04-17 15:26:24 UTC
Can we use.mask USE="raw" in hardened profile, and package.mask media-gfx/raw-thumbnailer and media-gfx/gnome-raw-thumbnailer?

I'm not intrested in supporting old toolchain..
Comment 9 Samuli Suominen (RETIRED) gentoo-dev 2008-04-17 15:27:28 UTC
and libopenraw, of course
Comment 10 Samuli Suominen (RETIRED) gentoo-dev 2008-04-18 16:58:49 UTC
{use,package}.mask'd on hardened profile (with permission from phreak@freenode)
and for the record, upstream's response was: upgrade to >= 4.0
Comment 11 Marcin Deranek 2008-11-17 20:37:51 UTC
Looks like masking raw USE flag in hardened profile does not allow me to build gallery-2.3 with raw support. Apparently raw USE flag in gallery should pull dcraw which compile just fine on hardened..