Thanks for the helpful suggestions
syphilis. Here is a summary of the latest things I have tried, per your suggestions. I still haven't been able isolate the source of "ccflags".
I'm closer, thanks to you, but still no cigar. :-)
Update: I believe the basic question comes down to whether the gcc compiler in Strawberry Perl 5.24.1 is capable of compiling the code for Image::Magick, and if not, is there a viable alternative that does not involve upgrading to a more recent version of Perl? For now, I must remain at 5.24.1 for a number of reasons.
I did the "Clean and rerun install" -- got the following errors with gmake test:
---------------------------------------------------------------------------------------------
cd \Users\Owner\.cpan\build\Image-Magick-7.1.1-18
C:\Users\Owner\.cpan\build\Image-Magick-7.1.1-18>gmake realclean
C:\Users\Owner\.cpan\build\Image-Magick-7.1.1-18>perl Makefile.PL CC=g++
C:\Users\Owner\.cpan\build\Image-Magick-7.1.1-18>gmake test
C:\Users\Owner\.cpan\build\Image-Magick-7.1.1-18>gmake install
C:\Strawberry\cpan\build\Image-Magick-7.1.1-10> gmake test
{Running Mkbootstrap for Magick ()}
"C:\Strawberry\perl\bin\perl.exe" -MExtUtils::Command -e chmod -- 644
+"Magick.bs"
"C:\Strawberry\perl\bin\perl.exe" -MExtUtils::Command::MM -e cp_nonemp
+ty -- Magick.bs blib\arch\auto\Image\Magick\Magick.bs 644
"C:\Strawberry\perl\bin\perl.exe" "C:\Strawberry\perl\lib\ExtUtils\\xs
+ubpp" -typemap C:\strawberry\perl\lib\ExtUtils\typemap -typemap C:\S
+trawberry\cpan\build\Image-Magick-7.1.1-10\typemap Magick.xs > Magic
+k.xsc
"C:\Strawberry\perl\bin\perl.exe" -MExtUtils::Command -e mv -- Magick.
+xsc Magick.c
g++ -c -I"C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\include" -s -O2
+ -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLI
+CIT_CONTEXT -DPERL_IMPLICIT_SYS -fwrapv -fno-strict-aliasing -mms-bit
+fields -s -O2 -DVERSION=\"7.1.1\" -DXS_VERSION=\"7.1.1\"
"-IC:\strawberry\perl\lib\CORE" -D_LARGE_FILES=1 -DHAVE_CONFIG_H Magi
+ck.c
In file included from C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\incl
+ude/MagickCore/stream.h:25:0,
from C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\incl
+ude/MagickCore/blob.h:49,
from C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\incl
+ude/MagickCore/image.h:111,
from C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\incl
+ude/MagickCore/draw.h:22,
from C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\incl
+ude/MagickCore/annotate.h:21,
from C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\incl
+ude/MagickCore/MagickCore.h:80,
from Magick.xs:56:
C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\include/MagickCore/pixel.h
+:34:16: warning: scoped enums only available with -std=c++11 or -std=
+gnu++11
typedef enum : MagickOffsetType
^
"C:\Strawberry\perl\bin\perl.exe" -MExtUtils::Mksymlists \
-e "Mksymlists('NAME'=>\"Image::Magick\", 'DLBASE' => 'Magick', '
+DL_FUNCS' => { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS' =>
+[]);"
g++ Magick.def -o blib\arch\auto\Image\Magick\Magick.xs.dll -mdll -s -
+L"C:\strawberry\perl\lib\CORE" -L"C:\strawberry\c\lib" -L"C:/Strawber
+ry/cpan/build/Image-Magick-7.1.1-10" -L"C:\Program Files\ImageMagick-
+7.1.1-Q16-HDRI\lib" Magick.o "C:\strawberry\perl\lib\CORE
\libperl524.a" "libMagickCore.a" "C:\strawberry\c\x86_64-w64-mingw32\l
+ib\libmoldname.a" "C:\strawberry\c\x86_64-w64-mingw32\lib\libkernel32
+.a" "C:\strawberry\c\x86_64-w64-mingw32\lib\libuser32.a" "C:\strawber
+ry\c\x86_64-w64-mingw32\lib\libgdi32.a" "C:\strawberry\c\x86
_64-w64-mingw32\lib\libwinspool.a" "C:\strawberry\c\x86_64-w64-mingw32
+\lib\libcomdlg32.a" "C:\strawberry\c\x86_64-w64-mingw32\lib\libadvapi
+32.a" "C:\strawberry\c\x86_64-w64-mingw32\lib\libshell32.a" "C:\straw
+berry\c\x86_64-w64-mingw32\lib\libole32.a" "C:\strawberry\c\
x86_64-w64-mingw32\lib\liboleaut32.a" "C:\strawberry\c\x86_64-w64-ming
+w32\lib\libnetapi32.a" "C:\strawberry\c\x86_64-w64-mingw32\lib\libuui
+d.a" "C:\strawberry\c\x86_64-w64-mingw32\lib\libws2_32.a" "C:\strawbe
+rry\c\x86_64-w64-mingw32\lib\libmpr.a" "C:\strawberry\c\x86_
64-w64-mingw32\lib\libwinmm.a" "C:\strawberry\c\x86_64-w64-mingw32\lib
+\libversion.a" "C:\strawberry\c\x86_64-w64-mingw32\lib\libodbc32.a" "
+C:\strawberry\c\x86_64-w64-mingw32\lib\libodbccp32.a" "C:\strawberry\
+c\x86_64-w64-mingw32\lib\libcomctl32.a" -Wl,--enable-auto-im
age-base
"C:\Strawberry\perl\bin\perl.exe" -MExtUtils::Command -e chmod -- 755
+blib\arch\auto\Image\Magick\Magick.xs.dll
fileparse(): need a valid pathname at C:/Strawberry/perl/site/lib/ExtU
+tils/Install.pm line 1187.
makefile:1067: recipe for target 'pm_to_blib' failed
gmake: *** [pm_to_blib] Error 255
C:\Strawberry\cpan\build\Image-Magick-7.1.1-10> gmake install
fileparse(): need a valid pathname at C:/Strawberry/perl/site/lib/ExtU
+tils/Install.pm line 1187.
makefile:1067: recipe for target 'pm_to_blib' failed
gmake: *** [pm_to_blib] Error 255
I tried editing the following files and found this:
----------------------------------------------------------
C:\Strawberry\perl\lib\Config.pm -- No "ccflags" entries in this file.
C:\Strawberry\perl\lib\Config_heavy.pl -- I found: cc='$cc', ccflags ='$ccflags', but $ccflags is set somewhere else (this is the only reference).
I ran the following to display the contents of $Config{ccflags}:
----------------------------------------------------------------------------
perl -MConfig -e "print $Config{ccflags}
-s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fwrapv -fno-strict-aliasing -mms-bitfields
I fixed the missing "Generic.tiff" file:
---------------------------------------------
cd C:\Strawberry\cpan\build\Image-Magick-7.1.1-10
copy demo\Generic.ttf t\
"It's not how hard you work, it's how much you get done."