Page 1 of 1

Compilation bug?

Posted: 2011-09-13T13:10:02-07:00
by oriku
I was trying to install the Image::Magick perl package and it said it couldn't find a .h file. I assumed this was because I was missing the dev package. I installed the libmagick++-dev package with apt-get and tried to install the package again, but received quite a few errors.

CPAN.pm: Going to build J/JC/JCRISTY/PerlMagick-6.72.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for Image::Magick
Writing MYMETA.yml and MYMETA.json
cp Magick.pm blib/lib/Image/Magick.pm
AutoSplitting blib/lib/Image/Magick.pm (blib/lib/auto/Image/Magick)
/usr/bin/perl /usr/local/share/perl/5.10.1/ExtUtils/xsubpp -typemap /usr/share/perl/5.10/ExtUtils/typemap -typemap typemap Magick.xs > Magick.xsc && mv Magick.xsc Magick.c
cc -c -I/usr/include/ImageMagick -I../ -I.. -I"/usr/include/ImageMagick" -I/usr/include/ImageMagick -fopenmp -fopenmp -g -O2 -Wall -pthread -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"6.72\" -DXS_VERSION=\"6.72\" -fPIC "-I/usr/lib/perl/5.10/CORE" -D_LARGE_FILES=1 -DHAVE_CONFIG_H Magick.c
Magick.xs:544:51: error: âMagickStatisticOptionsâ undeclared here (not in a function)
Magick.xs: In function âGetPackageInfoâ:
Magick.xs:983:3: warning: implicit declaration of function âFormatLocaleStringâ
Magick.xs: In function âSiPrefixToDoubleâ:
Magick.xs:1037:3: warning: implicit declaration of function âInterpretLocaleValueâ
Magick.xs: In function âSetAttributeâ:
Magick.xs:1092:11: warning: implicit declaration of function âParseCommandOptionâ
Magick.xs:1593:19: warning: implicit declaration of function âSetPixelIndexâ
Magick.xs:1839:17: warning: implicit declaration of function âSetPixelRedâ
Magick.xs:1840:17: warning: implicit declaration of function âSetPixelGreenâ
Magick.xs:1841:17: warning: implicit declaration of function âSetPixelBlueâ
Magick.xs:1842:17: warning: implicit declaration of function âSetPixelOpacityâ
Magick.xs: In function âXS_Image__Magick_Getâ:
Magick.xs:4436:15: warning: implicit declaration of function âCommandOptionToMnemonicâ
Magick.xs:4436:15: warning: passing argument 3 of âPerl_sv_setpvâ makes pointer from integer without a cast
/usr/lib/perl/5.10/CORE/proto.h:3367:20: note: expected âconst char *â but argument is of type âintâ
Magick.xs:4488:15: warning: passing argument 3 of âPerl_sv_setpvâ makes pointer from integer without a cast
/usr/lib/perl/5.10/CORE/proto.h:3367:20: note: expected âconst char *â but argument is of type âintâ
Magick.xs:4498:15: warning: passing argument 3 of âPerl_sv_setpvâ makes pointer from integer without a cast
/usr/lib/perl/5.10/CORE/proto.h:3367:20: note: expected âconst char *â but argument is of type âintâ
Magick.xs:4604:15: warning: passing argument 3 of âPerl_sv_setpvâ makes pointer from integer without a cast
/usr/lib/perl/5.10/CORE/proto.h:3367:20: note: expected âconst char *â but argument is of type âintâ
Magick.xs:4649:15: warning: passing argument 3 of âPerl_sv_setpvâ makes pointer from integer without a cast
/usr/lib/perl/5.10/CORE/proto.h:3367:20: note: expected âconst char *â but argument is of type âintâ
Magick.xs:4688:15: warning: passing argument 3 of âPerl_sv_setpvâ makes pointer from integer without a cast
/usr/lib/perl/5.10/CORE/proto.h:3367:20: note: expected âconst char *â but argument is of type âintâ
Magick.xs:4752:15: warning: passing argument 3 of âPerl_sv_setpvâ makes pointer from integer without a cast
/usr/lib/perl/5.10/CORE/proto.h:3367:20: note: expected âconst char *â but argument is of type âintâ
Magick.xs:4878:21: warning: implicit declaration of function âGetPixelIndexâ
Magick.xs:4912:15: warning: passing argument 3 of âPerl_sv_setpvâ makes pointer from integer without a cast
/usr/lib/perl/5.10/CORE/proto.h:3367:20: note: expected âconst char *â but argument is of type âintâ
Magick.xs:5066:15: warning: passing argument 3 of âPerl_sv_setpvâ makes pointer from integer without a cast
/usr/lib/perl/5.10/CORE/proto.h:3367:20: note: expected âconst char *â but argument is of type âintâ
Magick.xs:5140:19: warning: implicit declaration of function âGetPixelRedâ
Magick.xs:5140:19: warning: implicit declaration of function âGetPixelGreenâ
Magick.xs:5141:19: warning: implicit declaration of function âGetPixelBlueâ
Magick.xs:5141:19: warning: implicit declaration of function âGetPixelOpacityâ
Magick.xs:5162:15: warning: passing argument 3 of âPerl_sv_setpvâ makes pointer from integer without a cast
/usr/lib/perl/5.10/CORE/proto.h:3367:20: note: expected âconst char *â but argument is of type âintâ
Magick.xs:5201:15: warning: passing argument 3 of âPerl_sv_setpvâ makes pointer from integer without a cast
/usr/lib/perl/5.10/CORE/proto.h:3367:20: note: expected âconst char *â but argument is of type âintâ
Magick.xs:5349:15: warning: passing argument 3 of âPerl_sv_setpvâ makes pointer from integer without a cast
/usr/lib/perl/5.10/CORE/proto.h:3367:20: note: expected âconst char *â but argument is of type âintâ
Magick.xs:5418:15: warning: passing argument 3 of âPerl_sv_setpvâ makes pointer from integer without a cast
/usr/lib/perl/5.10/CORE/proto.h:3367:20: note: expected âconst char *â but argument is of type âintâ
Magick.xs: In function âXS_Image__Magick_Mogrifyâ:
Magick.xs:7501:53: error: âCommandOptionâ undeclared (first use in this function)
Magick.xs:7501:53: note: each undeclared identifier is reported only once for each function it appears in
Magick.xs:7501:68: error: expected â)â before âppâ
Magick.xs:7784:11: warning: implicit declaration of function âStatisticImageChannelâ
Magick.xs:7784:53: error: âMedianStatisticâ undeclared (first use in this function)
Magick.xs:7784:16: warning: assignment makes pointer from integer without a cast
Magick.xs:7816:53: error: âNonpeakStatisticâ undeclared (first use in this function)
Magick.xs:7816:16: warning: assignment makes pointer from integer without a cast
Magick.xs:8468:19: warning: passing argument 2 of âCloneStringâ makes pointer from integer without a cast
/usr/include/ImageMagick/magick/string_.h:44:4: note: expected âconst char *â but argument is of type âintâ
Magick.xs:8491:17: warning: passing argument 2 of âConcatenateStringâ makes pointer from integer without a cast
/usr/include/ImageMagick/magick/string_.h:66:3: note: expected âconst char *â but argument is of type âintâ
Magick.xs:10634:53: error: âModeStatisticâ undeclared (first use in this function)
Magick.xs:10634:16: warning: assignment makes pointer from integer without a cast
Magick.xs:10640:11: error: âStatisticTypeâ undeclared (first use in this function)
Magick.xs:10640:11: warning: statement with no effect
Magick.xs:10641:13: error: expected â;â before âstatisticâ
Magick.xs:10643:11: error: âstatisticâ undeclared (first use in this function)
Magick.xs:10643:21: error: âUndefinedStatisticâ undeclared (first use in this function)
Magick.xs:10643:11: warning: statement with no effect
Magick.xs:10658:13: warning: statement with no effect
Magick.xs:10658:39: error: expected â;â before âargument_listâ
Magick.xs:10659:16: warning: assignment makes pointer from integer without a cast
Magick.xs: In function âXS_Image__Magick_QueryFontâ:
Magick.xs:11880:9: warning: passing argument 2 of âPerl_newSVpvâ makes pointer from integer without a cast
/usr/lib/perl/5.10/CORE/proto.h:2210:19: note: expected âconst char *â but argument is of type âintâ
Magick.xs:11885:9: warning: passing argument 2 of âPerl_newSVpvâ makes pointer from integer without a cast
/usr/lib/perl/5.10/CORE/proto.h:2210:19: note: expected âconst char *â but argument is of type âintâ
Magick.xs: In function âXS_Image__Magick_QueryOptionâ:
Magick.xs:12838:7: warning: implicit declaration of function âGetCommandOptionsâ
Magick.xs:12838:34: error: âCommandOptionâ undeclared (first use in this function)
Magick.xs:12838:49: error: expected â)â before âoptionâ
Magick.xs:12838:14: warning: assignment makes pointer from integer without a cast
Magick.xs: In function âXS_Image__Magick_Smushâ:
Magick.xs:13570:5: warning: implicit declaration of function âSmushImagesâ
Magick.xs:13570:10: warning: assignment makes pointer from integer without a cast
make: *** [Magick.o] Error 1
JCRISTY/PerlMagick-6.72.tar.gz
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Failed during this command:
JCRISTY/PerlMagick-6.72.tar.gz : make NO

Re: Compilation bug?

Posted: 2011-09-13T16:29:58-07:00
by magick
See README.txt:
You must have ImageMagick 6.7.1 or above installed on your system for this module to work properly.

Re: Compilation bug?

Posted: 2011-09-14T09:42:34-07:00
by oriku
Is the latest from apt-get not 6.7.1 or above? That was the first thing I downloaded. I'm not talking about the dev package.