[MacPorts] #42800: ddd-3.3.12_2.darwin_13.x86_64.tbz2 build error
#42800: ddd-3.3.12_2.darwin_13.x86_64.tbz2 build error --------------------+-------------------------------- Reporter: rbd@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Keywords: | Port: --------------------+-------------------------------- Hi, I am running MacOS 10.9.2 Mavericks and just upgraded to XCode 5.1. I completely wiped out and re-installed MacPorts from scratch. All went well except for the rebuild of ddd, which failed with compile errors. All was OK up to this point: /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 cook.C:36: In file included from ./cook.h:31: ./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, 3 errors generated. make[2]: * [cook.o] Error 1 -- Ticket URL: <https://trac.macports.org/ticket/42800> MacPorts <http://www.macports.org/> Ports system for OS X
#42800: ddd-3.3.12_2.darwin_13.x86_64.tbz2 build error ---------------------+-------------------------------- Reporter: rbd@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: ddd | ---------------------+-------------------------------- Changes (by ryandesign@…): * port: => ddd Old description:
Hi, I am running MacOS 10.9.2 Mavericks and just upgraded to XCode 5.1. I completely wiped out and re-installed MacPorts from scratch. All went well except for the rebuild of ddd, which failed with compile errors. All was OK up to this point:
/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 cook.C:36:
In file included from ./cook.h:31:
./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,
3 errors generated.
make[2]: * [cook.o] Error 1
New description: Hi, I am running MacOS 10.9.2 Mavericks and just upgraded to XCode 5.1. I completely wiped out and re-installed MacPorts from scratch. All went well except for the rebuild of ddd, which failed with compile errors. All was OK up to this point: {{{ /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 cook.C:36: In file included from ./cook.h:31: ./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, 3 errors generated. make[2]: * [cook.o] Error 1 }}} -- Comment: Please attach the main.log file. Also, please report the problem to the developers of ddd so they can fix it. -- Ticket URL: <https://trac.macports.org/ticket/42800#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#42800: ddd @3.3.12_2: error: friend declaration specifying a default argument must be a definition ---------------------+-------------------------------- Reporter: rbd@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: ddd | ---------------------+-------------------------------- -- Ticket URL: <https://trac.macports.org/ticket/42800#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#42800: ddd @3.3.12_2: error: friend declaration specifying a default argument must be a definition ---------------------+-------------------------------- Reporter: rbd@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: ddd | ---------------------+-------------------------------- Changes (by ryandesign@…): * cc: daniel@…, leo.kuznetsov@… (added) Comment: Has duplicate #43184. This port has no maintainer in MacPorts. The best thing would be if someone could report the problem to the developer, so that they can fix the problem and release a new version. Then we can update the port to that new version. -- Ticket URL: <https://trac.macports.org/ticket/42800#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#42800: ddd @3.3.12_2: error: friend declaration specifying a default argument must be a definition ---------------------+-------------------------------- Reporter: rbd@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: ddd | ---------------------+-------------------------------- Comment (by daniel@…): Yes. I have already [https://savannah.gnu.org/bugs/?41997 written a bug] against DDD as well. Sorry for not linking earlier. This is definitely a problem with DDD. More accurately, GCC [http://gcc.gnu.org/bugzilla//show_bug.cgi?id=59480 has a bug] written against it for allowing friend declarations to ''both'' contain default arguments ''and'' not also be a definition. In other words, the compiler the DDD folks are using is less strict than it should be. -- Ticket URL: <https://trac.macports.org/ticket/42800#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#42800: ddd @3.3.12_2: error: friend declaration specifying a default argument must be a definition ---------------------+-------------------------------- Reporter: rbd@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: ddd | ---------------------+-------------------------------- Comment (by rbd@…): I also reported this bug on the ddd mailing list and Shaunak Saha, the ddd maintainer, is aware of it. I'm not sure when he is planning to distribute a patched release. In the meantime users can fix the problem by removing the default argument specifiers from the friend function declarations and then specifying those default arguments explicitly wherever those functions are called. (There are only a handful of such calls, so it's not too onerous.) On a related issue, Xcode no longer includes gdb, the underlying debugger required by ddd. The MacPorts gdb package installs gdb as ggdb, presumably to avoid conflicting with the no-longer-distributed Xcode gdb. This should also be fixed. Thanks! -- Ticket URL: <https://trac.macports.org/ticket/42800#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#42800: ddd @3.3.12_2: error: friend declaration specifying a default argument must be a definition ---------------------+-------------------------------- Reporter: rbd@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: ddd | ---------------------+-------------------------------- Comment (by carsten@…): Still present on yosemite beta
error: friend declaration specifying a default argument must be a definition
-- Ticket URL: <https://trac.macports.org/ticket/42800#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#42800: ddd @3.3.12_2: error: friend declaration specifying a default argument must be a definition ---------------------+-------------------------------- Reporter: rbd@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: ddd | ---------------------+-------------------------------- Comment (by carsten@…): Replying to [comment:4 daniel@…]:
Yes. I have already [https://savannah.gnu.org/bugs/?41997 written a bug] against DDD as well. Sorry for not linking earlier.
There is a patch provided upstream which fixes the issue for me on Yosemite. I run into another problem now "./Ddd.ad.h:4:3: error: source file is not valid UTF-8" which could be related to XCode6 and a possibly broken string.h -- Ticket URL: <https://trac.macports.org/ticket/42800#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts