Page 1 of 1

[SOLVED] Compile error on 7.0.1-0+

Posted: 2016-04-30T21:48:07-07:00
by kwash
I'm getting the following compile error when trying to compile version 7.0.1-0 in linux x86_64:

Code: Select all

CCLD     coders/svg.la
MagickCore/.libs/libMagickCore-7.Q32HDRI.so: undefined reference to `min'
collect2: error: ld returned 1 exit status
Makefile:6994: recipe for target 'utilities/magick' failed
make[1]: *** [utilities/magick] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/storage/linux/abs/imagemagick-full/src/ImageMagick-7.0.1-0'
Makefile:5142: recipe for target 'all' failed
make: *** [all] Error 2
The same error aslo happens when trying to compile using source from git repository. Tested with git version 7.0.1.1.r10808.gb2c1aa6.
Tried to disable 'make' multiple jobs and the error persists.
It was compiling perfectly until version 6.9.3-8.

Commands used:

Code: Select all

CPPFLAGS="-I/usr/include/FLIF" \
	./configure \
	        --prefix=/usr \
	        --sysconfdir=/etc \
	        --enable-static=no \
	        --enable-shared=yes \
	        --enable-fast-install=yes \
	        --enable-openmp \
	        --enable-opencl \
	        --enable-largefile \
	        --enable-cipher \
	        --enable-hdri \
	        --enable-hugepages \
	        --enable-docs \
	        --disable-delegate-build \
	        --with-threads \
	        --with-modules \
	        --with-quantum-depth=32 \
	        --with-magick-plus-plus \
	        --with-perl \
	        --with-perl-options="INSTALLDIRS=vendor" \
	        --with-jemalloc \
	        --with-umem \
	        --with-bzlib \
	        --with-x \
	        --with-zlib \
	        --with-autotrace \
	        --without-dps \
	        --with-fftw \
	        --with-flif \
	        --with-fpx \
	        --with-djvu \
	        --with-fontconfig \
	        --with-freetype \
	        --with-raqm \
	        --with-gslib \
	        --with-gvc \
	        --with-jbig \
	        --with-jpeg \
	        --with-lcms \
	        --with-openjp2 \
	        --with-lqr \
	        --with-lzma \
	        --with-openexr \
	        --with-pango \
	        --with-png \
	        --with-rsvg \
	        --with-tiff \
	        --with-webp \
	        --with-wmf \
	        --with-xml \
	        --with-dejavu-font-dir="/usr/share/fonts/TTF" \
	        --with-gs-font-dir="/usr/share/fonts/Type1" \
	        --with-windows-font-dir="/usr/share/fonts/WindowsFonts"
	        
	        make
Any help would be appreciated. Thank you.

Re: Compile error on 7.0.1-0+

Posted: 2016-05-01T01:33:00-07:00
by dlemstra
I just pushed a fix for this to our GIT repository. You can find the patch here: http://git.imagemagick.org/repos/ImageM ... e3978914e1. This will be fixed in the next release of ImageMagick 7.

Re: Compile error on 7.0.1-0+

Posted: 2016-05-01T08:50:50-07:00
by kwash
dlemstra wrote:I just pushed a fix for this to our GIT repository. You can find the patch here: http://git.imagemagick.org/repos/ImageM ... e3978914e1. This will be fixed in the next release of ImageMagick 7.
It works.
Thank you for the support!