[MacPorts] #48630: ghemical install problem

MacPorts noreply at macports.org
Wed Aug 19 12:40:44 PDT 2015


#48630: ghemical install problem
-------------------------+--------------------------------
  Reporter:  segalemb@…  |      Owner:  macports-tickets@…
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.3.3
Resolution:              |   Keywords:
      Port:  ghemical    |
-------------------------+--------------------------------

Comment (by devans@…):

 The problem is here
 {{{
 In file included from custom_camera.cpp:21:
 2230    :info:build In file included from ./custom_camera.h:31:
 2231    :info:build ./project.h:210:14: error: friend declaration
 specifying a default argument must be a definition
 2232    :info:build         friend bool ReadGPR_OLD(project &, istream &,
 bool, bool = false);              ///< this is for the very old version.
 2233    :info:build                     ^
 2234    :info:build ./project.h:211:14: error: friend declaration
 specifying a default argument must be a definition
 2235    :info:build         friend bool ReadGPR_v100(project &, istream &,
 bool, bool = false);             ///< this is for the version 1.00.
 2236    :info:build                     ^
 2237    :info:build ./project.h:212:14: error: friend declaration
 specifying a default argument must be a definition
 2238    :info:build         friend bool ReadGPR_v110(project &, istream &,
 bool, bool = false);             ///< this is for the version 1.10.
 2239    :info:build                     ^
 2240    :info:build ./project.h:214:14: error: friend declaration
 specifying a default argument must be a definition
 2241    :info:build         friend bool ReadGPR(project &, istream &,
 bool, bool = false);
 }}}

 As the error says, a friend declaration specifying a default argument must
 also be a definition.  Newer versions of clang will choke on this because
 these friend declarations specify default arguments but are not full
 function definitions (no body).

 Full discussion of this issue can be found [http://www.open-
 std.org/jtc1/sc22/wg21/docs/cwg_defects.html#136 here] and some
 alternative fixes for this type of issue are discussed
 [http://stackoverflow.com/questions/22533511/friend-declaration-
 specifying-a-default-argument-must-be-a-definition here].

 This issue should probably be referred to the upstream developers for
 resolution since choosing the correct fix requires some understanding of
 the related code.

-- 
Ticket URL: <https://trac.macports.org/ticket/48630#comment:2>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list