undefined symbol: gdImageCreateFromGif
am 14.06.2007 19:00:03 von Francesco MoiHi.
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.