Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 751340 - media-video/transcode-1.1.7-r4 w/ media-gfx/imagemagick-7.0.10.34-r1: ERROR: option '--enable-imagemagick' failed: cannot compile MagickWand/MagickWand.h
Summary: media-video/transcode-1.1.7-r4 w/ media-gfx/imagemagick-7.0.10.34-r1: ERROR: ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
: 752345 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-10-26 14:30 UTC by Richard Ash
Modified: 2020-11-06 17:54 UTC (History)
16 users (show)

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


Attachments
Configure log from configuration failure (config.log,180.72 KB, text/plain)
2020-10-26 14:31 UTC, Richard Ash
Details
Build log (media-video:transcode-1.1.7-r4:20201026-140124.log,23.51 KB, text/plain)
2020-10-26 14:40 UTC, Richard Ash
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Ash 2020-10-26 14:30:21 UTC
Merge fails because the configure script cannot cannot compile MagickWand/MagickWand.h. The configure log suggests there is a missing definition or incompatibility in the header files.

Reproducible: Always

Steps to Reproduce:
1. emerge media-video/transcode-1.1.7-r4 on stable amd64

Actual Results:  
Build fails.

Expected Results:  
Package builds and merges.
Comment 1 Richard Ash 2020-10-26 14:31:55 UTC
Created attachment 668630 [details]
Configure log from configuration failure
Comment 2 Richard Ash 2020-10-26 14:40:45 UTC
Created attachment 668633 [details]
Build log
Comment 3 Richard Ash 2020-11-01 20:45:36 UTC
To state the obvious, setting USE=-imagemagick for this package works around the problem, transcode then compiles fine. I note that both the home pages listed in the manifest are no longer in existence, and could not locate a successor.

I haven't yet found out what difference disabling imagemagick support makes to the functionality of transcode, because I think I only have it installed as a dependency of k3b. 
k3b only has an optional run-time dependency on transcode (with the dvd && encode use flags), and I certainly don't use k3b to encode videos for DVD (I use the DVD wizard in kdenlive, but then burn the discs in k3b). The k3b ebuild only requires transcode to have the dvd use-flag set (so this should not matter), but I haven't tested this.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-11-03 00:01:08 UTC
*** Bug 752345 has been marked as a duplicate of this bug. ***
Comment 5 Frank Noack 2020-11-03 06:26:20 UTC
Exactly the same here. I confirm this bug.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-11-03 06:36:09 UTC
I CCed someoen who knows about IM but upstream seems.. gone?
Comment 7 Christophe PEREZ 2020-11-03 15:10:52 UTC
(In reply to Frank Noack from comment #5)
> Exactly the same here. I confirm this bug.

Confirm too
Comment 8 Frank Noack 2020-11-05 07:53:59 UTC
The same problem with transcode-1.1.7-r5.
Comment 9 Frank Noack 2020-11-05 08:08:01 UTC
ERROR: option '--enable-imagemagick' failed: cannot compile MagickWand/MagickWand.h
MagickWand/MagickWand.h can be found in the following packages:
  MagickWand  http://www.imagemagick.org/

The missing file exists:
# equery files imagemagick| grep MagickWand.h
/usr/include/ImageMagick-7/MagickWand/MagickWand.h
/usr/share/doc/imagemagick-7.0.10.34-r1/html/www/api/MagickWand/struct__MagickWand.html

It seems to be a problem with transcode-1.1.7-imagemagick7.patch:

http://git.pld-linux.org/?p=packages/transcode.git;a=blob_plain;f=imagemagick7.patch;h=8411f89b843764eff8f4aaddb314d7773d1bcec8;hb=HEAD

--- transcode-1.1.7/configure.in
+++ transcode-1.1.7/configure.in
@@ -1105,8 +1105,8 @@
 dnl ImageMagick
 dnl
 IMAGEMAGICK_EXTRA_LIBS="$IMAGEMAGICK_EXTRA_LIBS $($PKG_CONFIG --libs ImageMagick)"
-TC_PKG_CHECK(imagemagick, no, IMAGEMAGICK, no, [magick/api.h],
- none, InitializeMagick, Wand, [http://www.imagemagick.org/])
+TC_PKG_CHECK(imagemagick, no, IMAGEMAGICK, no, [MagickWand/MagickWand.h],
+ none, InitializeMagick, MagickWand, [http://www.imagemagick.org/])
 TC_PKG_HAVE(imagemagick, IMAGEMAGICK)
 if test x"$have_imagemagick" = x"yes" ; then
   SAVE_CPPFLAGS="$CPPFLAGS"
@@ -1114,6 +1114,7 @@
   AC_CHECK_HEADER([wand/magick-wand.h],
     [AC_DEFINE([HAVE_BROKEN_WAND], [1], ["have old wand header"])])
   CPPFLAGS="$SAVE_CPPFLAGS"
+  IMAGEMAGICK_CFLAGS="$IMAGEMAGICK_CFLAGS $($PKG_CONFIG --cflags ImageMagick)"

I'm not able to solve that
Comment 10 F... 2020-11-05 22:53:23 UTC
(In reply to Frank Noack from comment #9)
> ERROR: option '--enable-imagemagick' failed: cannot compile
> MagickWand/MagickWand.h
> MagickWand/MagickWand.h can be found in the following packages:
>   MagickWand  http://www.imagemagick.org/
> 
> The missing file exists:
> # equery files imagemagick| grep MagickWand.h
> /usr/include/ImageMagick-7/MagickWand/MagickWand.h
> /usr/share/doc/imagemagick-7.0.10.34-r1/html/www/api/MagickWand/
> struct__MagickWand.html
> 
> It seems to be a problem with transcode-1.1.7-imagemagick7.patch:
> 
> http://git.pld-linux.org/?p=packages/transcode.git;a=blob_plain;
> f=imagemagick7.patch;h=8411f89b843764eff8f4aaddb314d7773d1bcec8;hb=HEAD
> 
> --- transcode-1.1.7/configure.in
> +++ transcode-1.1.7/configure.in
> @@ -1105,8 +1105,8 @@
>  dnl ImageMagick
>  dnl
>  IMAGEMAGICK_EXTRA_LIBS="$IMAGEMAGICK_EXTRA_LIBS $($PKG_CONFIG --libs
> ImageMagick)"
> -TC_PKG_CHECK(imagemagick, no, IMAGEMAGICK, no, [magick/api.h],
> - none, InitializeMagick, Wand, [http://www.imagemagick.org/])
> +TC_PKG_CHECK(imagemagick, no, IMAGEMAGICK, no, [MagickWand/MagickWand.h],
> + none, InitializeMagick, MagickWand, [http://www.imagemagick.org/])
>  TC_PKG_HAVE(imagemagick, IMAGEMAGICK)
>  if test x"$have_imagemagick" = x"yes" ; then
>    SAVE_CPPFLAGS="$CPPFLAGS"
> @@ -1114,6 +1114,7 @@
>    AC_CHECK_HEADER([wand/magick-wand.h],
>      [AC_DEFINE([HAVE_BROKEN_WAND], [1], ["have old wand header"])])
>    CPPFLAGS="$SAVE_CPPFLAGS"
> +  IMAGEMAGICK_CFLAGS="$IMAGEMAGICK_CFLAGS $($PKG_CONFIG --cflags
> ImageMagick)"
> 
> I'm not able to solve that

I installed media-gfx/imagemagick-7.0.10.35 and it solved this problem.
Comment 11 urcindalo 2020-11-06 11:23:23 UTC
> I installed media-gfx/imagemagick-7.0.10.35 and it solved this problem.

Updating stable imagemagick to ~imagemagick-7.0.10.35 solved it for me, too.
Comment 12 Frank Noack 2020-11-06 17:23:44 UTC
(In reply to urcindalo from comment #11)
> 
> Updating stable imagemagick to ~imagemagick-7.0.10.35 solved it for me, too.

Thanks. This worked for me as well.
Comment 13 Larry the Git Cow gentoo-dev 2020-11-06 17:54:51 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15cc2366ea419b9678948208ec4c0d36406ebf4f

commit 15cc2366ea419b9678948208ec4c0d36406ebf4f
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2020-11-06 17:54:07 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2020-11-06 17:54:07 +0000

    media-gfx/imagemagick: rollover stable keywords
    
    Closes: https://bugs.gentoo.org/751340
    Package-Manager: Portage-3.0.9, Repoman-3.0.2
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 media-gfx/imagemagick/imagemagick-6.9.11.35.ebuild | 2 +-
 media-gfx/imagemagick/imagemagick-7.0.10.35.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)