Ilya Zakharevich on Mon, 6 May 2002 20:00:46 -0400

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

Re: DYNAMIC_PLOTTING with gnuplot made easy

On Sat, May 04, 2002 at 02:11:08PM -0400, Ilya Zakharevich wrote:
> On Sat, May 04, 2002 at 05:21:09AM -0400, Ilya Zakharevich wrote:
> > This patch improves support of DYNAMIC_PLOTTING with gnuplot: now it 

Testing this on Solaris, I get

  ***   Can't load Gnuplot drawing engine from '/home/ilya/.cpan/build/Term-Gnuplot-0.5703/blib/arch/auto/Term/Gnuplot/': ./gp-sta: fatal: relocation error: file /home/ilya/.cpan/build/Term-Gnuplot-0.5703/blib/arch/auto/Term/Gnuplot/ symbol PL_markstack_ptr: referenced symbol not found.

even after adding

/* Satisfy DLL dependencies: dummy only */
#define EXTERM_DLL_DPES *PL_markstack_ptr, PL_stack_max, *PL_Sv, *PL_stack_sp, \
  *PL_tmps_floor, *PL_tmps_ix, *PL_markstack_max, *PL_stack_base, PL_na, *PL_sv\
_yes, *PL_sv_no
extern int EXTERM_DLL_DPES;

before the definition of get_term_ftable_get() in plotgnuplot.c.  It
looks like I'm using a correct executable; running nm on the mentioned
above ./gp-sta shows PL_markstack_ptr as defined...

I can't even understand why would dlopen() try to resolve the symbols
at load time with RTDL_LAZY explicitly specified...  nm can see

 000000000004f02c ? _init

in /home/ilya/.cpan/build/Term-Gnuplot-0.5703/blib/arch/auto/Term/Gnuplot/, but it is not there from any .o file...