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

Submitter:  Daniel Moch <djmoch>
Submitted:  Sat 29 Mar 2014 04:22:07 PM UTC
 
Category:  Build Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Release:  3.3.12
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       No canned response available

 

Wed 28 Dec 2022 01:16:44 PM UTC, comment #2: 

fixed

Stefan Eickeler <eickeler>
Project Administrator
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 Files:
   
   
Comment:
   

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

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by eickeler (Posted a comment)
  • -email is unavailable- added by nokusu (Updated the item)
  • -email is unavailable- added by djmoch (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

     

     

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-12-28 eickeler StatusNone Fixed
    2022-12-28 eickeler Open/ClosedOpen Closed
    2014-04-07 nokusu Attached File- Added friend-default.patch, #31132
    2014-03-29 djmoch Attached File- Added main.log, #31075

    Back to the top

    Powered by Savane 3.9