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" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=native -fomit-frame-pointer -pipe -floop-interchange -floop-strip-mine -floop-block" CHOST="x86_64-pc-linux-gnu" 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" DISTDIR="/usr/portage/distfiles" 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" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en_US en" MAKEOPTS="V=1 -j1" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" 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" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/desktop /usr/local/portage/server /usr/local/mythtv_portage/Gentoo" SYNC="rsync://rsync11.us.gentoo.org/gentoo-portage" 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" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Created attachment 327996 [details] build log build log
Created attachment 328058 [details] exiv2-0.23-r2.ebuild Please test it with this ebuild and corresponding patch. This blocks bug #437432.
Created attachment 328060 [details, diff] exiv2-0.23-boost-fs-contrib.patch
For the records: original causing this bug #357605. The fix was setting a macro to stick to FS version 2.
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?
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).
Reported it also to upstream: http://dev.exiv2.org/issues/865
Confirming. Same problem, different versions however: media-gfx/exiv2-0.21.1-r1 dev-libs/boost-1.52.0-r4 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"
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.
Tested with: exiv2-0.23-r2.ebuild and exiv2-0.23-boost-fs-contrib.patch Working for me now.
i can confirm the bug is solved by that ebuild and patch, i kindly request those to be added on tree please
thank you Mario Kicherer you saved my system
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 exiv2-0.23-boost-fs-contrib.patch
fixed in CVS.