bugDDD - Bugs: bug #41997, DDD 3.3.12 doesn't build on OS X...

 
 

bug #41997: DDD 3.3.12 doesn't build on OS X Mavericks

Submitted by:  Daniel Moch <djmoch>
Submitted on:  Sat 29 Mar 2014 04:22:07 PM UTC  
 
Category: BuildSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenRelease: 3.3.12-rc2

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 07 Apr 2014 08:12:04 AM UTC, comment #1:

This isn't related to OS X or Xcode, but Clang itself, cf. the Debian Clang rebuild.

(file #31132)

Anthony Ramine <nokusu>
Sat 29 Mar 2014 04:22:07 PM UTC, original submission:

XCode g++ doesn't seem to like friend declarations:

g++ -DHAVE_CONFIG_H -I. -I./.. -O2 -g -Wall -W -Wwrite-strings -trigraphs -MT ddd.o -MD -MP -MF .deps/ddd.Tpo -c -o ddd.o ddd.C
In file included from ddd.C:134:
In file included from ./ddd.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, ...

g++ version information:
g++ --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1
Apple LLVM version 5.1 (clang-503.0.38) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.1.0
Thread model: posix

---

Also tried installing DDD from MacPorts using g++ from MacPorts with the same result:
g++ (MacPorts gcc48 4.8.2_0) 4.8.2
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Daniel Moch <djmoch>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #31132:  friend-default.patch added by nokusu (2kB - application/octet-stream - Introduce new functions to avoid default arguments)
file #31075:  main.log added by djmoch (54kB - application/octet-stream - MacPorts build log)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by nokusu (Updated the item)
  • -unavailable- added by djmoch (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 07 Apr 2014 08:12:04 AM UTCnokusuAttached File-=>Added friend-default.patch, #31132
    Sat 29 Mar 2014 04:22:07 PM UTCdjmochAttached File-=>Added main.log, #31075

    Back to the top


    Powered by Savane 3.1-cleanup