Bug 11816 - perl-Graphics-Magick undefined symbol: InitializeMagick
Summary: perl-Graphics-Magick undefined symbol: InitializeMagick
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 4
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA3TOO has_procedure advisory MGA4-6...
Keywords: validated_update
Depends on:
Blocks:
 
Reported: 2013-11-29 12:38 CET by claire robinson
Modified: 2014-08-21 11:36 CEST (History)
7 users (show)

See Also:
Source RPM: graphicsmagick
CVE:
Status comment:


Attachments

Description claire robinson 2013-11-29 12:38:55 CET
Please see bug 11594 where this was discovered in mga3 and a previous update in mga2 where the issue was discovered and fixed bug 6561.


The perl module is not working in mga3.

$ perl test.pl
perl: symbol lookup error: /usr/lib/perl5/vendor_perl/5.16.3/x86_64-linux-thread-multi/auto/Graphics/Magick/Magick.so: undefined symbol: InitializeMagick

$ ldd /usr/lib/perl5/vendor_perl/5.16.3/x86_64-linux-thread-multi/auto/Graphics/Magick/Magick.so
        linux-vdso.so.1 (0x00007fffeb3fe000)
        libm.so.6 => /usr/lib64/libm.so.6 (0x00007f2557f95000)
        libpthread.so.0 => /usr/lib64/libpthread.so.0 (0x00007f2557d79000)
        libc.so.6 => /usr/lib64/libc.so.6 (0x00007f25579c5000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f25584c1000)


Reproducible: 

Steps to Reproduce:
claire robinson 2013-11-29 12:39:33 CET

CC: (none) => fundawang, luigiwalser

Comment 1 Thierry Vignaud 2013-11-30 11:15:51 CET
what does report the following command?
rpm -qa perl-Graphics-Magick 'lib*magick*'
(just to be sure you're using the updates_testing command)
I gues it's dlopen()ing the library

Keywords: (none) => NEEDINFO
CC: (none) => thierry.vignaud

Comment 2 claire robinson 2013-11-30 13:27:05 CET
$ perl test.pl 
perl: symbol lookup error: /usr/lib/perl5/vendor_perl/5.16.3/i386-linux-thread-multi/auto/Graphics/Magick/Magick.so: undefined symbol: InitializeMagick

$ rpm -qa perl-Graphics-Magick 'lib*magick*'
libmagick7-6.8.1.1-2.mga3
perl-Graphics-Magick-1.3.17-2.1.mga3
libgraphicsmagick3-1.3.17-2.1.mga3
libgraphicsmagickwand2-1.3.17-2.1.mga3

Keywords: NEEDINFO => (none)

Comment 3 David Walser 2013-11-30 16:48:39 CET
It'd be nice if it was just dlopen()ing the library, but when I build it locally, ldd shows Magick.so is actually linked to a bunch of libraries that are missing when built on the build system (including the library that contains the InitializeMagick symbol).
Comment 4 marco tux4ever 2013-12-19 16:15:52 CET
the bug remain on cauldron - time : mageia4 - beta2  : 19/12/2013

CC: (none) => onlylinux

Comment 5 claire robinson 2013-12-19 16:26:49 CET
Thanks for the report marco, changing version to cauldron and mga3too

Version: 3 => Cauldron
Whiteboard: (none) => MGA3TOO

Comment 6 Jani Välimaa 2014-08-17 18:46:07 CEST
Rediffed the linking patch for mga3 and mga4. New releases [1][2] in core/updates_testing should fix the issue.

[1] graphicsmagick-1.3.17-2.2.mga3
[2] graphicsmagick-1.3.18-3.1.mga4

Test procedure for perl module is described in wiki:
https://wiki.mageia.org/en/QA_procedure:GraphicsMagick

CC: (none) => jani.valimaa
Assignee: mageia => qa-bugs
Whiteboard: MGA3TOO => MGA3TOO MGA4TOO

Comment 7 David Walser 2014-08-17 18:54:51 CEST
Thanks Jani!

Advisory:
----------------------------------------

A linking issue in the Graphics::Magick has been fixed, making it functional
again.

----------------------------------------
Updated packages in core/updates_testing:
----------------------------------------
graphicsmagick-1.3.17-2.2.mga3
libgraphicsmagick3-1.3.17-2.2.mga3
libgraphicsmagickwand2-1.3.17-2.2.mga3
libgraphicsmagick-devel-1.3.17-2.2.mga3
perl-Graphics-Magick-1.3.17-2.2.mga3
graphicsmagick-doc-1.3.17-2.2.mga3
graphicsmagick-1.3.18-3.1.mga4
libgraphicsmagick3-1.3.18-3.1.mga4
libgraphicsmagickwand2-1.3.18-3.1.mga4
libgraphicsmagick-devel-1.3.18-3.1.mga4
perl-Graphics-Magick-1.3.18-3.1.mga4
graphicsmagick-doc-1.3.18-3.1.mga4

from SRPMS:
graphicsmagick-1.3.17-2.2.mga3.src.rpm
graphicsmagick-1.3.18-3.1.mga4.src.rpm

Version: Cauldron => 4
Whiteboard: MGA3TOO MGA4TOO => MGA3TOO has_procedure

David Walser 2014-08-18 13:44:09 CEST

Summary: perl-Graphics-Magick undefined symbol: InitializeMagick - previously fixed in mga2 => perl-Graphics-Magick undefined symbol: InitializeMagick

Comment 8 Rémi Verschelde 2014-08-19 19:42:44 CEST
Testing complete Mageia 4 64bit.

The update candidate fixes the issue described in comment 0, and the procedure linked in comment 6 succeeds for every use case.

CC: (none) => remi
Whiteboard: MGA3TOO has_procedure => MGA3TOO has_procedure MGA4-64-OK

Comment 9 claire robinson 2014-08-20 16:57:31 CEST
Thanks Jani

Testing complete mga3 32

Validating. Advisory uploaded.

Could sysadmin please push to 3 & 4 updates

Thanks

Keywords: (none) => validated_update
Whiteboard: MGA3TOO has_procedure MGA4-64-OK => MGA3TOO has_procedure advisory MGA4-64-OK mga3-32-ok
CC: (none) => sysadmin-bugs

Comment 10 Mageia Robot 2014-08-21 11:36:57 CEST
An update for this issue has been pushed to Mageia Updates repository.

http://advisories.mageia.org/MGAA-2014-0161.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.