Topic: [CentOS7] ImageMagick7-heic referencing undefined symbol

Hi,

we are currently facing the issue that the provided IM7 HEIC support module references an undefined symbol and therefor is not working as intended. We installed the respective packages via RPMFusion - as described in https://blog.remirepo.net/post/2019/05/ … es-support

$ /usr/bin/convert heic-test/example.heic heic-test/example.jpeg
/usr/bin/convert: symbol lookup error: /usr/lib64/ImageMagick-7.0.10/modules-Q16HDRI/coders/heic.so: undefined symbol: heif_image_handle_get_luma_bits_per_pixel

$ yum list installed | grep -e hei.
ImageMagick7-heic.x86_64             7.0.10.34-1.el7.remi            @remi
libheif.x86_64                       1.3.2-2.el7                     @rpmfusion-free-updates

The referenced symbol seems to be available in newer versions (>=1.4.0) only - introduced in upstream's commit e370112e (can't link due to number-of-links restriction). So the package provided in the repository seems to be build against a newer version than what is available via RPMFusion el7-free. Any advice on resolving this dependency?

- Dirk

Re: [CentOS7] ImageMagick7-heic referencing undefined symbol

Sadly, I cannot reproduce

# yum list ImageMagick7\*  libheif  libde265
Installed Packages
ImageMagick7.x86_64                                   7.0.10.34-1.el7.remi                               @remi                  
ImageMagick7-heic.x86_64                              7.0.10.34-1.el7.remi                               @remi-safe             
ImageMagick7-libs.x86_64                              7.0.10.34-1.el7.remi                               @remi-safe             
libde265.x86_64                                       1.0.2-6.el7                                        @rpmfusion-free-updates
libheif.x86_64                                        1.3.2-2.el7                                        @rpmfusion-free-updates

And

# convert --version
Version: ImageMagick 7.0.10-34 Q16 x86_64 2020-10-09 https://imagemagick.org
Copyright: © 1999-2020 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules OpenMP(3.1) 
Delegates (built-in): bzlib cairo djvu fftw fontconfig freetype gslib gvc heic jbig jng jp2 jpeg lcms ltdl lzma openexr pangocairo png ps raqm raw rsvg tiff webp wmf x xml zlib

With heic support properly reported

Desktop: Fedora 33 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 32 x86_64 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 6.10 x86_64 with EPEL, remi, remi-php72 and remi-php72-test

Re: [CentOS7] ImageMagick7-heic referencing undefined symbol

Sorry, indeed can reproduce

convert /tmp/Example2.heic /tmp/Ex.jpg
convert: symbol lookup error: /usr/lib64/ImageMagick-7.0.10/modules-Q16HDRI/coders/heic.so: undefined symbol: heif_image_handle_get_luma_bits_per_pixel
Desktop: Fedora 33 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 32 x86_64 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 6.10 x86_64 with EPEL, remi, remi-php72 and remi-php72-test

Re: [CentOS7] ImageMagick7-heic referencing undefined symbol

Reported as https://github.com/ImageMagick/ImageMagick/issues/2744

Desktop: Fedora 33 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 32 x86_64 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 6.10 x86_64 with EPEL, remi, remi-php72 and remi-php72-test

Re: [CentOS7] ImageMagick7-heic referencing undefined symbol

For memory; this issue affects version 6 and 7 since patch level 32

Upstream patch applied in new builds

* ImageMagick7-7.0.10.34-2.el7
* ImageMagick-6.9.11.34-2.el7


Thanks for the report.

Desktop: Fedora 33 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 32 x86_64 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 6.10 x86_64 with EPEL, remi, remi-php72 and remi-php72-test