MacPorts ddd-3.3.12_2 build failure

Roger Davis <[email protected]> Thu, 13 Mar 2014 13:27:53 -1000 (HST)
Newsgroups gmane.comp.debugging.ddd.general
Message-ID <[email protected]>
Hi all,

I just upgraded to MacOS 10.9.2 Mavericks and XCode 5.1 and can no longer 
build and install the MacPorts ddd package. I have reported this as a bug 
in the MacPorts bug tracker (ticket #42800), but was told to also report 
it to whoever is supplying the ddd package to MacPorts, which is hopefully 
someone who reads this list.

My development environment is kneecapped without ddd, so any suggestions 
as to how I can get a working ddd reinstalled (without reverting my 
MacOS/Xcode to an earlier release!) would be appreciated.

This appears to be a simple compilation problem, probably triggered by the 
new Xcode 5.1 which just came out. MacOS seems relatively prickly in 
comparison with other platforms with regard to elevating apparently 
harmless compiler warnings to actual errors with each new release. Here's 
the problem:

  /usr/bin/clang++ -DHAVE_CONFIG_H -I.  -I./..  -I/opt/local/include  -Os
  -Wall -W -Wwrite-strings -pipe -arch x86_64 -trigraphs  -MT cwd.o -MD -MP
  -MF .deps/cwd.Tpo -c -o cwd.o cwd.C

  In file included from cwd.C:31:

  In file included from ./cwd.h:32:

  ./strclass.h:813:19: error: friend declaration specifying a default
  argument must be a definition

      friend string common_prefix(const string& x, const string& y,

  ./strclass.h:815:19: error: friend declaration specifying a default
  argument must be a definition

      friend string common_suffix(const string& x, const string& y

  ./strclass.h:866:16: error: friend declaration specifying a default
  argument must be a definition

      friend int readline(std::istream& s, string& x,

Thanks!

Roger Davis
Univ. of Hawaii