cannot make old version of IM

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

cannot make old version of IM

Post by fmw42 »

Mac OSX Snow Leopard

I am trying to test a script before and after the change of RGB and sRGB, which took place at IM 6.7.5.5. I tried to install ImageMagick-6.7.4-10 which failed at the make with the following. (The same issue with ImageMagick-6.7.3-10)

Code: Select all

#	source='magick/blob.c' object='magick/magick_libMagickCore_la-blob.lo' libtool=yes 
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -std=gnu99 -std=gnu99 -DHAVE_CONFIG_H -I. -I./config  -I./ltdl -I./ltdl  -I/opt/local/include -I/Users/fred/Applications/ImageMagick-6.7.4-10/magick -I/Users/fred/Applications/ImageMagick-6.7.4-10/wand -I/opt/local/include/freetype2 -I/opt/local/include/libxml2  -I/opt/local/include/lqr-1 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -D_THREAD_SAFE -D_THREAD_SAFE -pthread -fopenmp -g -O2 -Wall -D_THREAD_SAFE -pthread -c -o magick/magick_libMagickCore_la-blob.lo `test -f 'magick/blob.c' || echo './'`magick/blob.c
libtool: compile:  gcc -std=gnu99 -std=gnu99 -DHAVE_CONFIG_H -I. -I./config -I./ltdl -I./ltdl -I/opt/local/include -I/Users/fred/Applications/ImageMagick-6.7.4-10/magick -I/Users/fred/Applications/ImageMagick-6.7.4-10/wand -I/opt/local/include/freetype2 -I/opt/local/include/libxml2 -I/opt/local/include/lqr-1 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -D_THREAD_SAFE -D_THREAD_SAFE -pthread -fopenmp -g -O2 -Wall -D_THREAD_SAFE -pthread -c magick/blob.c  -fno-common -DPIC -o magick/.libs/magick_libMagickCore_la-blob.o
magick/blob.c: In function 'CloseBlob':
magick/blob.c:508: warning: passing argument 1 of 'gzerror' from incompatible pointer type
magick/blob.c:549: warning: passing argument 1 of 'gzclose' from incompatible pointer type
magick/blob.c: In function 'ReadBlob':
magick/blob.c:2774: warning: passing argument 1 of 'gzread' from incompatible pointer type
magick/blob.c:2779: error: 'FILE' has no member named 'have'
magick/blob.c:2779: error: 'FILE' has no member named 'have'
magick/blob.c:2779: error: 'FILE' has no member named 'pos'
magick/blob.c:2779: warning: left-hand operand of comma expression has no effect
magick/blob.c:2779: error: 'FILE' has no member named 'next'
magick/blob.c:2779: warning: left-hand operand of comma expression has no effect
magick/blob.c:2779: warning: passing argument 1 of 'gzgetc_' from incompatible pointer type
magick/blob.c:2787: error: 'FILE' has no member named 'have'
magick/blob.c:2787: error: 'FILE' has no member named 'have'
magick/blob.c:2787: error: 'FILE' has no member named 'pos'
magick/blob.c:2787: warning: left-hand operand of comma expression has no effect
magick/blob.c:2787: error: 'FILE' has no member named 'next'
magick/blob.c:2787: warning: left-hand operand of comma expression has no effect
magick/blob.c:2787: warning: passing argument 1 of 'gzgetc_' from incompatible pointer type
magick/blob.c: In function 'SeekBlob':
magick/blob.c:3530: warning: passing argument 1 of 'gzseek' from incompatible pointer type
magick/blob.c: In function 'SyncBlob':
magick/blob.c:3794: warning: passing argument 1 of 'gzflush' from incompatible pointer type
magick/blob.c: In function 'TellBlob':
magick/blob.c:3868: warning: passing argument 1 of 'gztell' from incompatible pointer type
magick/blob.c: In function 'WriteBlob':
magick/blob.c:4018: warning: passing argument 1 of 'gzwrite' from incompatible pointer type
magick/blob.c:4023: warning: passing argument 1 of 'gzputc' from incompatible pointer type
magick/blob.c:4030: warning: passing argument 1 of 'gzputc' from incompatible pointer type
make[1]: *** [magick/magick_libMagickCore_la-blob.lo] Error 1
make: *** [all] Error 2
My configure file is:

./configure CPPFLAGS='-I/opt/local/include' LDFLAGS='-L/opt/local/lib' \
--enable-delegate-build --enable-shared --disable-static \
--with-modules --with-quantum-depth=16 --with-gslib --without-wmf \
--disable-silent-rules --disable-dependency-tracking \
--with-gs-font-dir=/opt/local/share/ghostscript/fonts/ --with-lqr


All my delegates are from MacPorts in /opt


The install works fine on the current release 6.7.6.5 Q16.


Can someone tell me what the problem is with installing these older versions of IM?

Thanks

Fred
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: cannot make old version of IM

Post by glennrp »

It appears to be depending on an older version of libz than you've got installed.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: cannot make old version of IM

Post by fmw42 »

glennrp wrote:It appears to be depending on an older version of libz than you've got installed.
Thanks Glenn,

What is libz used for?

Is it possible to compile --without libz

Fred

P.S. I just tried to compile and make --without-libz, but it still errors.

Also checking my delegates installed via Macports, I do not see any libz, only zlib or glib2
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: cannot make old version of IM

Post by glennrp »

zlib == libz
It's used by PNG and some other codecs.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: cannot make old version of IM

Post by fmw42 »

I backed down my active version of zlib and the compiled and make worked fine for the old version. Thanks.
boboche
Posts: 1
Joined: 2012-05-17T13:43:04-07:00
Authentication code: 13

Re: cannot make old version of IM

Post by boboche »

How did you back it down? I'm trying to do the same thing as the newest IM has geometry issues dealing with EPS
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: cannot make old version of IM

Post by fmw42 »

I was using MacPorts. So I just deactivate the new version and reactivate the older version I still had on my system. Then recompiled IM.
Post Reply