PerlMagick fails at runtime in precise

Bug #897380 reported by Leo Iannacone
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
imagemagick (Debian)
Fix Released
Unknown
imagemagick (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Try to install perlmagick package and run following command:

$ perl -e 'use Image::Magick'

I get this error:

perl: symbol lookup error: /usr/lib/perl5/auto/Image/Magick/Magick.so: undefined symbol: MagickCoreGenesis

It seems that perlmagick has some wrong link... let's see the buildlog (1):
Snippet:

cc -L../magick/.libs -lMagickCore -shared -O2 -g -L/usr/local/lib -fstack-protector -Wl,-Bsymbolic-functions -Wl,-z,relro -L/usr/lib/X11 Magick.o -o blib/arch/auto/Image/Magick/Magick.so \
    -lperl -lm \

(1) - https://launchpadlibrarian.net/85356103/buildlog_ubuntu-precise-i386.imagemagick_8%3A6.6.9.7-5ubuntu1_BUILDING.txt.gz

Tags: precise
Revision history for this message
Leo Iannacone (l3on) wrote :

apt-cache policy perlmagick
perlmagick:
  Installed: 8:6.6.9.7-5ubuntu1
  Candidate: 8:6.6.9.7-5ubuntu1
  Version table:
 *** 8:6.6.9.7-5ubuntu1 0
        500 http://it.archive.ubuntu.com/ubuntu/ precise/main i386 Packages
        100 /var/lib/dpkg/status

tags: added: precise
description: updated
Leo Iannacone (l3on)
description: updated
Leo Iannacone (l3on)
Changed in imagemagick (Ubuntu):
assignee: nobody → Leo Iannacone (l3on)
status: New → Confirmed
Changed in imagemagick (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Leo Iannacone (l3on) wrote :

I don't understand...

I played with "PerlMagick/Makefile.PL.in" but LIBS seems not used.

Changed in imagemagick (Ubuntu):
assignee: Leo Iannacone (l3on) → nobody
Revision history for this message
Michael Terry (mterry) wrote :

I've got a fix for this. By the time MakeMaker is run, libMagickCore.so doesn't exist, so MakeMaker drops it from LIBS. By moving when MakeMaker is run until after the main library is built, we avoid this problem. Upload coming.

Revision history for this message
Michael Terry (mterry) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package imagemagick - 8:6.6.9.7-5ubuntu2

---------------
imagemagick (8:6.6.9.7-5ubuntu2) precise; urgency=low

  * debian/rules:
    - Build PerlMagick Makefile after building main library, so that
      MakeMaker can find the library instead of stripping it from the
      link line. LP: #897380
 -- Michael Terry <email address hidden> Tue, 29 Nov 2011 11:28:54 -0500

Changed in imagemagick (Ubuntu):
status: Confirmed → Fix Released
Changed in imagemagick (Debian):
status: Unknown → New
Changed in imagemagick (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.