Bug 276368 - graphics/pecl-imagick build fails with 'fatal error: 'MagickWand/MagickWand.h' file not found' after ImageMagick7-nox11-7.1.1.26 upgrade
Summary: graphics/pecl-imagick build fails with 'fatal error: 'MagickWand/MagickWand.h...
Status: Closed DUPLICATE of bug 276360
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-16 07:18 UTC by Raúl
Modified: 2024-01-16 10:17 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (000.fbsd)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raúl 2024-01-16 07:18:46 UTC
After ImageMagick7-nox11-7.1.1.26 upgrade, portmaster build of graphics/pecl-imagick@php82 fails with:

[....]
--- imagickkernel_class.lo ---
In file included from /usr/ports/graphics/pecl-imagick/work-php82/imagick-3.7.0/imagickkernel_class.c:18:
./php_imagick_defs.h:25:12: fatal error: 'MagickWand/MagickWand.h' file not found
#  include <MagickWand/MagickWand.h>
           ^~~~~~~~~~~~~~~~~~~~~~~~~
--- imagickpixeliterator_class.lo ---
In file included from /usr/ports/graphics/pecl-imagick/work-php82/imagick-3.7.0/imagickpixeliterator_class.c:22:
./php_imagick_defs.h:25:12: fatal error: 'MagickWand/MagickWand.h' file not found
#  include <MagickWand/MagickWand.h>
           ^~~~~~~~~~~~~~~~~~~~~~~~~
--- imagick.lo ---
In file included from /usr/ports/graphics/pecl-imagick/work-php82/imagick-3.7.0/imagick.c:22:
./php_imagick_defs.h:25:12: fatal error: 'MagickWand/MagickWand.h' file not found
#  include <MagickWand/MagickWand.h>
           ^~~~~~~~~~~~~~~~~~~~~~~~~
--- imagickdraw_class.lo ---
In file included from /usr/ports/graphics/pecl-imagick/work-php82/imagick-3.7.0/imagickdraw_class.c:22:
./php_imagick_defs.h:25:12: fatal error: 'MagickWand/MagickWand.h' file not found
#  include <MagickWand/MagickWand.h>
           ^~~~~~~~~~~~~~~~~~~~~~~~~
--- imagick_file.lo ---
In file included from /usr/ports/graphics/pecl-imagick/work-php82/imagick-3.7.0/imagick_file.c:22:
In file included from ./php_imagick_file.h:24:
./php_imagick_defs.h:25:12: fatal error: 'MagickWand/MagickWand.h' file not found
#  include <MagickWand/MagickWand.h>
           ^~~~~~~~~~~~~~~~~~~~~~~~~
--- imagick_helpers.lo ---
In file included from /usr/ports/graphics/pecl-imagick/work-php82/imagick-3.7.0/imagick_helpers.c:22:
./php_imagick_defs.h:25:12: fatal error: 'MagickWand/MagickWand.h' file not found
#  include <MagickWand/MagickWand.h>
           ^~~~~~~~~~~~~~~~~~~~~~~~~
--- imagickkernel_class.lo ---
1 error generated.
*** [imagickkernel_class.lo] Error code 1

make[1]: stopped in /usr/ports/graphics/pecl-imagick/work-php82/imagick-3.7.0
--- imagickpixeliterator_class.lo ---
1 error generated.
--- imagick_file.lo ---
1 error generated.
--- imagickpixeliterator_class.lo ---
*** [imagickpixeliterator_class.lo] Error code 1

make[1]: stopped in /usr/ports/graphics/pecl-imagick/work-php82/imagick-3.7.0
--- imagick_file.lo ---
*** [imagick_file.lo] Error code 1

make[1]: stopped in /usr/ports/graphics/pecl-imagick/work-php82/imagick-3.7.0
--- shim_im6_to_im7.lo ---
In file included from /usr/ports/graphics/pecl-imagick/work-php82/imagick-3.7.0/shim_im6_to_im7.c:17:
./php_imagick_defs.h:25:12: fatal error: 'MagickWand/MagickWand.h' file not found
#  include <MagickWand/MagickWand.h>
           ^~~~~~~~~~~~~~~~~~~~~~~~~
--- imagick_helpers.lo ---
1 error generated.
*** [imagick_helpers.lo] Error code 1

make[1]: stopped in /usr/ports/graphics/pecl-imagick/work-php82/imagick-3.7.0
--- imagick_class.lo ---
In file included from /usr/ports/graphics/pecl-imagick/work-php82/imagick-3.7.0/imagick_class.c:22:
./php_imagick_defs.h:25:12: fatal error: 'MagickWand/MagickWand.h' file not found
#  include <MagickWand/MagickWand.h>
           ^~~~~~~~~~~~~~~~~~~~~~~~~
--- shim_im6_to_im7.lo ---
1 error generated.
--- imagickdraw_class.lo ---
1 error generated.
--- shim_im6_to_im7.lo ---
*** [shim_im6_to_im7.lo] Error code 1

make[1]: stopped in /usr/ports/graphics/pecl-imagick/work-php82/imagick-3.7.0
--- imagickdraw_class.lo ---
*** [imagickdraw_class.lo] Error code 1

make[1]: stopped in /usr/ports/graphics/pecl-imagick/work-php82/imagick-3.7.0
--- imagickpixel_class.lo ---
In file included from /usr/ports/graphics/pecl-imagick/work-php82/imagick-3.7.0/imagickpixel_class.c:22:
./php_imagick_defs.h:25:12: fatal error: 'MagickWand/MagickWand.h' file not found
#  include <MagickWand/MagickWand.h>
           ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
*** [imagickpixel_class.lo] Error code 1

make[1]: stopped in /usr/ports/graphics/pecl-imagick/work-php82/imagick-3.7.0
--- imagick.lo ---
1 error generated.
*** [imagick.lo] Error code 1

make[1]: stopped in /usr/ports/graphics/pecl-imagick/work-php82/imagick-3.7.0
--- imagick_class.lo ---
1 error generated.
*** [imagick_class.lo] Error code 1

make[1]: stopped in /usr/ports/graphics/pecl-imagick/work-php82/imagick-3.7.0
9 errors

make[1]: stopped in /usr/ports/graphics/pecl-imagick/work-php82/imagick-3.7.0
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/ports/graphics/pecl-imagick
[....]
Comment 1 Raúl 2024-01-16 07:38:40 UTC
Removing make.conf:

[....]
DEFAULT_VERSIONS+=     imagemagick=7-nox11
[....]

and using ImageMagick7-7.1.1.26 (without -nox1 and default options), doesn't improve it, still 'MagickWand/MagickWand.h' file not found.
Comment 2 Raúl 2024-01-16 10:15:34 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276360

Solves this PR.
Comment 3 Raúl 2024-01-16 10:17:01 UTC

*** This bug has been marked as a duplicate of bug 276360 ***