Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 264186 - Image-Imlib2 (Image::Imlib2 perl module) fails to load libimlib2 shared library
Summary: Image-Imlib2 (Image::Imlib2 perl module) fails to load libimlib2 shared library
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 233354
  Show dependency tree
 
Reported: 2009-03-29 15:10 UTC by Karl Hakimian
Modified: 2009-03-29 19:35 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karl Hakimian 2009-03-29 15:10:26 UTC
The Image::Imlib2 perl module does not load the libimlib2.so... library so it fails when executing any program that uses it. This can be worked around by running the script with LD_PRELOAD variable set

LD_PRELOAD=/usr/lib64/libImlib2.so.1.4.2 perl test.pl

I've tried this on a couple of systems. Both x86_64 and i686.


Reproducible: Always

Steps to Reproduce:
1. perl test.pl # To run perl program using Image::Imlib2
Actual Results:  
/usr/bin/perl: symbol lookup error: /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux/auto/Image/Imlib2/Imlib2.so: undefined symbol: imlib_set_cache_size


Expected Results:  
Program loads without error.

If I make the perl module by hand, make test works fine. If I run make test from the portage work directory, it fails the same way as my app. By hand I do

perl Makefile.PL
./Build
make test

In the portage work directory, there is no Makefile after the compile step (I re-run perl Makefile.PL to create it), so I don't think the same steps were taken.
Comment 1 Torsten Veller (RETIRED) gentoo-dev 2009-03-29 19:35:31 UTC
It should work if you reinstall Image-Imlib2.
It was caused by setting extra_linker_flags in the eclass.

Thanks for the bug report.