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

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

GNU plotutils on RH8.0


From: Nikolai V. Tkachenko
Subject: GNU plotutils on RH8.0
Date: 18 Jan 2003 23:45:37 +0200

Dear Robert Maier,

I have just installed plotutils on my Red Hat 8.0 Linux box.
My compiler version is gcc-3.2-7, and it took me a while
to install it. So I'd like to report what I did to get it up.

In short, after "make", error massage:

c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/X11R6/include -I./../include
-DLIBPLOT -DLIBPLOTTER -O2 -c g_write.cc  -fPIC -DPIC -o
.libs/g_write.lo
In file included from /usr/include/c++/3.2/backward/iostream.h:31,
                 from ../include/plotter.h:61,
                 from extern.h:44,
                 from g_write.cc:5:
/usr/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning
This file includes at least one deprecated or antiquated header. Please
consider using one of the 32 headers found
in section 17.4.1.2 of the C++ standard. Examples include substituting
the <X> header for the
<X.h> header for C++ includes, or <sstream> instead of the deprecated
header <strstream.h>. To disable this warning use -Wno-deprecated.
g_write.cc: In function `void _write_bytes(const plPlotterData*, int,
const
   unsigned char*)':
g_write.cc:43: invalid conversion from `const unsigned char*' to `const
char*'
g_write.cc:43:   initializing argument 1 of `std::basic_ostream<_CharT,
   _Traits>& std::basic_ostream<_CharT, _Traits>::write(const _CharT*,
int)
   [with _CharT = char, _Traits = std::char_traits<char>]'
make[2]: *** [g_write.lo] Error 1

Corrections made for "deprecated or antiquated header" is:

in include/plotter.h, line 61
#include <backward/iostream.h>
// certainly, 
// #include <iostream>
// should be done, and "using std" to be added, but I am lazy :)
// actually there are many warnings of this type...

then in libplotter/g_write.cc, line 43
    data->outstream->write(reinterpret_cast<const char*>(c), n);

// I suppose type of stream should be changed somewhere before...
 
The rest of errors are about the same:
:c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/X11R6/include -I./../include
-DLIBPLOT -DLIBPLOTTER -O2 -c i_rle.cc  -fPIC -DPIC -o .libs/i_rle.lo
...
i_rle.cc: In function `void _write_block(rle_out*)':
i_rle.cc:81: invalid conversion from `unsigned char*' to `const char*'
i_rle.cc:81:   initializing argument 1 of `std::basic_ostream<_CharT,
_Traits>&
   std::basic_ostream<_CharT, _Traits>::write(const _CharT*, int) [with
_CharT
   = char, _Traits = std::char_traits<char>]'

changed to:
      rle->outstream->write (reinterpret_cast<const
char*>(&(rle->oblock[0])), rle->oblen);

error:
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/X11R6/include -I./../include
-DLIBPLOT -DLIBPLOTTER -O2 -c n_write.cc  -fPIC -DPIC -o
.libs/n_write.lo
...
n_write.cc: In member function `void PNMPlotter::_n_write_pbm()':
n_write.cc:211: invalid conversion from `unsigned char*' to `const
char*'
n_write.cc:211:   initializing argument 1 of `std::basic_ostream<_CharT,
   _Traits>& std::basic_ostream<_CharT, _Traits>::write(const _CharT*,
int)
   [with _CharT = char, _Traits = std::char_traits<char>]'
n_write.cc:256: invalid conversion from `unsigned char*' to `const
char*'
n_write.cc:256:   initializing argument 1 of `std::basic_ostream<_CharT,
   _Traits>& std::basic_ostream<_CharT, _Traits>::write(const _CharT*,
int)
   [with _CharT = char, _Traits = std::char_traits<char>]'
n_write.cc: In member function `void PNMPlotter::_n_write_pgm()':
n_write.cc:369: invalid conversion from `unsigned char*' to `const
char*'
n_write.cc:369:   initializing argument 1 of `std::basic_ostream<_CharT,
   _Traits>& std::basic_ostream<_CharT, _Traits>::write(const _CharT*,
int)
   [with _CharT = char, _Traits = std::char_traits<char>]'
n_write.cc:395: invalid conversion from `unsigned char*' to `const
char*'
n_write.cc:395:   initializing argument 1 of `std::basic_ostream<_CharT,
   _Traits>& std::basic_ostream<_CharT, _Traits>::write(const _CharT*,
int)
   [with _CharT = char, _Traits = std::char_traits<char>]'
n_write.cc: In member function `void PNMPlotter::_n_write_ppm()':
n_write.cc:517: invalid conversion from `unsigned char*' to `const
char*'
n_write.cc:517:   initializing argument 1 of `std::basic_ostream<_CharT,
   _Traits>& std::basic_ostream<_CharT, _Traits>::write(const _CharT*,
int)
   [with _CharT = char, _Traits = std::char_traits<char>]'
n_write.cc:545: invalid conversion from `unsigned char*' to `const
char*'
n_write.cc:545:   initializing argument 1 of `std::basic_ostream<_CharT,
   _Traits>& std::basic_ostream<_CharT, _Traits>::write(const _CharT*,
int)
   [with _CharT = char, _Traits = std::char_traits<char>]'

changed:
 reinterpret_cast<const char*>(...) added for the first arg of write()

Error:
z_write.cc: In function `void _our_write_fn(png_struct*, png_byte*,
unsigned
   int)':
z_write.cc:487: invalid conversion from `png_byte*' to `const char*'
z_write.cc:487:   initializing argument 1 of `std::basic_ostream<_CharT,
   _Traits>& std::basic_ostream<_CharT, _Traits>::write(const _CharT*,
int)
   [with _CharT = char, _Traits = std::char_traits<char>]'

changed:
  stream->write (reinterpret_cast<const char*>(data), length);



in "make check":

make check:
FAIL: spline.test
PASS: ode.test
PASS: graph.test
PASS: plot2plot.test
PASS: plot2hpgl.test
PASS: plot2pcl.test
PASS: plot2fig.test
PASS: plot2cgm.test
PASS: plot2ps.test
PASS: plot2svg.test
PASS: tek2plot.test
PASS: pic2plot.test
====================
1 of 12 tests failed
====================
make[2]: *** [check-TESTS] Error 1
make[2]: Leaving directory `/home/nick/updates/plotutils-2.4.1/test'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/home/nick/updates/plotutils-2.4.1/test'
make: *** [check-recursive] Error 1

However, after "make install" it works! Thanks for the package!

nick

=====================
Nikolai Tkachenko, PhD
Tampere University of Technology
Finland





reply via email to

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