[haiku-bugs] Re: [Haiku] #5892: clang build fixes part 1 [patch]

  • From: "kaliber" <trac@xxxxxxxxxxxx>
  • Date: Mon, 12 Jul 2010 18:16:20 -0000

#5892: clang build fixes part 1 [patch]
------------------------+---------------------------------------------------
  Reporter:  kaliber    |         Owner:  nobody        
      Type:  bug        |        Status:  new           
  Priority:  normal     |     Milestone:  R1            
 Component:  - General  |       Version:  R1/Development
Resolution:             |      Keywords:  clang         
Blocked By:             |   Has a Patch:  1             
  Platform:  All        |      Blocking:                
------------------------+---------------------------------------------------

Comment (by kaliber):

 Here is clang output, hopefully it helps:

 {{{
 C++ generated/objects/haiku/x86/release/preferences/cpufrequency/main.o
 In file included from src/preferences/cpufrequency/main.cpp:14:
 In file included from src/preferences/cpufrequency/CPUFrequencyView.h:14:
 src/preferences/cpufrequency/PreferencesWindow.h:369:2: error: use of
 undeclared identifier 'SetWindowPosition'
         SetWindowPosition(Frame().LeftTop());
         ^
         this->
 src/preferences/cpufrequency/main.cpp:28:15: note: in instantiation of
 member function
       'PreferencesWindow<freq_preferences>::~PreferencesWindow' requested
 here
         window = new PreferencesWindow<freq_preferences>(
                      ^
 In file included from src/preferences/cpufrequency/main.cpp:14:
 In file included from src/preferences/cpufrequency/CPUFrequencyView.h:14:
 src/preferences/cpufrequency/PreferencesWindow.h:55:12: note: must qualify
 identifier to find this declaration in dependent
       base class
                         void
 SetWindowPosition(BPoint position)
                                                         ^
 1 error generated.

 --------------------------------------

 C++ generated/objects/haiku/x86/release/libs/print/libprint/PackBits.o
 src/libs/print/libprint/PackBits.cpp:17:17: warning: using directive
 refers to implicitly-defined namespace 'std'
 using namespace std;

 --------------------------------------

 In file included from src/add-
 ons/kernel/network/protocols/ipv4/ipv4.cpp:27:
 headers/private/kernel/util/MultiHashTable.h:168:24: error: use of
 undeclared identifier '_Link'
                                         ValueType *next = _Link(bucket);
                                                           ^
                                                           this->
 headers/private/kernel/util/MultiHashTable.h:49:4: note: in instantiation
 of member function
       'MultiHashTable<MulticastStateHash, 1, 0>::_Resize' requested here
                         _Resize(HashTable::fTableSize * 2);
                         ^
 src/add-ons/kernel/network/protocols/ipv4/ipv4.cpp:779:19: note: in
 instantiation of member function
       'MultiHashTable<MulticastStateHash, 1, 0>::Insert' requested here
         sMulticastState->Insert(state);
                          ^
 In file included from src/add-
 ons/kernel/network/protocols/ipv4/ipv4.cpp:11:
 In file included from src/add-
 ons/kernel/network/protocols/ipv4/multicast.h:13:
 headers/private/kernel/util/OpenHashTable.h:429:14: note: must qualify
 identifier to find this declaration in dependent base
       class
         ValueType*& _Link(ValueType* bucket) const
                     ^
 In file included from src/add-
 ons/kernel/network/protocols/ipv4/ipv4.cpp:27:
 headers/private/kernel/util/MultiHashTable.h:146:4: error: use of
 undeclared identifier '_Link'
                         _Link(value) = _Link(previous);
                         ^
                         this->
 headers/private/kernel/util/MultiHashTable.h:169:6: note: in instantiation
 of member function
       'MultiHashTable<MulticastStateHash, 1, 0>::_Insert' requested here
                                         _Insert(newTable, newSize,
 bucket);
                                         ^
 headers/private/kernel/util/MultiHashTable.h:49:4: note: in instantiation
 of member function
       'MultiHashTable<MulticastStateHash, 1, 0>::_Resize' requested here
                         _Resize(HashTable::fTableSize * 2);
                         ^
 src/add-ons/kernel/network/protocols/ipv4/ipv4.cpp:779:19: note: in
 instantiation of member function
       'MultiHashTable<MulticastStateHash, 1, 0>::Insert' requested here
         sMulticastState->Insert(state);
                          ^
 In file included from src/add-
 ons/kernel/network/protocols/ipv4/ipv4.cpp:11:
 In file included from src/add-
 ons/kernel/network/protocols/ipv4/multicast.h:13:
 headers/private/kernel/util/OpenHashTable.h:429:14: note: must qualify
 identifier to find this declaration in dependent base
       class
         ValueType*& _Link(ValueType* bucket) const
                     ^
 In file included from src/add-
 ons/kernel/network/protocols/ipv4/ipv4.cpp:27:
 headers/private/kernel/util/MultiHashTable.h:146:19: error: use of
 undeclared identifier '_Link'
                         _Link(value) = _Link(previous);
                                        ^
                                        this->
 In file included from src/add-
 ons/kernel/network/protocols/ipv4/ipv4.cpp:11:
 In file included from src/add-
 ons/kernel/network/protocols/ipv4/multicast.h:13:
 headers/private/kernel/util/OpenHashTable.h:429:14: note: must qualify
 identifier to find this declaration in dependent base
       class
         ValueType*& _Link(ValueType* bucket) const
                     ^
 In file included from src/add-
 ons/kernel/network/protocols/ipv4/ipv4.cpp:27:
 headers/private/kernel/util/MultiHashTable.h:147:4: error: use of
 undeclared identifier '_Link'
                         _Link(previous) = value;
                         ^
                         this->
 In file included from src/add-
 ons/kernel/network/protocols/ipv4/ipv4.cpp:11:
 In file included from src/add-
 ons/kernel/network/protocols/ipv4/multicast.h:13:
 headers/private/kernel/util/OpenHashTable.h:429:14: note: must qualify
 identifier to find this declaration in dependent base
       class
         ValueType*& _Link(ValueType* bucket) const
                     ^
 In file included from src/add-
 ons/kernel/network/protocols/ipv4/ipv4.cpp:27:
 headers/private/kernel/util/MultiHashTable.h:149:4: error: use of
 undeclared identifier '_Link'
                         _Link(value) = table[index];
                         ^
                         this->
 In file included from src/add-
 ons/kernel/network/protocols/ipv4/ipv4.cpp:11:
 In file included from src/add-
 ons/kernel/network/protocols/ipv4/multicast.h:13:
 headers/private/kernel/util/OpenHashTable.h:429:14: note: must qualify
 identifier to find this declaration in dependent base
       class
         ValueType*& _Link(ValueType* bucket) const
                     ^
 1 warning and 5 errors generated.

 --------------------------------------

 C++ generated/objects/haiku/x86/release/kits/locale/DefaultCatalog.o
 In file included from src/kits/locale/DefaultCatalog.cpp:27:
 In file included from headers/private/locale/DefaultCatalog.h:10:
 In file included from headers/private/locale/HashMapCatalog.h:19:
 headers/private/shared/HashMap.h:461:29: error: no struct named 'Element'
 in 'HashMap<Key, Value>'
 struct HashMap<Key, Value>::Element *
                             ^
 1 error generated.

 }}}

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/5892#comment:8>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: