Title: Yet another Solaris+gcc3.2 problem

Solaris 8
GCC 3.2
htdig-3.1.6
used the patch for htdig-3.1.6

./configure
..skipping
checking for ostream... yes
checking for iostream... yes
checking for fstream.h... no
checking for fstream... yes

looks ok.

but the make is another story:

In file included from Configuration.cc:13:
htString.h:139: `ostream' was not declared in this scope
htString.h:139: `o' was not declared in this scope
htString.h:139: invalid data member initialization
htString.h:139: (use `=' to initialize static data members)
htString.h:139: variable or field `debug' declared void
htString.h:152: ISO C++ forbids declaration of `ostream' with no type
htString.h:152: `ostream' is neither function nor member function; cannot be
   declared friend
htString.h:152: parse error before `&' token
In file included from /usr/local/include/c++/3.2/backward/fstream.h:31,
                 from Configuration.cc:15:
/usr/local/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.

Also tried upond recommandation for Geoff Hutchison to modify the ./htlib/htString.h without any success.
#ifdef HAVE_OSTREAM_H
#include <ostream.h>
#endif
#ifdef HAVE_IOSTREAM_H
#include <iostream.h>
If anyone can gimme a hand on this one I would appreciate.
Thanks.
EricB.

Reply via email to