ddd
[Top][All Lists]
Advanced

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

ddd-3.3.9-test2 on Tru64: success!


From: Tim Mooney
Subject: ddd-3.3.9-test2 on Tru64: success!
Date: Sat, 15 May 2004 15:06:11 -0500 (CDT)


With a tip from HP's Tom Woodburn in the comp.unix.tru64 newsgroup, I
discovered that ddd-3.3.9-test2, when configured with either

        -std strict_ansi -nopure_cname

or the options that Arnaud had previously arrived at:

        -std ansi -nousing_std -D__USE_STD_IOSTREAM

would configure and compile quite a few source files before bombing
at:

cxx -DHAVE_CONFIG_H -I. -I. -I.  -I./.. -I/local/include -I/local/gnu/include   
  -std strict_ansi -nopure_cname -msg_display_tag -readonly_strings    -c -o 
AgentM.o AgentM.C
cxx: Error: /usr/lib/cmplrs/cxx/V6.5-041/include/cxx/locimpl, line 328:
          namespace "std" has no member "string" (notmember)
  locale_vector<_RW_STD::string> names_;
-------------------------^
cxx: Error: /usr/lib/cmplrs/cxx/V6.5-041/include/cxx/locimpl, line 333:
          namespace "std" has no member "string" (notmember)
  _RW_STD::string big_name_;
-----------^
cxx: Error: /usr/lib/cmplrs/cxx/V6.5-041/include/cxx/locimpl, line 351:
          namespace "std" has no member "string" (notmember)
  static bool parse_name (locale_vector<_RW_STD::string>&,const char*);
-------------------------------------------------^


(additional errors deleted).  I discovered that

        AgentM.C
        Display.C
        Tool.C

all failed to compile with the exact same errors, but everything else
compiled with very few warnings (see below).

I started looking at AgentM.C and Delay.C, and the trail lead into
TypeInfo.h, where I found that the code

#if HAVE_TYPEINFO

#define string stdstring
#include <typeinfo>
#undef string


was causing the problem.  With the trivial patch after my sig, I'm able to
compile ddd using either of the settings for CXXFLAGS shown above.  I also
tested that patch on Solaris 8, IRIX 6.5.22m, and Red Hat Enterprise Linux
3, and it didn't cause any compilation problems on any of those platforms.
I'm at home and can't easily test whether the patch causes any execution
problems.


The entire compile turned up the following warnings:

cxx: Warning: ColorBox.C, line 42: extra ";" ignored (D:extrasemi)
DEFINE_TYPE_INFO_1(ColorBox, TransparentHatBox);
-----------------------------------------------^
cxx: Warning: ColorBox.C, line 43: extra ";" ignored (D:extrasemi)
DEFINE_TYPE_INFO_1(BackgroundColorBox, ColorBox);
------------------------------------------------^
cxx: Warning: ColorBox.C, line 44: extra ";" ignored (D:extrasemi)
DEFINE_TYPE_INFO_1(ForegroundColorBox, ColorBox);
------------------------------------------------^


cxx: Warning: ./vsl-gramma.Y, line 825: statement either is unreachable or
          causes unreachable code (D:codcauunr)
                                            VSLLib::parse_error(
--------------------------------------------^


cxx: Warning: ArcGraphE.C, line 50: extra ";" ignored (D:extrasemi)
DEFINE_TYPE_INFO_1(ArcGraphEdge, LineGraphEdge);
-----------------------------------------------^

cxx: Warning: AliasGE.C, line 38: extra ";" ignored (D:extrasemi)
DEFINE_TYPE_INFO_1(AliasGraphEdge, ArcGraphEdge);
------------------------------------------------^


cxx: Warning: GDBAgent.C, line 176: extra ";" ignored (D:extrasemi)
DEFINE_TYPE_INFO_1(GDBAgent, TTYAgent);
--------------------------------------^


Tim
--
Tim Mooney                              address@hidden
Information Technology Services         (701) 231-1076 (Voice)
Room 242-J6, IACC Building              (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164



--- ddd-3.3.9-test2.orig/ddd/TypeInfo.h 2003-12-05 06:02:06.000000000 -0600
+++ ddd-3.3.9-test2/ddd/TypeInfo.h      2004-05-15 03:35:28.000000000 -0500
@@ -37,9 +37,9 @@

 #if HAVE_TYPEINFO

-#define string stdstring
+// #define string stdstring
 #include <typeinfo>
-#undef string
+// #undef string

 // Public interface.  Defined according to: Stroustrup, the C++
 // Programming Language, 2nd Ed., Section 13.5




reply via email to

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