You are not logged in.

#1 2009-01-04 11:27:31

u_no_hu
Member
Registered: 2008-06-15
Posts: 453

Imagemagick and heimdal version

mogrify: error while loading shared libraries: libhx509.so.3: cannot open shared object file: No such file or directory

Seems like imagemagick needs to be rebuild... or is it a problem with my system alone??


Don't be a HELP VAMPIRE. Please search before you ask.

Subscribe to The Arch Daily News.

Offline

#2 2009-01-04 11:34:08

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,390
Website

Re: Imagemagick and heimdal version

Is your system up to date?   imagemagick-6.4.8.2-1.

Offline

#3 2009-01-04 11:42:39

u_no_hu
Member
Registered: 2008-06-15
Posts: 453

Re: Imagemagick and heimdal version

Name           : imagemagick
Version        : 6.4.8.2-1

Name           : heimdal
Version        : 1.2.1-2

mogrify: error while loading shared libraries: libhx509.so.3: cannot open shared object file: No such file or directory

/usr/lib/libhx509.so.4 is owned by heimdal 1.2.1-2


Don't be a HELP VAMPIRE. Please search before you ask.

Subscribe to The Arch Daily News.

Offline

#4 2009-01-04 11:50:38

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,390
Website

Re: Imagemagick and heimdal version

Is this i686 or x86_64.  I have no problems on i686.

Offline

#5 2009-01-04 11:53:20

dolby
Member
From: 1992
Registered: 2006-08-08
Posts: 1,581

Re: Imagemagick and heimdal version

ImageMagick is out of date anyway, which happens quite often. And for some weird reason Snowman keeps updating it like once a week even though he doesnt really have to. Im curious what changes do the developers of the application do on a daily basis that would explain so frequent releases. smile

Last edited by dolby (2009-01-04 11:54:29)


There shouldn't be any reason to learn more editor types than emacs or vi -- mg (1)
[You learn that sarcasm does not often work well in international forums.  That is why we avoid it. -- ewaller (arch linux forum moderator)

Offline

#6 2009-01-04 12:10:14

u_no_hu
Member
Registered: 2008-06-15
Posts: 453

Re: Imagemagick and heimdal version

@Allan   i686


Don't be a HELP VAMPIRE. Please search before you ask.

Subscribe to The Arch Daily News.

Offline

#7 2009-02-14 21:58:52

juster
Forum Fellow
Registered: 2008-10-07
Posts: 195

Re: Imagemagick and heimdal version

I have the same problem, with (barely) newer package versions:

heimdal 1.2.1-3
imagemagick 6.4.9.2-1

I am using the i686 versions.

[justin@lapdawg pics]$ convert --version
convert: error while loading shared libraries: libhx509.so.3: cannot open shared object file: No such file or directory
[justin@lapdawg pics]$ ldd $(which convert) | grep libhx
    libhx509.so.3 => not found
    libhx509.so.3 => not found
    libhx509.so.4 => /usr/lib/libhx509.so.4 (0xb5d38000)
[justin@lapdawg pics]$ sudo ln -s /usr/lib/libhx509.so /usr/lib/libhx509.so.3
[justin@lapdawg pics]$ ldd $(which convert) | grep libhx
    libhx509.so.3 => /usr/lib/libhx509.so.3 (0xb64d1000)
[justin@lapdawg pics]$ convert --version
Version: ImageMagick 6.4.9-2 2009-02-08 Q16 OpenMP http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC

[justin@lapdawg pics]$

I fixed it above by making a new symlink, faking an old version of the library.  I'm sure this is a bad thing to do.  Then again I wonder why imagemagick needs encryption abilities (from heimdal)..?  I'm going to try compiling the imagemagick package myself later.

Seems strange that imagemagick finds the newer version but still wants the old version of the heimdal library..?

As a side note, imagemagick did not work with my old version of the openexr package.  I had version 1.4.1 I think, some libraries were missing like in this case.  I upgraded the openexr package and it works fine.  The PKGBUILD might want to require a version above 1.4.1 openexr at least.

Offline

#8 2009-02-14 22:11:34

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Imagemagick and heimdal version

Welcome to the forums.

This is what's happening on my end. Everything's working.

~ > pacman -Q heimdal imagemagick
heimdal 1.2.1-3
imagemagick 6.4.9.2-1

~ > convert --version
Version: ImageMagick 6.4.9-2 2009-02-07 Q16 OpenMP http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC

~ > ldd $(which convert) | grep libhx
    libhx509.so.4 => /usr/lib/libhx509.so.4 (0x00007ffcdfb20000)

Offline

#9 2009-02-14 22:21:15

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,390
Website

Re: Imagemagick and heimdal version

Symlinks to libraries are bad....  Make sure your system is fully up to date.  Then, if this is still an issue, run "lddd" from the devtools package and look in the raw output for libhx509.so.3 to find out what package needs rebuilt.  Try reinstalling that package and, if that does not help, file a bug report.

Offline

#10 2009-02-22 05:14:19

juster
Forum Fellow
Registered: 2008-10-07
Posts: 195

Re: Imagemagick and heimdal version

I'm sorry it's taken so long for my reply.  Thank you skottish and Allan for the welcome and your help.  In order to help anyone else who googles and finds this post (like I did) I wanted to mention I found the problem/solution.

The solution is to upgrade ghostscript to be >= 8.64.  The rest of the post is the convoluted story of how I found out...

The packager requires heimdal >= 1.2.1 in the PKGBUILD for imagemagick.  heimdal libraries are actually a requirement of ghostscript, not imagemagick.  However, the ghostscript package does not list heimdal as a requirement, as it should.  Perhaps this is the reason the imagemagick packager added heimdal in the first place?  Chaos ensues!

I did not realize the 'ldd' command lists the libraries needed for a binary, as well as the libraries needed by those libraries, and those libraries... etc.  I found the 'readelf' command (with the --dynamic flag) will list just the immediate dependencies of a program/library.  Then I made a perl script to call readelf and pacman to get a better view of the dependency "tree".

The dependency tree of the "broken" convert:

/usr/bin/convert (imagemagick)
|-- libMagickCore.so.2 (imagemagick)
|-- libMagickWand.so.2 (imagemagick)
|-- liblcms.so.1 (lcms)
|-- libtiff.so.3 (libtiff)
|-- libfreetype.so.6 (freetype2)
|-- libjasper.so.1 (jasper)
|-- libjpeg.so.62 (libjpeg)
|-- libgs.so.8 (ghostscript)
|   |-- libcupsimage.so.2 (libcups)
|   |-- libcups.so.2 (libcups)
|   |-- libgssapi.so.2 (heimdal)
|   |   |-- libhx509.so.4 (heimdal)
|   |   `-- libsqlite3.so.0 (sqlite3)
|   |-- libheimntlm.so.0 (heimdal)
|   |-- libkrb5.so.25 (heimdal)
|   |-- libhx509.so.3 (?) <---- THE CULPRIT
|   |-- libcom_err.so.2 (e2fsprogs)
|   |-- libcrypto.so.0.9.8 (openssl)
|   |-- libasn1.so.8 (heimdal)
|   |-- libwind.so.0 (heimdal)
|   |-- libroken.so.18 (heimdal)
|   |-- libgnutls.so.26 (gnutls)
|   |-- libtasn1.so.3 (libtasn1)
|   `-- libgcrypt.so.11 (libgcrypt)
|-- libpng12.so.0 (libpng)
|-- libfontconfig.so.1 (fontconfig)
|   `-- libexpat.so.1 (expat)
|-- libXext.so.6 (libxext)
|   `-- libXau.so.6 (libxau)
|-- libXt.so.6 (libxt)
|-- libIlmImf.so.6 (openexr)
|-- libImath.so.6 (ilmbase)
|-- libHalf.so.6 (ilmbase)
|-- libIex.so.6 (ilmbase)
|-- libIlmThread.so.6 (ilmbase)
|-- libcairo.so.2 (cairo)
|   |-- libxcb.so.1 (libxcb)
|   |   `-- libXdmcp.so.6 (libxdmcp)
|   `-- libXrender.so.1 (libxrender)
|-- libxml2.so.2 (libxml2)
|-- libltdl.so.7 (libtool)
|-- libSM.so.6 (libsm)
|   `-- libuuid.so.1 (e2fsprogs)
`-- libICE.so.6 (libice)

Hopefully the tree makes it easier to see ghostscript is the one trying to use libhx509.so.3, our no longer existing library file.  I will submit bug reports for ghostscript and imagemagick packages.

Offline

Board footer

Powered by FluxBB