Click here to get back home

undefined symbol: gdImageCreateFromGif

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
undefined symbol: gdImageCreateFromGif Francesco Moi 06-14-2007
Posted by Francesco Moi on June 14, 2007, 1:00 pm
Please log in for more thread options


Hi.

Trying to install GD Perl interfaz (by Lincoln D. Stein) on Linux.

I installed libgd on '/usr/local/gd'. I think it's well installed:

[]# /usr/local/gd/bin/gdlib-config --features
GD_JPEG GD_FREETYPE GD_PNG GD_GIF GD_GIFANIM GD_OPENPOLYGON

[]# /usr/local/gd/bin/gdlib-config --version
2.0.34

I donwloaded the very last version of GD-Perl (v2.35) from 'http://
search.cpan.org/dist/GD/' and tried to install it:

[]# perl Makefile.PL
Where is libgd installed? [/usr/local/gd]
Build JPEG support? [y]
Build PNG support? [y]
Build FreeType support? [y]
Build GIF support? [y]
Build support for animated GIFs? [y] n
Build XPM support? [y] n

[]# make
it looks fine

[]# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/GD..........Can't load './blib/arch/auto/GD/GD.so' for module GD: ./
blib/arch/auto/GD/GD.so: undefined symbol: gdFontGetGiant at /usr/lib/
perl5/5.8.3/i386-linux-thread-multi/DynaLoader.pm line 229.
at t/GD.t line 14
Compilation failed in require at t/GD.t line 14.
BEGIN failed--compilation aborted at t/GD.t line 14.
t/GD..........dubious
Test returned status 255 (wstat 65280, 0xff00)
Scalar found where operator expected at (eval 153) line 1, near
"'int' $__val"
(Missing operator before $__val?)
DIED. FAILED tests 1-12
Failed 12/12 tests, 0.00% okay
t/Polyline....Can't load '/root/install/GD-2.35/blib/arch/auto/GD/
GD.so' for module GD: /root/install/GD-2.35/blib/arch/auto/GD/GD.so:
undefined symbol: gdFontGetGiant at /usr/lib/perl5/5.8.3/i386-linux-
thread-multi/DynaLoader.pm line 229.
at /root/install/GD-2.35/blib/lib/GD/Polyline.pm line 45
Compilation failed in require at /root/install/GD-2.35/blib/lib/GD/
Polyline.pm line 45.
BEGIN failed--compilation aborted at /root/install/GD-2.35/blib/lib/GD/
Polyline.pm line 45.
Compilation failed in require at t/Polyline.t line 10.
BEGIN failed--compilation aborted at t/Polyline.t line 10.
t/Polyline....dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED test 1
Failed 1/1 tests, 0.00% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/GD.t 255 65280 12 23 191.67% 1-12
t/Polyline.t 255 65280 1 2 200.00% 1
Failed 2/2 test scripts, 0.00% okay. 13/13 subtests failed, 0.00%
okay.
make: *** [test_dynamic] Error 255

[]# make install
Files found in blib/arch: installing files in blib/lib into
architecture dependent library tree
Installing /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/GD/
Image.pm
Writing /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/auto/
GD/.packlist
Appending installation info to /usr/lib/perl5/5.8.3/i386-linux-thread-
multi/perllocal.pod





I'm trying to execute this very simple code:
-------
#!/usr/bin/perl

use GD;^M
$srcimage = GD::Image->newFromGif("mountain.gif");
----------

and got this error code:
------------
/usr/bin/perl: error while loading shared libraries: /usr/lib/perl5/
site_perl/5.8.3/i386-linux-thread-multi/auto/GD/GD.so: undefined
symbol: gdImageCreateFromGif
-------------

Any suggestion? Thank you very much.


Similar ThreadsPosted
GD-1.38: Undefined symbol: .__fixsfsi July 12, 2004, 10:43 am
[RESOLVED] DBD::mysql unresolved symbol _intel_fast_memcpy & mysql-standard-5.0.22-linux-i686-icc-glibc23 August 29, 2006, 6:33 pm
"Undefined subroutine" November 21, 2004, 8:48 pm
Getting "undefined sysmbol February 8, 2005, 8:12 am
HTTP::Response decoded_content is undefined March 28, 2007, 8:04 am
LibXML "Undefined namespace prefix" July 2, 2007, 5:42 pm
Can't call method on an undefined value at June 27, 2005, 2:56 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap