FS#38818 - [imagemagick] 6.8.8.4 - unable to execute binaries - libLLVM3.3.so not found

Attached to Project: Arch Linux
Opened by louis-guillaume gagnon (gagnonlg) - Thursday, 06 February 2014, 19:31 GMT
Last edited by Gerardo Exequiel Pozzi (djgera) - Friday, 07 February 2014, 02:11 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

when trying to use any of the imagemagick binaries, I get the following error:

$ convert
convert: error while loading shared libraries: libLLVM-3.3.so: cannot open shared object file: No such file or directory

ldd confirms that it is linked against libLLVM-3.3.so:

$ ldd $(which convert) | grep LLVM
libLLVM-3.3.so => not found

llvm-libs is not even listed as a builtime, runtime or optional dependency.

If I build the package locally using the relevent PKGBUILD (6.8.8.4-2), none of the binaries are linked against libLLVM-3.3.so (or libLLVM-3.4.so)
and the problem disappears.

Additional info:

* package version(s)
imagemagick 6.8.8.4-2
llvm-libs-3.4 is installed on my system


Steps to reproduce:
try to launch any of the imagemagick binaries
This task depends upon

Closed by  Gerardo Exequiel Pozzi (djgera)
Friday, 07 February 2014, 02:11 GMT
Reason for closing:  Not a bug
Comment by Eric Belanger (Snowman) - Thursday, 06 February 2014, 19:55 GMT
You should use 'readelf -d' instead of ldd for these kind of test. The convert binary and the imagemagick libraries don't link to libLLVM-3.3.so. The problem is with one of imagemagick dependency, maybe a custom package on your system.

$ readelf -d /usr/bin/convert

Dynamic section at offset 0xdf8 contains 27 entries:
Tag Type Name/Value
0x0000000000000001 (NEEDED) Shared library: [libMagickCore-6.Q16HDRI.so.2]
0x0000000000000001 (NEEDED) Shared library: [libMagickWand-6.Q16HDRI.so.2]
0x0000000000000001 (NEEDED) Shared library: [libpthread.so.0]
0x0000000000000001 (NEEDED) Shared library: [libc.so.6]


Comment by louis-guillaume gagnon (gagnonlg) - Thursday, 06 February 2014, 20:07 GMT
While investigating the dependencies, I found out I had 'mesa-libcl' installed instead of 'libcl'. Properly installing the 'libcl' package fixed the issue.

Thanks for the 'readelf' tip!

Loading...