bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: plotutils-2.4.1


From: Robert S. Maier
Subject: Re: plotutils-2.4.1
Date: Tue, 13 Sep 2005 16:31:59 -0700 (MST)

Steve, the bug you've found in the compilation of the plotutils package
will be fixed in the next release (a bug fix release, to appear shortly).

C++ compilers are now more strict than they used to be.  That causes the
bug to reveal itself if `libplotter', the optional C++ class library, is
compiled.  I take it that's what you were doing.

At present, a workaround is to replace the offending line, 

    data->outstream->write(c, n);

which is line #43 in the file libplot/g_write.c, by

    data->outstream->write((char *)c, n);

Similar bugs in two other files, libplot/i_rle.c and libplot/n_write.c,
should be fixed too, in the same way.  In line #81 of libplot/i_rle.c, you
should change

      rle->outstream->write (&(rle->oblock[0]), rle->oblen);
to
      rle->outstream->write ((char *)&(rle->oblock[0]), rle->oblen);

Also, in the file libplot/n_write.c you should make the following changes
(old and fixed lines given, line numbers indicated):

211:    stream->write (linebuf, pos);
        stream->write ((char *)linebuf, pos);

256:    stream->write (rowbuf, bytecount);
        stream->write ((char *)rowbuf, bytecount);

369:    stream->write (linebuf, pos);
        stream->write ((char *)linebuf, pos);

395:    stream->write (linebuf, pos);
        stream->write ((char *)linebuf, pos);

517:    stream->write (linebuf, pos);
        stream->write ((char *)linebuf, pos);

545:    stream->write (rowbuf, 3 * width);
        stream->write ((char *)rowbuf, 3 * width);

If you have any further problems, please let me know.

--Rob

-- 
Robert S. Maier   | WWW:      http://www.math.arizona.edu/~rsm
Dept. of Math.    | Email:    address@hidden
Univ. of Arizona  | FAX:      +1 520 621 8322
Tucson, AZ  85721 | Voice:    +1 520 621 6892 (department)
U.S.A.            |           +1 520 621 2617 (office)

Maintainer of the GNU plotting utilities package
(see http://www.gnu.org/software/plotutils/plotutils.html ).




reply via email to

[Prev in Thread] Current Thread [Next in Thread]