Have graphicsmagick installed (with imagemagick use flag). First attempts were: checking for MAGICK... no checking for MAGICK... no configure: error: in `/var/tmp/portage/media-gfx/zbar-0.10-r3/work/zbar-0.10': configure: error: Unable to find ImageMagick >= 6.2.6: No package 'MagickWand' found Tried various linking, copying, and editing various files in /usr/lib64/pkgconfig/. That eventually got through the configuration page, but it still wouldn't compile: zbarimg/zbarimg_zbarimg-zbarimg.o: In function `scan_image': zbarimg.c:(.text+0x7b): undefined reference to `MagickSetIteratorIndex' zbarimg.c:(.text+0x18c): undefined reference to `MagickExportImagePixels' zbarimg/zbarimg_zbarimg-zbarimg.o: In function `main': zbarimg.c:(.text.startup+0x269): undefined reference to `MagickWandGenesis' zbarimg.c:(.text.startup+0x505): undefined reference to `MagickWandTerminus' collect2: error: ld returned 1 exit status Makefile:1463: recipe for target 'zbarimg/zbarimg' failed make[1]: *** [zbarimg/zbarimg] Error 1 make[1]: *** Waiting for unfinished jobs.... libtool: link: ( cd "gtk/.libs" && rm -f "libzbargtk.la" && ln -s "../libzbargtk.la" "libzbargtk.la" ) make[1]: Leaving directory '/var/tmp/portage/media-gfx/zbar-0.10-r3/work/zbar-0.10' Makefile:959: recipe for target 'all' failed make: *** [all] Error 2 * ERROR: media-gfx/zbar-0.10-r3::gentoo failed (compile phase): * emake failed Actually did go through the pain of uninstalling graphicsmagick and installing imagemagick, and then it compiled fine.
media-gfx/zbar-0.10-r3 is obsolete. I could not reproduce this bug with zbar-0.10-r5. Please re-open if the problem still exists. The imagemagick stuff goes away with zbar-0.10_p20121015.
Exactly the same as before (with 0.10-r5) checking for MAGICK... no checking for MAGICK... no configure: error: in `/var/tmp/portage/media-gfx/zbar-0.10-r5/work/zbar-0.10': configure: error: Unable to find ImageMagick >= 6.2.6: No package 'MagickWand' found * Ensure that you installed any "development" packages for ImageMagick. * Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. * You may set the environment variables MAGICK_CFLAGS and MAGICK_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. * To avoid using ImageMagick altogether you may add the --without-imagemagick flag to the configure command; the zbarimg program will not be built. See `config.log' for more details !!! Please attach the following file when seeking support: !!! /var/tmp/portage/media-gfx/zbar-0.10-r5/work/zbar-0.10/config.log * ERROR: media-gfx/zbar-0.10-r5::gentoo failed (configure phase): * econf failed * * Call stack: * ebuild.sh, line 133: Called src_configure * environment, line 3970: Called econf '--with-jpeg' '--with-gtk' '--with-imagemagick' '--without-python' '--without-qt' '--disable-static' '--enable-pthread' '--with-x' '--with-xv' '--disable-video' * phase-helpers.sh, line 662: Called __helpers_die 'econf failed' * isolated-functions.sh, line 117: Called die * The specific snippet of code: * die "$@" * * If you need support, post the output of `emerge --info '=media-gfx/zbar-0.10-r5::gentoo'`, * the complete build log and the output of `emerge -pqv '=media-gfx/zbar-0.10-r5::gentoo'`. * The complete build log is located at '/var/log/portage/media-gfx:zbar-0.10-r5:20160501-152934.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/media-gfx/zbar-0.10-r5/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-gfx/zbar-0.10-r5/temp/environment'. * Working directory: '/var/tmp/portage/media-gfx/zbar-0.10-r5/work/zbar-0.10' * S: '/var/tmp/portage/media-gfx/zbar-0.10-r5/work/zbar-0.10' >>> Failed to emerge media-gfx/zbar-0.10-r5, Log file:
Hello, I just came across this - after updating ImageMagick to 7.0.5.0 zbar no longer works. The old file location (ImageMagick 6): /usr/include/ImageMagick-6/wand/MagickWand.h The new file location: /usr/include/ImageMagick-7/MagickWand/MagickWand.h Horribly stupid workaround (but hey, it works): cd /usr/include/ImageMagick-7 ln -s MagickWand wand This allows it to compile again. But it's far from optimal.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=941ba5d5bd2504193c493f18c013a47e72a09237 commit 941ba5d5bd2504193c493f18c013a47e72a09237 Author: Michael Weber <xmw@gentoo.org> AuthorDate: 2017-12-18 09:52:04 +0000 Commit: Michael Weber <xmw@gentoo.org> CommitDate: 2017-12-18 09:52:14 +0000 media-gfx/zbar: USE=imagemagick requires different configure switches, thanks ta2002. Closes: https://bugs.gentoo.org/552350 Package-Manager: Portage-2.3.19, Repoman-2.3.6 media-gfx/zbar/zbar-0.10_p20121015-r2.ebuild | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-)