This queue is for tickets about the PerlMagick CPAN distribution.

Report information
The Basics
Id:
90030
Status:
open
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
davidgross18 [...] gmail.com
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
(no value)
Fixed in:
(no value)



Subject: Image::Magick Bug
Date: Sun, 3 Nov 2013 19:45:10 -0800
To: bug-PerlMagick@rt.cpan.org
From: David Gross <davidgross18@gmail.com>
Hello, It appears that a core file is missing in the Image::Magick Perl distribution. It will not compile on either OS X or Ubuntu. fatal error: magick/MagickCore.h: No such file or directory compilation terminated. Best, David Gross
On 2013-11-03 19:45:25, davidgross18@gmail.com wrote:
Show quoted text
> Hello, > > It appears that a core file is missing in the Image::Magick Perl > distribution. It will not compile on either OS X or Ubuntu. > > fatal error: magick/MagickCore.h: No such file or directory > compilation terminated. > > Best, > David Gross
It sounds like the Makefile.PL should be first checking for the presence of the required imagemagick libraries and headers, and bailing out (with a helpful error message) if they are missing. See https://metacpan.org/pod/Devel::CheckLib
debian jessie debian package libmagickcore-dev is installed perl 5.18.2 # locate MagickCore.h /usr/include/ImageMagick/magick/MagickCore.h ~/.cpanm/work/1409579148.14485/PerlMagick-6.89$ make cc -c -I/usr/local/include/ImageMagick-6 -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/libxml2 -I"/usr/include/ImageMagick-6" -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/freetype2 -g -O2 -Wall -pthread -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -O2 -DVERSION=\"6.89\" -DXS_VERSION=\"6.89\" -fPIC "-I/var/www/perl5/perlbrew/perls/perl-5.18.2/lib/5.18.2/x86_64-linux/CORE" -D_LARGE_FILES=1 -DHAVE_CONFIG_H Magick.c Magick.xs:60:31: fatal error: magick/MagickCore.h: No such file or directory compilation terminated. make: *** [Magick.o] Error 1 after manually running the 'cc' command and including the correct directory I get the following error msg: ~/.cpanm/work/1409579148.14485/PerlMagick-6.89$ cc -c -I/usr/include/ImageMagick -I/usr/local/include/ImageMagick-6 -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/libxml2 -I"/usr/include/ImageMagick-6" -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/freetype2 -g -O2 -Wall -pthread -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -O2 -DVERSION=\"6.89\" -DXS_VERSION=\"6.89\" -fPIC "-I/var/www/perl5/perlbrew/perls/perl-5.18.2/lib/5.18.2/x86_64-linux/CORE" -D_LARGE_FILES=1 -DHAVE_CONFIG_H Magick.c Magick.xs:545:33: error: ‘MagickPixelIntensityOptions’ undeclared here (not in a function) Magick.xs: In function ‘XS_Image__Magick_ComplexImages’: Magick.xs:3475:5: error: unknown type name ‘ComplexOperator’ Magick.xs:3510:8: error: ‘UndefinedComplexOperator’ undeclared (first use in this function) Magick.xs:3510:8: note: each undeclared identifier is reported only once for each function it appears in Magick.xs:3510:7: warning: assignment makes integer from pointer without a cast [enabled by default] Magick.xs:3516:31: error: ‘MagickComplexOptions’ undeclared (first use in this function) Magick.xs:3517:11: error: incompatible type for argument 1 of ‘ParseCommandOption’ In file included from /usr/include/ImageMagick/magick/MagickCore.h:115:0, from Magick.xs:60: /usr/include/ImageMagick/magick/option.h:166:3: note: expected ‘CommandOption’ but argument is of type ‘struct Methods *’ Magick.xs:3516:11: warning: assignment makes integer from pointer without a cast [enabled by default] Magick.xs:3524:13: error: ‘ComplexOperator’ undeclared (first use in this function) Magick.xs:3524:11: warning: assignment makes integer from pointer without a cast [enabled by default] Magick.xs:3524:30: error: expected ‘;’ before ‘in’ Magick.xs:3541:19: error: incompatible type for argument 1 of ‘ParseCommandOption’ In file included from /usr/include/ImageMagick/magick/MagickCore.h:115:0, from Magick.xs:60: /usr/include/ImageMagick/magick/option.h:166:3: note: expected ‘CommandOption’ but argument is of type ‘struct Methods *’ Magick.xs:3540:48: warning: pointer/integer type mismatch in conditional expression [enabled by default] Magick.xs:3540:19: warning: assignment makes integer from pointer without a cast [enabled by default] Magick.xs:3548:19: warning: assignment makes integer from pointer without a cast [enabled by default] Magick.xs:3548:38: error: expected ‘;’ before ‘in’ Magick.xs:3563:5: warning: implicit declaration of function ‘ComplexImages’ [-Wimplicit-function-declaration] Magick.xs:3563:10: warning: assignment makes pointer from integer without a cast [enabled by default] Magick.xs: In function ‘XS_Image__Magick_Mogrify’: Magick.xs:9175:11: warning: implicit declaration of function ‘SolarizeImageChannel’ [-Wimplicit-function-declaration] Magick.xs:9824:11: warning: implicit declaration of function ‘RotationalBlurImageChannel’ [-Wimplicit-function-declaration] Magick.xs:9824:16: warning: assignment makes pointer from integer without a cast [enabled by default] Magick.xs:10112:11: warning: implicit declaration of function ‘AutoOrientImage’ [-Wimplicit-function-declaration] Magick.xs:10112:16: warning: assignment makes pointer from integer without a cast [enabled by default] Magick.xs:10824:11: warning: implicit declaration of function ‘PerceptibleImageChannel’ [-Wimplicit-function-declaration] Magick.xs:10853:11: warning: implicit declaration of function ‘PolynomialImageChannel’ [-Wimplicit-function-declaration] Magick.xs:10853:16: warning: assignment makes pointer from integer without a cast [enabled by default] Magick.xs:10860:11: error: unknown type name ‘PixelIntensityMethod’ Magick.xs:10863:18: error: ‘UndefinedPixelIntensityMethod’ undeclared (first use in this function) Magick.xs:10863:17: warning: assignment makes integer from pointer without a cast [enabled by default] Magick.xs:10865:21: error: ‘PixelIntensityMethod’ undeclared (first use in this function) Magick.xs:10865:19: warning: assignment makes integer from pointer without a cast [enabled by default] Magick.xs:10865:43: error: expected ‘;’ before ‘argument_list’ Magick.xs:10866:11: warning: implicit declaration of function ‘GrayscaleImage’ [-Wimplicit-function-declaration] Magick.xs:10895:11: warning: implicit declaration of function ‘CannyEdgeImage’ [-Wimplicit-function-declaration] Magick.xs:10895:16: warning: assignment makes pointer from integer without a cast [enabled by default] Magick.xs:10916:11: warning: implicit declaration of function ‘HoughLineImage’ [-Wimplicit-function-declaration] Magick.xs:10916:16: warning: assignment makes pointer from integer without a cast [enabled by default] Magick.xs:10939:11: warning: implicit declaration of function ‘MeanShiftImage’ [-Wimplicit-function-declaration] Magick.xs:10939:16: warning: assignment makes pointer from integer without a cast [enabled by default]


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.