Page 1 of 1

Solaris binary package update (tiff bug related)

Posted: 2009-09-03T01:14:35-07:00
by styno
Running the latest binary release from the website is causing some issues with the conversion to the tiff format.
As this might be fixed already in a later code revision is it possible to update the downloadable Solaris binary packages as well?

Many thanks in advance

Code: Select all

# /opt/app/ImageMagick/bin/convert -version
Version: ImageMagick 6.4.4 2008-10-15 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2008 ImageMagick Studio LLC
# /opt/app/ImageMagick/bin/identify test.jpg
test.jpg JPEG 3000x2156 3000x2156+0+0 8-bit DirectClass 938kb 2.770u 0:04
# /opt/app/ImageMagick/bin/convert test.jpg test.png
# /opt/app/ImageMagick/bin/convert test.jpg test.tiff
Bus Error (core dumped)

Re: Solaris binary package update (tiff bug related)

Posted: 2009-09-03T05:57:35-07:00
by magick
Unfortunately we do not have access to a Solaris host anymore. Instead try downloading from http://www.sunfreeware.com/.

Re: Solaris binary package update (tiff bug related)

Posted: 2009-09-03T06:43:50-07:00
by styno
magick wrote:Unfortunately we do not have access to a Solaris host anymore. Instead try downloading from http://www.sunfreeware.com/.
Apparently besides the huge amounts of dependancy installs, even the version provided at Sunfreeware seems not high enough.
I certainly prefer the one_tarball approach on your site. Any suggestions for the build environment so we can build (and share ofcourse!).

Re: Solaris binary package update (tiff bug related)

Posted: 2009-09-03T07:07:45-07:00
by magick
Download each dependency and move it to the top-level ImageMagick folder and rename it as the short version for the image format (e.g. tiff-3.8.2 becomes tiff). In the end you get:
  • ImageMagick-6.5.5/tiff
    ImageMagick-6.5.5/jpeg
    ImageMagick-6.5.5/png
etc. Now go into each delegate library folder and build statically:
  • cd tiff
    ./configure --disable-shared
    make
You may need to set the PIC compiler option (e.g. -fPIC or -KPIC).

Now build ImageMagick:
  • cd ImageMagick-6.5.5
    ./configure --enable-delegate-build
    make

Re: Solaris binary package update (tiff bug related)

Posted: 2009-09-09T04:03:52-07:00
by styno
I was finally able to setup a build environment on Sol10.
Is the following config close to the one in the current builds or do I need to hunt extra deps?
(ps. it seems that PIC is set automagically)

Code: Select all

ImageMagick is configured as follows. Please verify that this configuration
matches your expectations.

Host system type: sparc-sun-solaris2.10
Build system type: sparc-sun-solaris2.10

                  Option                        Value
-------------------------------------------------------------------------------
Shared libraries  --enable-shared=yes           yes
Static libraries  --enable-static=yes           yes
Module support    --with-modules=yes            yes
GNU ld            --with-gnu-ld=no              no
Quantum depth     --with-quantum-depth=16       16
High Dynamic Range Imagery
                  --enable-hdri=no              no

Delegate Configuration:
BZLIB             --with-bzlib=yes              yes
Autotrace         --with-autotrace=no           no
DJVU              --with-djvu=yes               no
DPS               --with-dps=yes                no
FFTW              --with-fftw=yes               no
FlashPIX          --with-fpx=yes                no
FontConfig        --with-fontconfig=no          no
FreeType          --with-freetype=yes           yes
GhostPCL          None                          pcl6 (unknown)
GhostXPS          None                          gxps (unknown)
Ghostscript       None                          gs (unknown)
Ghostscript fonts --with-gs-font-dir=default    none
Ghostscript lib   --with-gslib=no               no
Graphviz          --with-gvc=yes                no
JBIG              --with-jbig=yes               no
JPEG v1           --with-jpeg=yes               yes
JPEG-2000         --with-jp2=yes                no
LCMS              --with-lcms=yes               no
LQR               --with-lqr=yes                no
Magick++          --with-magick-plus-plus=yes   yes
OpenEXR           --with-openexr=yes            no
PERL              --with-perl=yes               /usr/bin/perl
PNG               --with-png=yes                yes
RSVG              --with-rsvg=no                no
TIFF              --with-tiff=yes               yes
Windows fonts     --with-windows-font-dir=      none
WMF               --with-wmf=yes                no
X11               --with-x=                     no
XML               --with-xml=no         no
ZLIB              --with-zlib=yes               yes

X11 Configuration:
      X_CFLAGS        =
      X_PRE_LIBS      =
      X_LIBS          =
      X_EXTRA_LIBS    =

Options used to compile and link:
  PREFIX          = /usr/local
  EXEC-PREFIX     = /usr/local
  VERSION         = 6.5.5
  CC              = gcc -std=gnu99
  CFLAGS          = -g -O2 -Wall -W -D_REENTRANT -pthreads
  MAGICK_CFLAGS   = -g -O2 -Wall -W -D_REENTRANT -pthreads
  CPPFLAGS        = -I/usr/local/include/ImageMagick
  PCFLAGS         =
  DEFS            = -DHAVE_CONFIG_H
  LDFLAGS         = -Wl,-zlazyload -L/root/buildenv/ImageMagick/ImageMagick-6.5.5-8/jpeg -L/root/buildenv/ImageMagick/ImageMagick-6.5.5-8/magick -L/root/buildenv/ImageMagick/ImageMagick-6.5.5-8/png -L/root/buildenv/ImageMagick/ImageMagick-6.5.5-8/tiff/libtiff/.libs -L/root/buildenv/ImageMagick/ImageMagick-6.5.5-8/tiff/libtiff -L/root/buildenv/ImageMagick/ImageMagick-6.5.5-8/wand -L/usr/sfw/lib -R/usr/sfw/lib -lfreetype
  MAGICK_LDFLAGS  = -L/usr/local/lib -Wl,-zlazyload -L/root/buildenv/ImageMagick/ImageMagick-6.5.5-8/jpeg -L/root/buildenv/ImageMagick/ImageMagick-6.5.5-8/magick -L/root/buildenv/ImageMagick/ImageMagick-6.5.5-8/png -L/root/buildenv/ImageMagick/ImageMagick-6.5.5-8/tiff/libtiff/.libs -L/root/buildenv/ImageMagick/ImageMagick-6.5.5-8/tiff/libtiff -L/root/buildenv/ImageMagick/ImageMagick-6.5.5-8/wand -L/usr/sfw/lib -R/usr/sfw/lib -lfreetype
  LIBS            = -lMagickCore -ltiff -lfreetype -ljpeg -lbz2 -lz -lm -lpthread
  CXX             = g++
  CXXFLAGS        = -g -O2 -Wall -W -D_REENTRANT -pthreads


Re: Solaris binary package update (tiff bug related)

Posted: 2009-09-09T04:47:02-07:00
by styno
Mhhh... no luck so far...

Code: Select all

root@dppuet2k01:/root/buildenv/ImageMagick/ImageMagick-6.5.5-8# make
/bin/bash ./config/mkinstalldirs . ltdl/
cp ./ltdl/argz_.h ltdl/argz.h-t
mv ltdl/argz.h-t ltdl/argz.h
make  all-am
  CC     coders/coders_art_la-art.lo
  CC     magick/magick_libMagickCore_la-animate.lo
  CC     magick/magick_libMagickCore_la-annotate.lo
  CC     magick/magick_libMagickCore_la-artifact.lo
  CC     magick/magick_libMagickCore_la-blob.lo
  CC     magick/magick_libMagickCore_la-cache.lo
  CC     magick/magick_libMagickCore_la-cache-view.lo
  CC     magick/magick_libMagickCore_la-cipher.lo
  CC     magick/magick_libMagickCore_la-client.lo
  CC     magick/magick_libMagickCore_la-coder.lo
  CC     magick/magick_libMagickCore_la-color.lo
  CC     magick/magick_libMagickCore_la-colorspace.lo
  CC     magick/magick_libMagickCore_la-compare.lo
  CC     magick/magick_libMagickCore_la-composite.lo
  CC     magick/magick_libMagickCore_la-compress.lo
  CC     magick/magick_libMagickCore_la-configure.lo
  CC     magick/magick_libMagickCore_la-constitute.lo
  CC     magick/magick_libMagickCore_la-decorate.lo
  CC     magick/magick_libMagickCore_la-delegate.lo
  CC     magick/magick_libMagickCore_la-deprecate.lo
magick/deprecate.c: In function `ExtractSubimageFromImage':
magick/deprecate.c:1706: error: incompatible types in assignment
*** Error code 1
The following command caused the error:
echo "  CC    " magick/magick_libMagickCore_la-deprecate.lo;/bin/bash ./libtool --silent --silent --tag=CC   --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I./config  -I./ltdl -I./ltdl  -I/usr/sfw/include/freetype2 -I/usr/sfw/include -I/root/buildenv/ImageMagick/ImageMagick-6.5.5-8/jpeg -I/root/buildenv/ImageMagick/ImageMagick-6.5.5-8/magick -I/root/buildenv/ImageMagick/ImageMagick-6.5.5-8/png -I/root/buildenv/ImageMagick/ImageMagick-6.5.5-8/tiff/libtiff -I/root/buildenv/ImageMagick/ImageMagick-6.5.5-8/wand  -g -O2 -Wall -W -D_REENTRANT -pthreads -MT magick/magick_libMagickCore_la-deprecate.lo -MD -MP -MF magick/.deps/magick_libMagickCore_la-deprecate.Tpo -c -o magick/magick_libMagickCore_la-deprecate.lo `test -f 'magick/deprecate.c' || echo './'`magick/deprecate.c
make: Fatal error: Command failed for target `magick/magick_libMagickCore_la-deprecate.lo'
Current working directory /root/buildenv/ImageMagick/ImageMagick-6.5.5-8
*** Error code 1
make: Fatal error: Command failed for target `all'
What am I missing? Any sugestions?

Re: Solaris binary package update (tiff bug related)

Posted: 2009-09-09T05:38:35-07:00
by magick
This is a well known bug in the Solaris 10 headers that presumably has been fixed in subsequent updates to Solaris 10 and the gcc compiler. Either upgrade your machine or simply change the line in deprecate.c to
  • similarity_threshold=image->columns*image->rows;

Re: Solaris binary package update (tiff bug related)

Posted: 2009-09-09T09:09:33-07:00
by jbrose
We are having trouble converting to gif after having recently installed the Solaris 10 binary. Could this be related to this thread?

Our error...

/smd/main/archive/gifs/2009-09//usr/local/imagemagick/binConverting to gif
/usr/local/imagemagick/bin/convert /export/home/smith/incoming/33857002_532.tif /smd/main/archive/gifs/2009-09//1043.gif
convert: no decode delegate for this image format `/export/home/smith/incoming/33857002_532.tif'.
convert: missing an image filename `/smd/main/archive/gifs/2009-09//1043.gif'.

Couple things...

We successfully generated the test image as directed in the binary install instructions.

When I attempt to look at our configuration it is blank, as in...

/usr/local/imagemagick/bin$ ./convert -list configure
/usr/local/imagemagick/bin$

Suggestions?

Thanks

Re: Solaris binary package update (tiff bug related)

Posted: 2009-09-09T10:13:34-07:00
by magick
Type
  • convert -list format
Is TIFF listed as a supported format (e.g. mode of rw+)? If not, rebuild ImageMagick and be sure to include support for TIFF. Next, type
  • convert -debug configure logo: null:
Look at the debugging output and ensure ImageMagick can find its configuration files.

Re: Solaris binary package update (tiff bug related)

Posted: 2009-09-11T06:16:11-07:00
by styno
one step / time

I am in the final make stage for the Sol. binaries when this pops up:

Code: Select all

....
log                                 0x2c54      /root/buildenv/ImageMagick/tiff/libtiff/.libs/libtiff.a(tif_pixarlog.o)
log                                 0x2c98      /root/buildenv/ImageMagick/tiff/libtiff/.libs/libtiff.a(tif_pixarlog.o)
log                                 0x2cdc      /root/buildenv/ImageMagick/tiff/libtiff/.libs/libtiff.a(tif_pixarlog.o)
log                                 0x2d20      /root/buildenv/ImageMagick/tiff/libtiff/.libs/libtiff.a(tif_pixarlog.o)
log                                 0x32dc      /root/buildenv/ImageMagick/tiff/libtiff/.libs/libtiff.a(tif_pixarlog.o)
atan2                               0x19f0      /root/buildenv/ImageMagick/tiff/libtiff/.libs/libtiff.a(tif_luv.o)
atan2                               0x1bc0      /root/buildenv/ImageMagick/tiff/libtiff/.libs/libtiff.a(tif_luv.o)
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
*** Error code 1
The following command caused the error:
echo "  CCLD  " magick/libMagickCore.la;/bin/bash ./libtool --silent --silent --tag=CC    --mode=link gcc -std=gnu99   -g -O2 -Wall -W -D_REENTRANT -pthreads -no-undefined -export-symbols-regex ".*"   -version-info  2:0:0  -Wl,-zlazyload -L/root/buildenv/ImageMagick/jpeg/.libs -L/root/buildenv/ImageMagick/jpeg -L/root/buildenv/ImageMagick/magick -L/root/buildenv/ImageMagick/png/.libs -L/root/buildenv/ImageMagick/png -L/root/buildenv/ImageMagick/tiff/libtiff/.libs -L/root/buildenv/ImageMagick/tiff/libtiff -L/root/buildenv/ImageMagick/wand -L/usr/openwin/lib -R/usr/openwin/lib -L/usr/sfw/lib -R/usr/sfw/lib -lfreetype -o magick/libMagickCore.la -rpath /usr/local/lib magick/magick_libMagickCore_la-animate.lo  magick/magick_libMagickCore_la-annotate.lo  magick/magick_libMagickCore_la-artifact.lo  magick/magick_libMagickCore_la-blob.lo  magick/magick_libMagickCore_la-cache.lo  magick/magick_libMagickCore_la-cache-view.lo  magick/magick_libMagickCore_la-cipher.lo  magick/magick_libMagickCore_la-client.lo  magick/magick_libMagickCore_la-coder.lo  magick/magick_libMagickCore_la-color.lo  magick/magick_libMagickCore_la-colorspace.lo  magick/magick_libMagickCore_la-compare.lo  magick/magick_libMagickCore_la-composite.lo  magick/magick_libMagickCore_la-compress.lo  magick/magick_libMagickCore_la-configure.lo  magick/magick_libMagickCore_la-constitute.lo  magick/magick_libMagickCore_la-decorate.lo  magick/magick_libMagickCore_la-delegate.lo  magick/magick_libMagickCore_la-deprecate.lo  magick/magick_libMagickCore_la-display.lo  magick/magick_libMagickCore_la-distort.lo  magick/magick_libMagickCore_la-draw.lo  magick/magick_libMagickCore_la-effect.lo  magick/magick_libMagickCore_la-enhance.lo  magick/magick_libMagickCore_la-exception.lo  magick/magick_libMagickCore_la-fourier.lo  magick/magick_libMagickCore_la-fx.lo  magick/magick_libMagickCore_la-gem.lo  magick/magick_libMagickCore_la-geometry.lo  magick/magick_libMagickCore_la-hashmap.lo  magick/magick_libMagickCore_la-histogram.lo  magick/magick_libMagickCore_la-identify.lo  magick/magick_libMagickCore_la-image.lo  magick/magick_libMagickCore_la-layer.lo  magick/magick_libMagickCore_la-list.lo  magick/magick_libMagickCore_la-locale.lo  magick/magick_libMagickCore_la-log.lo  magick/magick_libMagickCore_la-magic.lo  magick/magick_libMagickCore_la-magick.lo  magick/magick_libMagickCore_la-matrix.lo  magick/magick_libMagickCore_la-memory.lo  magick/magick_libMagickCore_la-mime.lo  magick/magick_libMagickCore_la-module.lo  magick/magick_libMagickCore_la-monitor.lo  magick/magick_libMagickCore_la-montage.lo  magick/magick_libMagickCore_la-option.lo  magick/magick_libMagickCore_la-paint.lo  magick/magick_libMagickCore_la-pixel.lo  magick/magick_libMagickCore_la-policy.lo  magick/magick_libMagickCore_la-PreRvIcccm.lo  magick/magick_libMagickCore_la-prepress.lo  magick/magick_libMagickCore_la-property.lo  magick/magick_libMagickCore_la-profile.lo  magick/magick_libMagickCore_la-quantize.lo  magick/magick_libMagickCore_la-quantum.lo  magick/magick_libMagickCore_la-quantum-export.lo  magick/magick_libMagickCore_la-quantum-import.lo  magick/magick_libMagickCore_la-random.lo  magick/magick_libMagickCore_la-registry.lo  magick/magick_libMagickCore_la-resample.lo  magick/magick_libMagickCore_la-resize.lo  magick/magick_libMagickCore_la-resource.lo  magick/magick_libMagickCore_la-segment.lo  magick/magick_libMagickCore_la-semaphore.lo  magick/magick_libMagickCore_la-shear.lo  magick/magick_libMagickCore_la-signature.lo  magick/magick_libMagickCore_la-splay-tree.lo  magick/magick_libMagickCore_la-static.lo  magick/magick_libMagickCore_la-statistic.lo  magick/magick_libMagickCore_la-stream.lo  magick/magick_libMagickCore_la-string.lo  magick/magick_libMagickCore_la-thread.lo  magick/magick_libMagickCore_la-timer.lo  magick/magick_libMagickCore_la-token.lo  magick/magick_libMagickCore_la-transform.lo  magick/magick_libMagickCore_la-threshold.lo  magick/magick_libMagickCore_la-type.lo  magick/magick_libMagickCore_la-utility.lo  magick/magick_libMagickCore_la-version.lo  magick/magick_libMagickCore_la-widget.lo  magick/magick_libMagickCore_la-xml-tree.lo  magick/magick_libMagickCore_la-xwindow.lo  -ltiff -lfreetype -ljpeg -lfontconfig -lXext -lSM -lICE -lX11 -lsocket -lnsl -lXt -lbz2 -lz -lm -lpthread ltdl/libltdlc.la
make: Fatal error: Command failed for target `magick/libMagickCore.la'
Current working directory /root/buildenv/ImageMagick
*** Error code 1
make: Fatal error: Command failed for target `all'

Re: Solaris binary package update (tiff bug related)

Posted: 2009-09-11T06:31:52-07:00
by magick
This problem is not related to ImageMagick but to your build environment. Did you build the TIFF library statically, the default is dynamic. That is, add --disable-shared to the TIFF configure script. Otherwise you may need to add -lm to your build environment. Log(), for example, is a math function.

Re: Solaris binary package update (tiff bug related)

Posted: 2009-09-11T08:33:14-07:00
by styno
Allright, it works!! (with warnings)

Code: Select all

wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-6.5.5-9.tar.gz
wget ftp://ftp.sunfreeware.com/pub/freeware/SOURCES/jpeg-6b.tar.gz
wget ftp://ftp.sunfreeware.com/pub/freeware/SOURCES/libpng-1.2.40.tar.gz
wget ftp://ftp.sunfreeware.com/pub/freeware/SOURCES/tiff-3.9.1.tar.gz

for i in ImageMagick-6.5.5-9.tar.gz jpeg-6b.tar.gz libpng-1.2.40.tar.gz tiff-3.9.1.tar.gz
do
gunzip $i
done

for i in ImageMagick-6.5.5-9.tar jpeg-6b.tar libpng-1.2.40.tar tiff-3.9.1.tar
do
tar -xvf $i
done

mv jpeg-6b ImageMagick-6.5.5-9/jpeg
mv libpng-1.2.40 ImageMagick-6.5.5-9/png
mv tiff-3.9.1 ImageMagick-6.5.5-9/tiff

Code: Select all

BUILDPATH=/root/buildenv

for i in tiff jpeg png
do
        cd $BUILDPATH/ImageMagick-6.5.5-9/$i
        ./configure --disable-shared -with-pic
        make
done

cd $BUILDPATH/ImageMagick-6.5.5-9
./configure --enable-delegate-build --disable-shared -with-pic --prefix=/opt/app/ImageMagick
make
make install
I have the full logs if you are interested. It's doing the above jpg->tiff conversions that failed in the older builds and it's working on Sun M5K and T5K systems with Solaris 10. We doing some more tests with the binaries as we speak.