aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: rev6790 does not compile on OS X (WebServer.cpp)  (Read 2379 times)

lionel77

  • Provider of Mac builds, Forum Mod
  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 1107
  • Mac OS X 10.4 (Power Mac G5)
rev6790 does not compile on OS X (WebServer.cpp)
« on: June 22, 2006, 10:10:36 PM »

[aMule SVN rev6790 // wxWidgets CVS 2006-03-07 // OS X 10.3.9]

Code: [Select]
if g++ -DHAVE_CONFIG_H -I. -I. -I../../..   -I/Applications/-other/zlib/myzlib/include -I../.. -I../../../src -I../../../src/libs -I/Applications/-other/wx/myWidgets_NoDebug/lib/wx/include/mac-unicode-release-static-2.7 -I/Applications/-other/wx/myWidgets_NoDebug/include/wx-2.7 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXMAC__  -DwxUSE_GUI=0    -DEC_REMOTE -DWEBSERVERDIR="\"/usr/local/share/amule/webserver\"" -DECSOCKET_USE_EVENTS=0 -DUSE_EMBEDDED_CRYPTO -W -Wall -Wshadow -Wundef -O2  -MT amuleweb-WebServer.o -MD -MP -MF ".deps/amuleweb-WebServer.Tpo" -c -o amuleweb-WebServer.o `test -f 'WebServer.cpp' || echo './'`WebServer.cpp; \
then mv -f ".deps/amuleweb-WebServer.Tpo" ".deps/amuleweb-WebServer.Po"; else rm -f ".deps/amuleweb-WebServer.Tpo"; exit 1; fi
In file included from WebServer.cpp:37:
../../../src/libs/ec/ECSpecialTags.h:28:2: warning: #warning Kry - Preferences packet derived from packet, and that's ok, but shouldn't be here because this is a tag file and forces a stupid include
In file included from ../../../src/libs/ec/ECPacket.h:28,
                 from ../../../src/libs/ec/ECSpecialTags.h:29,
                 from WebServer.cpp:37:
../../../src/libs/ec/ECTag.h:34:2: warning: #warning Kry - Can you say "Design flaw"?
WebServer.cpp: In member function `void
   CParsedUrl::ConvertParams(std::map   std::less, std::allocator   std::string> > >&)':
WebServer.cpp:203: error: variable `std::string key' has initializer but
   incomplete type
WebServer.cpp:203: error: variable `std::string value' has initializer but
   incomplete type
In file included from /usr/include/gcc/darwin/3.3/c++/bits/stl_map.h:373,
                 from WebServer.cpp:328:
/usr/include/gcc/darwin/3.3/c++/bits/stl_pair.h: At global scope:
/usr/include/gcc/darwin/3.3/c++/bits/stl_pair.h: In instantiation of `std::pair':
/usr/include/gcc/darwin/3.3/c++/bits/stl_tree.h:123:   instantiated from `std::_Rb_tree_node >'
/usr/include/gcc/darwin/3.3/c++/bits/stl_alloc.h:232:   instantiated from `static _Tp* std::__simple_alloc<_Tp, _Alloc>::allocate(long unsigned int) [with _Tp = std::_Rb_tree_node >, _Alloc = std::__default_alloc_template]'
/usr/include/gcc/darwin/3.3/c++/bits/stl_pair.h:564:   instantiated from `std::_Rb_tree_node<_Val>* std::_Rb_tree_alloc_base<_Tp, _Alloc, true>::_M_get_node() [with _Tp = std::pair, _Alloc = std::allocator >]'
/usr/include/gcc/darwin/3.3/c++/bits/stl_pair.h:579:   instantiated from `std::_Rb_tree_base<_Tp, _Alloc>::_Rb_tree_base(typename std::_Rb_tree_alloc_base<_Tp, _Alloc, std::_Alloc_traits<_Tp, _Allocator>::_S_instanceless>::allocator_type&) [with _Tp = std::pair, _Alloc = std::allocator >]'
/usr/include/gcc/darwin/3.3/c++/bits/stl_pair.h:579:   instantiated from `std::_Rb_tree_base<_Tp, _Alloc>::_Rb_tree_base(typename std::_Rb_tree_alloc_base<_Tp, _Alloc, std::_Alloc_traits<_Tp, _Allocator>::_S_instanceless>::allocator_type&) [with _Tp = std::pair, _Alloc = std::allocator >]'
/usr/include/gcc/darwin/3.3/c++/bits/stl_pair.h:730:   instantiated from `std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Rb_tree(const _Compare&, typename std::_Rb_tree_base<_Val, _Alloc>::allocator_type&) [with _Key = std::string, _Val = std::pair, _KeyOfValue = std::_Select1st >, _Compare = std::less, _Alloc = std::allocator >]'
/usr/include/gcc/darwin/3.3/c++/bits/stl_pair.h:730:   instantiated from `std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Rb_tree(const _Compare&, typename std::_Rb_tree_base<_Val, _Alloc>::allocator_type&) [with _Key = std::string, _Val = std::pair, _KeyOfValue = std::_Select1st >, _Compare = std::less, _Alloc = std::allocator >]'
/usr/include/gcc/darwin/3.3/c++/bits/stl_pair.h:153:   instantiated from `std::map<_Key, _Tp, _Compare, _Alloc>::map() [with _Key = std::string, _Tp = std::string, _Compare = std::less, _Alloc = std::allocator >]'
/usr/include/gcc/darwin/3.3/c++/bits/stl_pair.h:153:   instantiated from `std::map<_Key, _Tp, _Compare, _Alloc>::map() [with _Key = std::string, _Tp = std::string, _Compare = std::less, _Alloc = std::allocator >]'
/usr/include/gcc/darwin/3.3/c++/bits/stl_pair.h:328:   instantiated from `std::pair<_T1, _T2>::pair(const _T1&, const _T2&) [with _T1 = const int, _T2 = CSession]'
/usr/include/gcc/darwin/3.3/c++/bits/stl_map.h:373:   instantiated from `typename std::_Rb_tree<_Key, std::pair, std::_Select1st >, _Compare, _Alloc>::iterator std::map<_Key, _Tp, _Compare, _Alloc>::insert(typename std::_Rb_tree<_Key, std::pair, std::_Select1st >, _Compare, _Alloc>::iterator, const std::pair&) [with _Key = int, _Tp = CSession, _Compare = std::less, _Alloc = std::allocator >]'
WebServer.cpp:328:   instantiated from `_Tp& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const _Key&) [with _Key = int, _Tp = CSession, _Compare = std::less, _Alloc = std::allocator >]'
WebServer.cpp:1769:   instantiated from here
/usr/include/gcc/darwin/3.3/c++/bits/stl_pair.h:73: error: `std::pair<_T1,
   _T2>::first' has incomplete type
/usr/include/gcc/darwin/3.3/c++/bits/stringfwd.h:56: error: declaration of `
   const struct std::string'
/usr/include/gcc/darwin/3.3/c++/bits/stl_pair.h:74: error: `std::pair<_T1,
   _T2>::second' has incomplete type
/usr/include/gcc/darwin/3.3/c++/bits/stringfwd.h:56: error: declaration of `
   struct std::string'
WebServer.cpp: In member function `virtual void
   CScriptWebServer::ProcessURL(ThreadData)':
WebServer.cpp:1818: error: no match for `std::map   std::less, std::allocator   std::string> > >& [const char[12]]' operator
/usr/include/gcc/darwin/3.3/c++/bits/stl_map.h:321: error: candidates are: _Tp&
   std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const _Key&) [with _Key =
   std::string, _Tp = std::string, _Compare = std::less, _Alloc =
   std::allocator >]
WebServer.cpp:1824: error: no match for `std::map   std::less, std::allocator   std::string> > >& [const char[12]]' operator
/usr/include/gcc/darwin/3.3/c++/bits/stl_map.h:321: error: candidates are: _Tp&
   std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const _Key&) [with _Key =
   std::string, _Tp = std::string, _Compare = std::less, _Alloc =
   std::allocator >]
WebServer.cpp:1832: error: no match for `std::map   std::less, std::allocator   std::string> > >& [const char[12]]' operator
/usr/include/gcc/darwin/3.3/c++/bits/stl_map.h:321: error: candidates are: _Tp&
   std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const _Key&) [with _Key =
   std::string, _Tp = std::string, _Compare = std::less, _Alloc =
   std::allocator >]
WebServer.cpp:1836: error: no match for `std::map   std::less, std::allocator   std::string> > >& [const char[12]]' operator
/usr/include/gcc/darwin/3.3/c++/bits/stl_map.h:321: error: candidates are: _Tp&
   std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const _Key&) [with _Key =
   std::string, _Tp = std::string, _Compare = std::less, _Alloc =
   std::allocator >]
WebServer.cpp:1839: error: no match for `std::map   std::less, std::allocator   std::string> > >& [const char[12]]' operator
/usr/include/gcc/darwin/3.3/c++/bits/stl_map.h:321: error: candidates are: _Tp&
   std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const _Key&) [with _Key =
   std::string, _Tp = std::string, _Compare = std::less, _Alloc =
   std::allocator >]
WebServer.cpp:1841: error: no match for `std::map   std::less, std::allocator   std::string> > >& [const char[12]]' operator
/usr/include/gcc/darwin/3.3/c++/bits/stl_map.h:321: error: candidates are: _Tp&
   std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const _Key&) [with _Key =
   std::string, _Tp = std::string, _Compare = std::less, _Alloc =
   std::allocator >]
WebServer.cpp:1866: error: no match for `std::map   std::less, std::allocator   std::string> > >& [const char[13]]' operator
/usr/include/gcc/darwin/3.3/c++/bits/stl_map.h:321: error: candidates are: _Tp&
   std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const _Key&) [with _Key =
   std::string, _Tp = std::string, _Compare = std::less, _Alloc =
   std::allocator >]
WebServer.cpp:1868: error: no match for `std::map   std::less, std::allocator   std::string> > >& [const char[13]]' operator
/usr/include/gcc/darwin/3.3/c++/bits/stl_map.h:321: error: candidates are: _Tp&
   std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const _Key&) [with _Key =
   std::string, _Tp = std::string, _Compare = std::less, _Alloc =
   std::allocator >]
WebServer.cpp:1900: error: no match for `std::map   std::less, std::allocator   std::string> > >& [const char[13]]' operator
/usr/include/gcc/darwin/3.3/c++/bits/stl_map.h:321: error: candidates are: _Tp&
   std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const _Key&) [with _Key =
   std::string, _Tp = std::string, _Compare = std::less, _Alloc =
   std::allocator >]
make[4]: *** [amuleweb-WebServer.o] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Logged
Current aMule CVS builds for OS X can be found here.

lionel77

  • Provider of Mac builds, Forum Mod
  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 1107
  • Mac OS X 10.4 (Power Mac G5)
Re: rev6790 does not compile on OS X (WebServer.cpp)
« Reply #1 on: June 28, 2006, 05:39:41 AM »

Above error is fixed -- thanks. :)


Now compilation stops a while later:
Code: [Select]
In file included from amule.cpp:56:
SearchList.h:183: warning: ISO C++ forbids declaration of `auto_ptr' with no
   type
SearchList.h:183: error: template-id `auto_ptr' used as a declarator
SearchList.h:183: error: parse error before `;' token
SearchList.h:186: error: parse error before `&' token
In file included from ExternalConn.h:31,
                 from amule.cpp:60:
libs/ec/ECSpecialTags.h:28:2: warning: #warning Kry - Preferences packet derived from packet, and that's ok, but shouldn't be here because this is a tag file and forces a stupid include
In file included from libs/ec/ECPacket.h:28,
                 from libs/ec/ECSpecialTags.h:29,
                 from ExternalConn.h:31,
                 from amule.cpp:60:
libs/ec/ECTag.h:34:2: warning: #warning Kry - Can you say "Design flaw"?
In file included from CFile.h:29,
                 from PartFile.h:31,
                 from amule.cpp:63:
SafeFile.h:201:2: warning: #warning DOCS
In file included from amule.cpp:64:
FriendList.h:62:10: warning: #warning THIS MUST BE MADE PRIVATE AFTER EC IS CODED
amule.cpp: In member function `void
   CamuleApp::OnFinishedAICHHashing(CHashingEvent&)':
amule.cpp:1476: error: `auto_ptr' undeclared in namespace `std'
amule.cpp:1476: error: parse error before `>' token
amule.cpp:1480: error: `result' undeclared (first use this function)
amule.cpp:1480: error: (Each undeclared identifier is reported only once for
   each function it appears in.)
make[3]: *** [amule-amule.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

[aMule SVN rev6873 // wxWidgets CVS 2006-03-07 // OS X 10.3.9]
Logged
Current aMule CVS builds for OS X can be found here.

lionel77

  • Provider of Mac builds, Forum Mod
  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 1107
  • Mac OS X 10.4 (Power Mac G5)
Re: rev6790 does not compile on OS X (WebServer.cpp)
« Reply #2 on: June 29, 2006, 06:56:39 AM »

And now it runs until:
Code: [Select]
if g++ -DHAVE_CONFIG_H -I. -I. -I..   -I/Applications/-other/zlib/myzlib/include  -I/Applications/-other/wx/myWidgets_NoDebug/lib/wx/include/mac-unicode-release-static-2.7 -I/Applications/-other/wx/myWidgets_NoDebug/include/wx-2.7 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXMAC__   -I./libs -Ilibs -DUSE_EMBEDDED_CRYPTO -W -Wall -Wshadow -Wundef -O2  -MT amule-KnownFileList.o -MD -MP -MF ".deps/amule-KnownFileList.Tpo" -c -o amule-KnownFileList.o `test -f 'KnownFileList.cpp' || echo './'`KnownFileList.cpp; \
then mv -f ".deps/amule-KnownFileList.Tpo" ".deps/amule-KnownFileList.Po"; else rm -f ".deps/amule-KnownFileList.Tpo"; exit 1; fi
In file included from CFile.h:29,
                 from PartFile.h:31,
                 from KnownFileList.cpp:31:
SafeFile.h:201:2: warning: #warning DOCS
KnownFileList.cpp: In member function `bool CKnownFileList::Init()':
KnownFileList.cpp:77: error: `auto_ptr' undeclared in namespace `std'
KnownFileList.cpp:77: error: parse error before `>' token
KnownFileList.cpp:79: error: `record' undeclared (first use this function)
KnownFileList.cpp:79: error: (Each undeclared identifier is reported only once
   for each function it appears in.)
make[3]: *** [amule-KnownFileList.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Logged
Current aMule CVS builds for OS X can be found here.