Code: Select all
identify -version
Version: ImageMagick 7.0.4-5 Q16 x86_64 2017-01-25 http://www.imagemagick.org
Copyright: Copyright 1999-2017 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI
Delegates (built-in): bzlib png
But I can't build ImageMagick-7.0.4-6 and ImageMagick-7.0.4-7.
Is this a bug of ImageMagick?
Or what can I do about this?
Platform information
--------------------
Mac OS X 10.12.3 (16D32)
Darwin Kernel Version 16.4.0
CLTools_Executables Version: 8.2.0.0.1.1480973914
pkg-config Version 0.29.1
libpng Version 1.6.28
Configuration
--------------------
export LDFLAGS="-L/usr/local/libpng/lib/"
export CPPFLAGS="-I/usr/local/libpng/include"
export PKG_CONFIG_PATH="/usr/local/libpng/lib/pkgconfig/"
./configure --prefix=/usr/local/magick --with-png
Make Failure ending up with:
--------------------
coders/png.c:11228:11: warning: implicit declaration of function 'PNGsLong' is invalid in C99 [-Wimplicit-function-declaration]
PNGsLong(chunk+12,(png_int_32) image->page.x);
^
coders/png.c:541:23: warning: unused variable 'mng_exIf' [-Wunused-const-variable]
static const png_byte mng_exIf[5]={101, 120, 73, 102, (png_byte) '\0'};
^
2 warnings generated.
CC filters/MagickCore_libMagickCore_7_Q16HDRI_la-analyze.lo
CCLD MagickCore/libMagickCore-7.Q16HDRI.la
clang: warning: argument unused during compilation: '-pthread'
clang: warning: argument unused during compilation: '-pthread'
Undefined symbols for architecture x86_64:
"_PNGsLong", referenced from:
_WriteOnePNGImage in MagickCore_libMagickCore_7_Q16HDRI_la-png.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [MagickCore/libMagickCore-7.Q16HDRI.la] Error 1
make: *** [all] Error 2