Menu

#4 IRIX 6.5 gcc-3.2 ddd-3.3.1

closed-fixed
nobody
None
5
2003-10-01
2002-08-23
Flash Fyre
No

make failed :

In file included from strclass.C:41:
strclass.h: In member function `string&
string::operator=(std::ostrstream&)':
strclass.h:1059: warning: unused variable `const int
frozen'
strclass.C: In function `std::istream&
operator>>(std::istream&, string&)':
strclass.C:1443: invalid conversion from `int' to
`std::_Ios_Iostate'
strclass.C:1443: initializing argument 1 of `void
std::basic_ios<_CharT,
_Traits>::clear(std::_Ios_Iostate) [with _CharT =
char, _Traits =
std::char_traits<char>]'
gmake[1]: *** [strclass.o] Error 1
gmake[1]: Leaving directory
`/disk2_mcb/gnu_irix/ddd-3.3.1/ddd'
gmake: *** [all-recursive] Error 1

Discussion

  • Nobody/Anonymous

    Logged In: NO

    I get *exactly* the same error under Linux 2.4.19 using gcc
    3.1.1! Is there a patch available?

     
  • Christopher Hogarty

    Logged In: YES
    user_id=657844

    I am also having this problem under Redhat. Exact same
    error, with the exact same specifications. Is there going to
    be any way of fixing or getting around this bug?

     
  • Nobody/Anonymous

    Logged In: NO

    From various posts that I Googled, it appears the problem
    lies with the way DDD configures itself in the presence of
    gcc-3.1.1 or 3.2. Uncommenting HAVE_IOSTATE and setting it
    to 1, as well as uncommenting HAVE_STREAMPOS and setting it
    to 1, did the trick for me. I still got some warnings in
    the graph drawing modules, but I was able to successfully
    compile and execute DDD 3.3.1 under gcc 3.1.1.

    Oh--I had to use -Wno-deprecated to rid myself of a whole
    bunch of header deprecation warnings.

     
  • Nobody/Anonymous

    Logged In: NO

    This "fix" works for Solaris 9/gcc-3.2 as well.

     
  • William Robinson

    Logged In: YES
    user_id=299304

    Hi, I've had the same problem. I'm using gcc 3.2.2

    You can quick-fix this by adding -DHAVE_IOSTATE to your the
    compile flags. This won't break anything else in the 3.3.1
    release. Also you'll almost certainly want to add
    -DHAVE_STREAMPOS to fix another gcc 3.2.2 compatibility
    problem.

    I made the change in ddd/Makefile after I ran configure, adding it
    to the CXXSTUFF variable, but it will probably work setting it
    before configure too, thus:

    CXXFLAGS="$CXXFLAGS -DHAVE_CONFIG \
    -DHAVE_STREAMPOS " ./configure
    make
    make install

    I tried to find the root of this problem, but I didn't try particularly
    hard.

    bill

     
  • Arnaud Desitter

    Arnaud Desitter - 2003-10-01
    • status: open --> closed
     
  • Arnaud Desitter

    Arnaud Desitter - 2003-10-01

    Logged In: YES
    user_id=566665

    Fix in ddd post 3.3.1.

     
  • Arnaud Desitter

    Arnaud Desitter - 2003-10-01
    • status: closed --> closed-fixed