#3 variable dp declared twice in gnuplot_module

closed
nobody
None
5
2005-05-31
2005-05-31
No

Upon changing the default compiler to gfortran, when I
compiled gnuplotfortran 0.2.2, I got the following error.

$make
gfortran -shared gnuplot_fortran95.f90 -o
libgnuplotfortran.so
In file gnuplot_fortran95.f90:197

use gnuplot_module_data,only :
gnuplot_ctrl,i4b,dp,lgc,dp,GP_CMD_SIZE,M

1
Error: Symbol 'dp' referenced at (1) not found in
module 'gnuplot_module_data'
make: *** [libgnuplotfortran.so] Error 1

This error is not reproducible with ifort (to my
knowledge). The cause and remedy for this error is
provided below.

In gnuplotfortran 0.2.2, in the file
gnuplot_fortran95.f90, in line 197 the variable dp is
declared twice. The actual line is

use gnuplot_module_data,only :
gnuplot_ctrl,i4b,dp,lgc,dp,GP_CMD_SIZE,MAXLENGTH,BAD_SIGNAL,&

But in fact it should be

use gnuplot_module_data,only :
gnuplot_ctrl,i4b,dp,lgc,GP_CMD_SIZE,MAXLENGTH,BAD_SIGNAL,&

The following patch fixes this problem.

$diff -c gnuplot_fortran95.f90 modified.f90 > patch.txt

patch.txt is attached in this mail. This patch can be
applied to by using

$patch gnuplot_fortran95.f90 < patch.txt

hope that helps
raju

Discussion

  • patch file which solves the above bug

     
    Attachments
    • status: open --> closed
     
  • Logged In: YES
    user_id=1026801

    Thanks for the quick response to the release. This bug has
    been fixed now.

    I will shortly be adding a man page in addition to the
    documentation already included.