Fatal Error SUN IM 6.5.1

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.
Heiler81
Posts: 63
Joined: 2009-03-12T01:52:24-07:00
Authentication code: 8675309
Location: Germany, Stuttgart

Fatal Error SUN IM 6.5.1

Post by Heiler81 »

ld.so.1: ./tools/convert: fatal: relocation error: file /usr/local/lib/ImageMagick-6.5.1/modules-Q16/coders/png.so: symbol png_get_header_ver: referenced symbol not found

Killed

I load from sunfreeware.com the IM 6.5.1 and after i convert a EPS the following message is reportet. When i use the png.so from Verison 6.4.4 it works fine!

Is that a known Bug?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Fatal Error SUN IM 6.5.1

Post by magick »

Most likely ImageMagick 6.5.1 is compiled against a more modern version of the PNG delegate library. Your solution should work or install the latest release of the PNG library from sunfreeware.com.
Heiler81
Posts: 63
Joined: 2009-03-12T01:52:24-07:00
Authentication code: 8675309
Location: Germany, Stuttgart

Re: Fatal Error SUN IM 6.5.1

Post by Heiler81 »

I will try, THX
Heiler81
Posts: 63
Joined: 2009-03-12T01:52:24-07:00
Authentication code: 8675309
Location: Germany, Stuttgart

Re: Fatal Error SUN IM 6.5.1

Post by Heiler81 »

I Installed the lib again but there is still the problem. Could it be that all had to be installed as admin/root? I´ve seen that an older IM Version was installed before and the ld.so.1 is still in /usr/lib/
My ImageMagick is operationg in /usr/local/bin

Next problem is the identify with .tif runs wrong (core dumped)
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Fatal Error SUN IM 6.5.1

Post by magick »

We can only help if you post a stack trace. Its possible the problem is within the TIFF delegate library instead of ImageMagick. Post the stack trace here. Also post the output of
  • identify -version
    identify -list configure
For a basic sanity test, do these command work?
  • convert logo: logo.miff
    convert logo: logo.jpg
    convert logo: logo.png
    convert logo: logo.tif
    identify logo.*
Heiler81
Posts: 63
Joined: 2009-03-12T01:52:24-07:00
Authentication code: 8675309
Location: Germany, Stuttgart

Re: Fatal Error SUN IM 6.5.1

Post by Heiler81 »

root@sun1 # identify -version
Version: ImageMagick 6.5.1-0 2009-04-09 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC

root@sun1 # identify -list configure

Path: /usr/local/lib/ImageMagick-6.5.1/config/configure.xml

Name Value
-------------------------------------------------------------------------------
CC gcc -std=gnu99
CFLAGS -O2 -I/usr/local/rrdtool-1.2.19/include -Wall -W -D_REENTRANT -pthreads
CONFIGURE ./configure 'CC=gcc' 'CFLAGS=-O2 -I/usr/local/rrdtool-1.2.19/include' 'LDFLAGS=-L/usr/local/lib -R/usr/local/lib -R/usr/lib -L/usr/lib -L/usr/openwin/lib -R/usr/openwin/lib -L/usr/local/ssl/lib -R/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib -R/usr/local/BerkeleyDB.4.2/lib' 'LIBS=-liconv' 'CPPFLAGS=-DNDEBUG -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/include/ncurses -I/usr/openwin/include -I/usr/local/rrdtool-1.2.19/include' 'CXX=g++' 'CXXFLAGS=-fpermissive -felide-constructors'
COPYRIGHT Copyright (C) 1999-2009 ImageMagick Studio LLC
CPPFLAGS -I/usr/local/include/ImageMagick
CXX g++
CXXFLAGS -fpermissive -felide-constructors -Wall -W -D_REENTRANT -pthreads
DEFS -DHAVE_CONFIG_H
DELEGATES bzlib fontconfig freetype jpeg lcms png rsvg tiff x11 xml zlib
DISTCHECK_CONFIG_FLAGS 'CC=gcc' 'CFLAGS=-O2 -I/usr/local/rrdtool-1.2.19/include' 'CPPFLAGS=-DNDEBUG -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/include/ncurses -I/usr/openwin/include -I/usr/local/rrdtool-1.2.19/include' 'CXX=g++' 'LDFLAGS=-L/usr/local/lib -R/usr/local/lib -R/usr/lib -L/usr/lib -L/usr/openwin/lib -R/usr/openwin/lib -L/usr/local/ssl/lib -R/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib -R/usr/local/BerkeleyDB.4.2/lib' 'LIBS=-liconv' --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-gslib=no --with-fontpath=
EXEC-PREFIX /usr/local
HOST sparc-sun-solaris2.9
LDFLAGS -L/usr/local/lib -L/usr/local/lib -R/usr/local/lib -R/usr/lib -L/usr/lib -L/usr/openwin/lib -R/usr/openwin/lib -L/usr/local/ssl/lib -R/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib -R/usr/local/BerkeleyDB.4.2/lib -L/usr/local/lib -R/usr/local/lib -L/usr/local/lib -R/usr/local/lib -lfreetype -lz -L/usr/local/lib
LIB_VERSION 0x651
LIB_VERSION_NUMBER 6,5,1,0
LIBS -lMagickCore -llcms -ltiff -lfreetype -ljpeg -L/usr/local/lib -lfontconfig -lXext -lSM -lICE -lX11 -lsocket -lnsl -lXt -lbz2 -lz -lm -lpthread
NAME ImageMagick
PCFLAGS
PREFIX /usr/local
QuantumDepth 16
RELEASE_DATE 2009-04-09
VERSION 6.5.1
WEBSITE http://www.imagemagick.org


root@sun1 # convert logo: logo.miff
root@sun1 # convert logo: logo.jpg
root@sun1 # convert logo: logo.png
ld.so.1: convert: fatal: relocation error: file /usr/local/lib/ImageMagick-6.5.1/modules-Q16/coders/png.so: symbol png_get_header_ver: referenced symbol not found
Killed
root@sun1 # convert logo: logo.tif
root@sun1 # identify logo.*
logo.jpg JPEG 640x480 640x480+0+0 8-bit DirectClass 42.7kb
logo.miff[1] MIFF 640x480 640x480+0+0 8-bit Palette PseudoClass 256c 43.4kb
logo.tif[2] TIFF 640x480 640x480+0+0 8-bit PseudoClass 256c 44.2kb
Heiler81
Posts: 63
Joined: 2009-03-12T01:52:24-07:00
Authentication code: 8675309
Location: Germany, Stuttgart

Re: Fatal Error SUN IM 6.5.1

Post by Heiler81 »

my next step

root@sun1 # convert logo: logo.eps
root@sun1 # identify logo.*
ld.so.1: identify: fatal: relocation error: file /usr/local/lib/ImageMagick-6.5.1/modules-Q16/coders/png.so: symbol png_get_header_ver: referenced symbol not found
Killed
Heiler81
Posts: 63
Joined: 2009-03-12T01:52:24-07:00
Authentication code: 8675309
Location: Germany, Stuttgart

Re: Fatal Error SUN IM 6.5.1

Post by Heiler81 »

Installed and found Libs:

root@sun1 # ldd convert
libMagickCore.so.2 => /usr/local/lib/libMagickCore.so.2
libMagickWand.so.2 => /usr/local/lib/libMagickWand.so.2
liblcms.so.1 => /usr/local/lib/liblcms.so.1
libtiff.so.3 => /usr/local/lib/libtiff.so.3
libc.so.1 => /usr/lib/libc.so.1
libjpeg.so.62 => /usr/local/lib/libjpeg.so.62
libfontconfig.so.1 => /usr/local/lib/libfontconfig.so.1
libexpat.so.1 => /usr/local/lib/libexpat.so.1
libXext.so.0 => /usr/openwin/lib/libXext.so.0
libXt.so.4 => /usr/openwin/lib/libXt.so.4
libbz2.so => /usr/local/lib/libbz2.so
libpthread.so.1 => /usr/lib/libpthread.so.1
libfreetype.so.6 => /usr/local/lib/libfreetype.so.6
libz.so => /usr/local/lib/libz.so
libdl.so.1 => /usr/lib/libdl.so.1
libSM.so.6 => /usr/openwin/lib/libSM.so.6
libICE.so.6 => /usr/openwin/lib/libICE.so.6
libX11.so.4 => /usr/openwin/lib/libX11.so.4
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libm.so.2 => /usr/lib/libm.so.2
libiconv.so.2 => /usr/local/lib/libiconv.so.2
libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1
libexpat.so.0 => /usr/local/lib/libexpat.so.0
libmp.so.2 => /lib/libmp.so.2
libmd5.so.1 => /lib/libmd5.so.1
libscf.so.1 => /lib/libscf.so.1
libdoor.so.1 => /lib/libdoor.so.1
libuutil.so.1 => /lib/libuutil.so.1
/platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1
/platform/SUNW,Sun-Fire-V210/lib/libmd5_psr.so.1


Could there be a problem?
Heiler81
Posts: 63
Joined: 2009-03-12T01:52:24-07:00
Authentication code: 8675309
Location: Germany, Stuttgart

Re: Fatal Error SUN IM 6.5.1

Post by Heiler81 »

After i replaced the png.so, in /usr/local/lib/ImageMagick-6.5.1/modules-Q16/coders/ with that one of 6.4.4 it works much better but I still got the following messages:

With TIF

convert: test.tif: unknown field with tag 34841 (0x8819) encountered. `TIFFReadDirectory' @ tiff.c/TIFFWarnings/526.
convert: test.tif: unknown field with tag 34842 (0x881a) encountered. `TIFFReadDirectory' @ tiff.c/TIFFWarnings/526.

With EPS and embedded TIF

Warning: Missing required TIFF tag `XResolution'. Assuming a resolution of 72.0 dpi.
test.eps: No raster image found.
test.eps: conversion failed.

The System is a SUN with Solaris 10 and IM 6.5.1. Its a Scripted IM Server which was working with IM 6.2.3 an IM 6.4.4. Problems are after the Update with the files from www.sunfreeware.com
Heiler81
Posts: 63
Joined: 2009-03-12T01:52:24-07:00
Authentication code: 8675309
Location: Germany, Stuttgart

Re: Fatal Error SUN IM 6.5.1

Post by Heiler81 »

Nobody an Idea?

Tiff pack is new installed! (v.3.8.2)
Heiler81
Posts: 63
Joined: 2009-03-12T01:52:24-07:00
Authentication code: 8675309
Location: Germany, Stuttgart

Re: Fatal Error SUN IM 6.5.1

Post by Heiler81 »

Can´t handel the problem:

that are my tryings with convert:
starting:

convert -denstity 48 file.eps file.tif
convert file.tif file.bmp
convert -geometry 440x440 file.bmp file.png

that message arrived

ld.so.1: ./tools/convert: fatal: relocation error: file /usr/local/lib/ImageMagick-6.5.1/modules-Q16/coders/png.so: symbol png_get_header_ver: referenced symbol not found
Killed

when i replace the png.so with the on from IM 6.44 and start that process again often taht one arrives

convert: test.tif: unknown field with tag 34841 (0x8819) encountered. `TIFFReadDirectory' @ tiff.c/TIFFWarnings/526.
convert: test.tif: unknown field with tag 34842 (0x881a) encountered. `TIFFReadDirectory' @ tiff.c/TIFFWarnings/526.
Heiler81
Posts: 63
Joined: 2009-03-12T01:52:24-07:00
Authentication code: 8675309
Location: Germany, Stuttgart

Re: Fatal Error SUN IM 6.5.1

Post by Heiler81 »

I use the png and tif Libs from www.sunfreeware.com
Heiler81
Posts: 63
Joined: 2009-03-12T01:52:24-07:00
Authentication code: 8675309
Location: Germany, Stuttgart

Re: Fatal Error SUN IM 6.5.1

Post by Heiler81 »

test with png.c from Im 6.4.4 form www.imagemagick.org

convert test.eps test.tif
convert -geometry 440x440 test.tif test.png

convert: test.tif: unknown field with tag 34841 (0x8819) encountered. `TIFFReadDirectory'.
convert: test.tif: unknown field with tag 34842 (0x881a) encountered. `TIFFReadDirectory'.
Heiler81
Posts: 63
Joined: 2009-03-12T01:52:24-07:00
Authentication code: 8675309
Location: Germany, Stuttgart

Re: Fatal Error SUN IM 6.5.1

Post by Heiler81 »

When i try that one

convert test.tif test.jpg

Bus Error - core dumped
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Fatal Error SUN IM 6.5.1

Post by magick »

Without a stack trace we cannot help. We must determine if the failure comes from the TIFF delegate library or ImageMagick. You could try adding -debug all to your command line.
Post Reply