Page 1 of 1

cannot make old version of IM

Posted: 2012-04-13T14:26:02-07:00
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

Re: cannot make old version of IM

Posted: 2012-04-13T18:14:59-07:00
by glennrp
It appears to be depending on an older version of libz than you've got installed.

Re: cannot make old version of IM

Posted: 2012-04-13T18:21:06-07:00
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

Re: cannot make old version of IM

Posted: 2012-04-14T04:02:36-07:00
by glennrp
zlib == libz
It's used by PNG and some other codecs.

Re: cannot make old version of IM

Posted: 2012-04-15T19:44:48-07:00
by fmw42
I backed down my active version of zlib and the compiled and make worked fine for the old version. Thanks.

Re: cannot make old version of IM

Posted: 2012-05-18T12:28:57-07:00
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

Re: cannot make old version of IM

Posted: 2012-05-18T13:48:14-07:00
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.