Karim BELABAS on Sun, 9 Jun 2002 21:39:59 +0200 (MEST)

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: DYNAMIC_PLOTTING with gnuplot made easy

On Mon, 13 May 2002, Ilya Zakharevich wrote:
> This patch adds Configure-support, as well as fixes a cosmetic bug
> (warning from Perl).


  I applied you series of gnuplot-related patches, specifically pari-dev
messages 1351, 1358, 1359, 1364, 1365, 1366 and tried

  perl -MCPAN -e "install Term::Gnuplot"
# failed when I was suid root [the X11 test failed, although DISPLAY was set
# correctly, and I had an "open" xhost setting], I had to do it manually
# (under my own id, all tests went fine except I didn't have the correct
# rights to install)
#   cd $HOME/.cpan/build/Term-Gnuplot-0.5703/ && make install
# Probably something broken on my machine. Anyway, it worked.

  Configure --graphic=gnuplot-dynamic
  make gp
# OK

But when I try to plot something in hi-res, I get

 ***   Can't load Gnuplot drawing engine from '/usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/Term/Gnuplot/Gnuplot.so': /usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/Term/Gnuplot/Gnuplot.so: undefined symbol: PL_stack_max.

which makes sense since BOTH_GNUPLOT_AND_X11 is not defined, hence the dummy
symbols from init.c are not included.


  Configure --graphic=builtin.X11-gnuplot-dynamic

I see -DBOTH_GNUPLOT_AND_X11 included in CFLAGS, but I now hit

 ***   Can't load Gnuplot drawing engine from '/usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/Term/Gnuplot/Gnuplot.so': /usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/Term/Gnuplot/Gnuplot.so: undefined symbol: PL_curpad.

which is not included in your dummy symbols. I added it, and now I miss PL_op.

And now it works !

So, what gives ? Did I miss a patch ? (everything is committed, you can get a
copy of my sources via cvs).


Karim Belabas                    Tel: (+33) (0)1 69 15 57 48
Dép. de Mathematiques, Bat. 425  Fax: (+33) (0)1 69 15 60 19
Université Paris-Sud             Email: Karim.Belabas@math.u-psud.fr
F-91405 Orsay (France)           http://www.math.u-psud.fr/~belabas
PARI/GP Home Page: http://www.parigp-home.de/