problems with Charts and "Perl_sv_2iv_flags"

problems with Charts and "Perl_sv_2iv_flags"

am 08.03.2007 17:28:14 von patrick.mcguireBT

Hi everyone,

I am trying to use the perl Chart modules on linux. Chart::Pie, as a
first
example. One of my colleagues has installed the packages for me using
yum,
but i am having some problems at runtime.

/usr/bin/perl: symbol lookup error:
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/aut o/GD/
GD.so:
undefined symbol: Perl_sv_2iv_flags

when I run ldd on that I get:

[pmcguire@balloch ~]$ ldd
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/aut o/GD/GD.so
linux-gate.so.1 => (0x0021a000)
libXpm.so.4 => /usr/lib/libXpm.so.4 (0x00b39000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x00111000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x00c6d000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x0088f000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00bc0000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0x0021b000)
libz.so.1 => /usr/lib/libz.so.1 (0x00d1b000)
libm.so.6 => /lib/libm.so.6 (0x00f43000)
libgd.so.2 => /usr/lib/libgd.so.2 (0x00eeb000)
libc.so.6 => /lib/libc.so.6 (0x0098b000)
libXau.so.6 => /usr/lib/libXau.so.6 (0x00cf7000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00fc7000)
libdl.so.2 => /lib/libdl.so.2 (0x00de7000)
libexpat.so.0 => /lib/libexpat.so.0 (0x00b7b000)
/lib/ld-linux.so.2 (0x0036a000)

I am using perl 5.8.8

does anyone know how I should next go about trying to debug this? I
write a
lot of perl but rarely use CPAN modules, and have only installed them
on
Solaris in the past

thanks
patrick

Re: problems with Charts and "Perl_sv_2iv_flags"

am 10.03.2007 10:15:07 von Sisyphus

wrote in message
news:1173371294.760944.162400@c51g2000cwc.googlegroups.com.. .
> Hi everyone,
>
> I am trying to use the perl Chart modules on linux. Chart::Pie, as a
> first
> example. One of my colleagues has installed the packages for me using
> yum,
> but i am having some problems at runtime.
>

I found Chart-2.4.1 (which is only a little over a year old and therefore,
quite possibly, being actively maintained) on CPAN.

No problems with it at all - at least in so far as building and the test
suite are concerned. I note that it contains a Chart::Pie module.

I also found a separate distribution of Chart-Pie-0.90 that dates back to
last century, and is quite probably not being actively maintained. There are
problems with it - I get a fatal error relating to the object method "gif"
when running 'make test' (or more accurately, in my case, 'dmake test').

Which Chart::Pie module are you trying to use ? ... the one that ships with
the Chart module, or the antiquated one that ships as a separate distro ?

Which version of GD are you running ? I have 2.32.

Cheers,
Rob