Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 440842 - media-gfx/exiv2-0.23[contrib] fails to build with dev-libs/boost-1.51
Summary: media-gfx/exiv2-0.23[contrib] fails to build with dev-libs/boost-1.51
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Stefan Briesenick (RETIRED)
Depends on:
Blocks: boost-1.50
  Show dependency tree
Reported: 2012-11-01 21:08 UTC by Chris Smith
Modified: 2013-01-24 22:10 UTC (History)
7 users (show)

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

build log (,47.15 KB, text/plain)
2012-11-01 21:09 UTC, Chris Smith
exiv2-0.23-r2.ebuild (exiv2-0.23-r2.ebuild,2.82 KB, text/plain)
2012-11-02 11:59 UTC, Mario Kicherer
exiv2-0.23-boost-fs-contrib.patch (exiv2-0.23-boost-fs-contrib.patch,9.33 KB, patch)
2012-11-02 11:59 UTC, Mario Kicherer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Smith 2012-11-01 21:08:17 UTC
media-gfx/exiv2-0.23 fails to build - possibly related to recent upgrade to dev-libs/boost-1.51.0-r1

Reproducible: Always

Actual Results:  
make: Entering directory `/var/tmp/portage/media-gfx/exiv2-0.23/work/exiv2-0.23/contrib/organize'
x86_64-pc-linux-gnu-g++ -O2 -march=native -fomit-frame-pointer -pipe -floop-interchange -floop-strip-mine -floop-block -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wcast-align -Wpointer-arith -Wformat-security -Wmissing-format-attribute -Woverloaded-virtual -W -I/usr/include -I. -DEXV_HAVE_STDINT_H -c -o helpers.o helpers.cpp
In file included from /usr/include/boost/filesystem.hpp:15:0,
                 from helpers.hpp:34,
                 from helpers.cpp:42:
/usr/include/boost/filesystem/config.hpp:16:5: error: #error Compiling Filesystem version 3 file with BOOST_FILESYSTEM_VERSION defined != 3
helpers.cpp: In function ‘bool file_get_tm(const boost::filesystem::path&, tm&)’:
helpers.cpp:207:15: warning: ordered comparison of pointer with integer zero [-Wextra]
make: *** [helpers.o] Error 1
make: Leaving directory `/var/tmp/portage/media-gfx/exiv2-0.23/work/exiv2-0.23/contrib/organize'
 * ERROR: media-gfx/exiv2-0.23 failed (compile phase):
 *   emake failed

$ emerge --info
Portage 2.2.0_alpha142 (default/linux/amd64/10.0/desktop/gnome, gcc-4.7.2, glibc-2.16.0, 3.6.5-gentoo x86_64)
System uname: Linux-3.6.5-gentoo-x86_64-Intel-R-_Core-TM-_i7-3770K_CPU_@_3.50GHz-with-gentoo-2.2
Timestamp of tree: Thu, 01 Nov 2012 18:15:01 +0000
ld GNU ld (GNU Binutils) 2.23
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.9-r1
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.2
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.4
sys-devel/binutils:       2.23
sys-devel/gcc:            4.7.2
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo desktop server mythtv
ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-O2 -march=native -fomit-frame-pointer -pipe -floop-interchange -floop-strip-mine -floop-block"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -fomit-frame-pointer -pipe -floop-interchange -floop-strip-mine -floop-block"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS="-O2 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_US en"
MAKEOPTS="V=1 -j1"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/usr/local/portage/desktop /usr/local/portage/server /usr/local/mythtv_portage/Gentoo"
USE="X a52 aac aalib acl acpi alsa amd64 amr apache2 audiofile bash-completion berkdb bluetooth branding bzip2 cairo caps cdaudio cdda cddb cdparanoia cdr cdrdao chm cli colord consolekit cracklib crypt cups curl cxx dbus designer-plugin djvu dri dts dv dvb dvd dvdr ebook emboss encode evo exif fam ffmpeg firefox flac fortran gdbm gif gmp gnome gnome-keyring gnome-online-accounts gphoto2 gpm gps graphite gstreamer gtk gtk3 iconv icu ieee1394 imagemagick imap imlib ipv6 jack java jpeg jpeg2k kpathsea lame lcms libffi libnotify mad marble midi mmap mmx mng modules mozilla mp3 mp4 mpeg mudflap multilib musicbrainz mythtv nautilus ncurses network nls nodrm nptl nsplugin nvidia ofx ogg opencl openexr opengl openmp pam pango pcre pdf png policykit ppds pulseaudio quicktime readline samba sasl scanner sdl semantic-desktop session slp smp sndfile socialweb spell sse sse2 ssl startup-notification subversion svg theora threads tiff tk transparency truetype udev udisks unicode upower usb v4l vaapi vcd vdpau vim-syntax vorbis vpx wav wavpack wmf wxwidgets x264 xattr xcomposite xine xml xscreensaver xv xvid xvmc zlib" ALSA_CARDS="hda-intel hdsp hpet hrtimer rtctimer seqdummy virmidi" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_US en" NGINX_MODULES_HTTP="autoindex gzip" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="epson epson2" USERLAND="GNU" VIDEO_CARDS="nvidia nouveau intel modesetting" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Comment 1 Chris Smith 2012-11-01 21:09:07 UTC
Created attachment 327996 [details]
build log

build log
Comment 2 Mario Kicherer 2012-11-02 11:59:32 UTC
Created attachment 328058 [details]

Please test it with this ebuild and corresponding patch.

This blocks bug #437432.
Comment 3 Mario Kicherer 2012-11-02 11:59:57 UTC
Created attachment 328060 [details, diff]
Comment 4 Mario Kicherer 2012-11-02 13:50:45 UTC
For the records: original causing this bug #357605. The fix was setting a macro to stick to FS version 2.
Comment 5 Stefan Briesenick (RETIRED) gentoo-dev 2012-11-03 00:01:23 UTC
does this patch also works with boost < 1.51?

There're some packages broken now woth boost-1.51.

app-text/sigil and media-gfx/sfftobmp were the first I recognized by myself.

furthermore: is there a quick overview, what has changed in 1.51 from a programmers point of view?
Comment 6 Mario Kicherer 2012-11-03 11:12:04 UTC
I only tested it with the new boost 1.49.0-r2, I didn't check what changes were introduced with the new boost and new -rX. I only removed the BOOST_FILESYSTEM_VERSION=2 macro and made a proper patch that fixes this workaround (for me).
Comment 7 Mario Kicherer 2012-11-03 11:13:27 UTC
Reported it also to upstream:
Comment 8 Daniel Santos 2012-11-29 02:06:59 UTC
Confirming. Same problem, different versions however:


Can you please backport this to 0.21.1 as well (I suppose with version "0.21.1-r3", since "-r2" already exists, but is marked unstable?) so that those with stable use flags are happy? I actually have ~amd64 for my boost because I use it in development, but most of my system is stable.

BTW, the patch only fixed part of my problem, I didn't manage to get rid of the BOOST_FILESYSTEM_VERSION defined != 3 error, but I only copied & pasted part of the ebuild for 0.23-r2 (attached by Mario above) into a new 0.21.1-r3 ebuild and then got lazy and just ran USE="-contrib"
Comment 9 Mario Kicherer 2012-11-29 10:10:49 UTC
Could you test this with the ebuild from bug #437432?
I'd rather like to see 0.23 becoming stable as it introduces support for new cameras and lenses. Current stable is around 1.5 years old.
Comment 10 Peter Kokko 2012-12-05 21:35:16 UTC
Tested with:
exiv2-0.23-r2.ebuild and
Working for me now.
Comment 11 renato gallo 2012-12-31 04:10:50 UTC
i can confirm the bug is solved by that ebuild and patch, i kindly request those to be added on tree please
Comment 12 renato gallo 2012-12-31 04:11:41 UTC
thank you Mario Kicherer you saved my system
Comment 13 Thomas Bettler 2013-01-12 22:16:26 UTC
Tested with:
exiv2-0.23-r2.ebuild and
Working for me now.
Comment 14 Christoph Koke 2013-01-17 11:58:20 UTC
Same for me exiv2-0.23 was broken after update to boost 1.51.
It builds again with the provided files:
exiv2-0.23-r2.ebuild and
Comment 15 Stefan Briesenick (RETIRED) gentoo-dev 2013-01-24 22:10:33 UTC
fixed in CVS.