Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 168544 - perl module for ImageMagick(perlmagick) crashes with "undefined symbol: InitializeMagick"
Summary: perl module for ImageMagick(perlmagick) crashes with "undefined symbol: Initi...
Status: RESOLVED DUPLICATE of bug 155804
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
Depends on:
Reported: 2007-02-27 10:08 UTC by Pedroleouf
Modified: 2007-02-27 10:15 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---

my emerge --info if requiered (emerge--info_of_esa-dedi,3.41 KB, text/plain)
2007-02-27 10:15 UTC, Pedroleouf

Note You need to log in before you can comment on or make changes to this bug.
Description Pedroleouf 2007-02-27 10:08:10 UTC
+++ This bug was initially created as a clone of Bug #93078 (I was not abble to reopen it) +++

When using the perl module included with ImageMagick(perlmagick), it crashes with:
perl: symbol lookup error:
undefined symbol: InitializeMagick

I attempted to compile the package by hand:
Step 1: untar ImageMagick-6.2.2-3.tar.bz2 from distfiles
Step 2: default ./configure only adding CFLAGS="-O3 -march=k8
-fomit-frame-pointer -pipe"
Step 3: compile
Step 4: enter in the PerlMagick subdirectory
Step 5: examine the Makefile.PL per the Readme.txt, which says to change the
LIBS value in Makefile.PL by hand
Step 6: delete some weird looking lib entries from LIBS (--rpath and -Wl,)
LIBS before: 'LIBS'      => ['-L/usr/local/lib -lMagick -L/usr/lib64
-L/usr/lib64 -Wl,--rpath -Wl,/usr/lib64 -lfreetype -lz -L/usr/lib -ltiff -lfree
type -ljpeg -lpng -ldpstk -ldps -lXext -lXt -lSM -lICE -lX11 -lbz2 -lxml2 -lz
-lpthread -lm -lpthread'],
LIBS after: 'LIBS'       => ['-L/usr/local/lib -lMagick -L/usr/lib64
-L/usr/lib64  -lfreetype -lz -L/usr/lib -ltiff -lfreetype -ljpeg -lpng -ldpstk
-ldps -lXext -lXt -lSM -lICE -lX11 -lbz2 -lxml2 -lz -lpthread -lm -lpthread'],

Step 7: perl Makefile.PL
Step 8: make
Step 9: make test(fails a bunch because it wants gs(ghostscript) which i don't have
Step 10: make install (notice it installs by default to
/usr/lib/perl5/site_perl/5.8.5/x86_64-linux/auto/Image/Magick/ instead
of  /usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux/auto/Image/Magick/ 
Step 11: rename the broken
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux/auto/Image/Magick/ to get
it out of the way
Step 12: Success. Module works perfectly

Reproducible: Always
Steps to Reproduce:
1. Install ImageMagick with perl USE flag
2. add line "use Image::Magick" to any perl script

Actual Results:  
execution aborted with:
perl: symbol lookup error:
undefined symbol: InitializeMagick

Expected Results:  
No error


Sorry, but the bug come back with version
I tried to recompile all perl and it's dependencies (emerge libperl perl && perl-cleanner reallyall) and then recompile imagemagick with no success:

/usr/bin/perl: symbol lookup error: /usr/lib/perl5/site_perl/5.8.8/i686-linux-thread-multi/auto/Image/Magick/ undefined symbol: InitializeMagick
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-02-27 10:12:18 UTC

*** This bug has been marked as a duplicate of bug 155804 ***
Comment 2 Pedroleouf 2007-02-27 10:15:11 UTC
Created attachment 111391 [details]
my emerge --info if requiered