[MacPorts] #56097: audacity: not always respecting CXXFLAGS

MacPorts noreply at macports.org
Wed Mar 21 02:01:41 UTC 2018


#56097: audacity: not always respecting CXXFLAGS
-----------------------+------------------
  Reporter:  mojca     |      Owner:  RJVB
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:
Resolution:            |   Keywords:
      Port:  audacity  |
-----------------------+------------------

Comment (by mojca):

 I believe this particular error was solved, but we have another issue with
 some C++11 mixup. I guess I'll commit these changes anyway and this can
 then be fixed later.
 {{{
 In file included from BlockFile.cpp:43:
 In file included from ./BlockFile.h:15:
 ./MemoryX.h:21:22: error: declaration conflicts with target of using
 declaration already in scope
 inline long long int llrint(float __x) { return __builtin_llrintf(__x); }
                      ^
 /opt/local/include/gcc/c++/cmath:1530:3: note: target of using declaration
   llrint(float __x)
   ^
 /opt/local/include/gcc/c++/math.h:94:12: note: using declaration
 using std::llrint;
            ^
 In file included from BlockFile.cpp:43:
 In file included from ./BlockFile.h:15:
 ./MemoryX.h:23:22: error: declaration conflicts with target of using
 declaration already in scope
 inline long long int llrint(long double __x) { return
 __builtin_llrintl(__x); }
                      ^
 /opt/local/include/gcc/c++/cmath:1534:3: note: target of using declaration
   llrint(long double __x)
   ^
 /opt/local/include/gcc/c++/math.h:94:12: note: using declaration
 using std::llrint;
            ^
 In file included from BlockFile.cpp:43:
 In file included from ./BlockFile.h:15:
 ./MemoryX.h:46:20: error: target of using declaration conflicts with
 declaration already in scope
    using std::tr1::hash;
                    ^
 /opt/local/include/gcc/c++/tr1/functional_hash.h:45:12: note: target of
 using declaration
     struct hash : public std::unary_function<_Tp, size_t>
            ^
 /opt/local/include/gcc/c++/bits/functional_hash.h:101:12: note:
 conflicting declaration
     struct hash : __hash_enum<_Tp>
            ^
 In file included from BlockFile.cpp:43:
 In file included from ./BlockFile.h:15:
 ./MemoryX.h:49:20: error: target of using declaration conflicts with
 declaration already in scope
    using std::tr1::shared_ptr;
                    ^
 /opt/local/include/gcc/c++/tr1/shared_ptr.h:983:11: note: target of using
 declaration
     class shared_ptr
           ^
 /opt/local/include/gcc/c++/bits/shared_ptr.h:93:11: note: conflicting
 declaration
     class shared_ptr : public __shared_ptr<_Tp>
           ^
 In file included from BlockFile.cpp:43:
 In file included from ./BlockFile.h:15:
 ./MemoryX.h:50:20: error: target of using declaration conflicts with
 declaration already in scope
    using std::tr1::weak_ptr;
                    ^
 /opt/local/include/gcc/c++/tr1/shared_ptr.h:1071:11: note: target of using
 declaration
     class weak_ptr
           ^
 /opt/local/include/gcc/c++/bits/shared_ptr.h:520:11: note: conflicting
 declaration
     class weak_ptr : public __weak_ptr<_Tp>
           ^
 In file included from BlockFile.cpp:43:
 In file included from ./BlockFile.h:15:
 ./MemoryX.h:52:20: error: target of using declaration conflicts with
 declaration already in scope
    using std::tr1::remove_reference;
                    ^
 /opt/local/include/gcc/c++/tr1/type_traits:643:12: note: target of using
 declaration
     struct remove_reference
            ^
 /opt/local/include/gcc/c++/type_traits:1628:12: note: conflicting
 declaration
     struct remove_reference
            ^
 In file included from BlockFile.cpp:43:
 In file included from ./BlockFile.h:15:
 ./MemoryX.h:53:20: error: target of using declaration conflicts with
 declaration already in scope
    using std::tr1::is_unsigned;
                    ^
 /opt/local/include/gcc/c++/tr1/type_traits:567:12: note: target of using
 declaration
     struct is_unsigned
            ^
 /opt/local/include/gcc/c++/type_traits:747:12: note: conflicting
 declaration
     struct is_unsigned
            ^
 In file included from BlockFile.cpp:43:
 In file included from ./BlockFile.h:15:
 ./MemoryX.h:54:20: error: target of using declaration conflicts with
 declaration already in scope
    using std::tr1::is_const;
                    ^
 /opt/local/include/gcc/c++/tr1/type_traits:308:12: note: target of using
 declaration
     struct is_const
            ^
 /opt/local/include/gcc/c++/type_traits:655:12: note: conflicting
 declaration
     struct is_const
            ^
 In file included from BlockFile.cpp:43:
 In file included from ./BlockFile.h:15:
 ./MemoryX.h:55:20: error: target of using declaration conflicts with
 declaration already in scope
    using std::tr1::add_const;
                    ^
 /opt/local/include/gcc/c++/tr1/type_traits:426:12: note: target of using
 declaration
     struct add_const
            ^
 /opt/local/include/gcc/c++/type_traits:1579:12: note: conflicting
 declaration
     struct add_const
            ^
 In file included from BlockFile.cpp:43:
 In file included from ./BlockFile.h:15:
 ./MemoryX.h:56:20: error: target of using declaration conflicts with
 declaration already in scope
    using std::tr1::add_pointer;
                    ^
 /opt/local/include/gcc/c++/tr1/type_traits:491:12: note: target of using
 declaration
     struct add_pointer
            ^
 /opt/local/include/gcc/c++/type_traits:2002:12: note: conflicting
 declaration
     struct add_pointer
            ^
 In file included from BlockFile.cpp:43:
 In file included from ./BlockFile.h:15:
 ./MemoryX.h:57:20: error: target of using declaration conflicts with
 declaration already in scope
    using std::tr1::remove_pointer;
                    ^
 /opt/local/include/gcc/c++/tr1/type_traits:482:12: note: target of using
 declaration
     struct remove_pointer
            ^
 /opt/local/include/gcc/c++/type_traits:1987:12: note: conflicting
 declaration
     struct remove_pointer
            ^
 In file included from BlockFile.cpp:43:
 In file included from ./BlockFile.h:15:
 ./MemoryX.h:59:32: error: redefinition of 'add_rvalue_reference'
    template<typename T> struct add_rvalue_reference {
                                ^
 /opt/local/include/gcc/c++/type_traits:1663:12: note: previous definition
 is here
     struct add_rvalue_reference
            ^
 In file included from BlockFile.cpp:43:
 In file included from ./BlockFile.h:15:
 ./MemoryX.h:63:32: error: redefinition of 'default_delete'
    template<typename X> struct default_delete
                                ^
 /opt/local/include/gcc/c++/bits/unique_ptr.h:56:12: note: previous
 definition is here
     struct default_delete
            ^
 In file included from BlockFile.cpp:43:
 In file included from ./BlockFile.h:15:
 ./MemoryX.h:86:32: error: redefinition of 'default_delete<X []>'
    template<typename X> struct default_delete<X[]>
                                ^~~~~~~~~~~~~~~~~~~
 /opt/local/include/gcc/c++/bits/unique_ptr.h:86:12: note: previous
 definition is here
     struct default_delete<_Tp[]>
            ^
 In file included from BlockFile.cpp:43:
 In file included from ./BlockFile.h:15:
 ./MemoryX.h:95:11: error: definition of type 'nullptr_t' conflicts with
 typedef of the same name
    struct nullptr_t
           ^
 /opt/local/include/gcc/c++/x86_64-apple-darwin10/bits/c++config.h:235:29:
 note: 'nullptr_t' declared here
   typedef decltype(nullptr)     nullptr_t;
                                 ^
 In file included from BlockFile.cpp:43:
 In file included from ./BlockFile.h:15:
 ./MemoryX.h:125:69: error: 'move' is missing exception specification
 'noexcept'
    template<typename T> inline typename remove_reference<T>::type&&
 move(T&& t)
                                                                     ^
 noexcept
 /opt/local/include/gcc/c++/bits/move.h:98:5: note: previous declaration is
 here
     move(_Tp&& __t) noexcept
     ^
 In file included from BlockFile.cpp:43:
 In file included from ./BlockFile.h:15:
 ./MemoryX.h:128:63: error: redefinition of 'unique_ptr'
    template<typename T, typename D = default_delete<T>> class unique_ptr
                                                               ^
 /opt/local/include/gcc/c++/bits/unique_ptr.h:157:11: note: previous
 definition is here
     class unique_ptr
           ^
 In file included from BlockFile.cpp:43:
 In file included from ./BlockFile.h:15:
 ./MemoryX.h:226:43: error: redefinition of 'unique_ptr<T [], D>'
    template<typename T, typename D> class unique_ptr<T[], D>
                                           ^~~~~~~~~~~~~~~~~~
 /opt/local/include/gcc/c++/bits/unique_ptr.h:397:11: note: previous
 definition is here
     class unique_ptr<_Tp[], _Dp>
           ^
 In file included from BlockFile.cpp:43:
 In file included from ./BlockFile.h:15:
 ./MemoryX.h:309:16: error: 'operator==' is missing exception specification
 'noexcept'
    inline bool operator== (nullptr_t, const unique_ptr<U, E>& ptr)
                ^
 noexcept
 /opt/local/include/gcc/c++/bits/unique_ptr.h:694:5: note: previous
 declaration is here
     operator==(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) noexcept
     ^
 fatal error: too many errors emitted, stopping now [-ferror-limit=]
 20 errors generated.
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/56097#comment:10>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list