aMule Bug Tracker - aMule
View Issue Details
0001748aMuleMiscpublic2015-02-16 01:292015-03-17 11:43
Oswald.Luc 
 
normalminoralways
resolvedno change required 
Intel(R) Pentium(R) CPU B950Ubuntu 14.04 (trusty)3.13.0-45-generi
2.3.1 
2.3.2 
Any
0001748: unable to compile Ubuntu 14.04 (trusty)
Compiling UPnPBase.cpp
UPnPBase.cpp: In static member function ‘static int CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)’:
UPnPBase.cpp:1329:10: error: cannot convert ‘UpnpString* {aka s_UpnpString*}’ to ‘const char*’ for argument ‘2’ to ‘int UpnpSubscribe(UpnpClient_Handle, const char*, int*, char*)’
    newSID);
          ^
UPnPBase.cpp:1336:53: error: no matching function for call to ‘std::map<const std::basic_string<char>, CUPnPService*, std::less<const std::basic_string<char> >, std::allocator<std::pair<const std::basic_string<char>, CUPnPService*> > >::find(UpnpString*&)’
     upnpCP->m_ServiceMap.find(es_event->PublisherUrl);
                                                     ^
UPnPBase.cpp:1336:53: note: candidates are:
In file included from /usr/include/c++/4.8/map:61:0,
                 from UPnPBase.h:32,
                 from UPnPBase.cpp:34:
/usr/include/c++/4.8/bits/stl_map.h:821:7: note: std::map<_Key, _Tp, _Compare, _Alloc>::iterator std::map<_Key, _Tp, _Compare, _Alloc>::find(const key_type&) [with _Key = const std::basic_string<char>; _Tp = CUPnPService*; _Compare = std::less<const std::basic_string<char> >; _Alloc = std::allocator<std::pair<const std::basic_string<char>, CUPnPService*> >; std::map<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const std::basic_string<char>, CUPnPService*> >; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = const std::basic_string<char>]
       find(const key_type& __x)
       ^
/usr/include/c++/4.8/bits/stl_map.h:821:7: note: no known conversion for argument 1 from ‘UpnpString* {aka s_UpnpString*}’ to ‘std::map<const std::basic_string<char>, CUPnPService*, std::less<const std::basic_string<char> >, std::allocator<std::pair<const std::basic_string<char>, CUPnPService*> > >::key_type& {aka const std::basic_string<char>&}’
/usr/include/c++/4.8/bits/stl_map.h:836:7: note: std::map<_Key, _Tp, _Compare, _Alloc>::const_iterator std::map<_Key, _Tp, _Compare, _Alloc>::find(const key_type&) const [with _Key = const std::basic_string<char>; _Tp = CUPnPService*; _Compare = std::less<const std::basic_string<char> >; _Alloc = std::allocator<std::pair<const std::basic_string<char>, CUPnPService*> >; std::map<_Key, _Tp, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<const std::basic_string<char>, CUPnPService*> >; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = const std::basic_string<char>]
       find(const key_type& __x) const
       ^
/usr/include/c++/4.8/bits/stl_map.h:836:7: note: no known conversion for argument 1 from ‘UpnpString* {aka s_UpnpString*}’ to ‘std::map<const std::basic_string<char>, CUPnPService*, std::less<const std::basic_string<char> >, std::allocator<std::pair<const std::basic_string<char>, CUPnPService*> > >::key_type& {aka const std::basic_string<char>&}’
make[3]: *** [libmuleappcore_a-UPnPBase.o] Erreur 1
./configure --disable-monolithic --enable-amule-daemon

gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
No tags attached.
Issue History
2015-02-16 01:29Oswald.LucNew Issue
2015-03-10 21:50GonoszTopiNote Added: 0003653
2015-03-10 21:50GonoszTopiStatusnew => feedback
2015-03-12 01:05Oswald.LucNote Added: 0003655
2015-03-12 01:05Oswald.LucStatusfeedback => new
2015-03-17 11:43GonoszTopiNote Added: 0003656
2015-03-17 11:43GonoszTopiStatusnew => resolved
2015-03-17 11:43GonoszTopiResolutionopen => no change required
2015-03-17 11:43GonoszTopiFixed in Version => 2.3.2

Notes
(0003653)
GonoszTopi   
2015-03-10 21:50   
What libupnp version do you have installed?

Please try configuring aMule with

./configure --disable-monolithic --enable-amule-daemon CPPFLAGS="-DBROKEN_DEBIAN_LIBUPNP"

and see whether it helps.
(0003655)
Oswald.Luc   
2015-03-12 01:05   
I use libupnp Version: 1:1.6.17-1.2
But I tried to compile SVN tarball 10868 dated 26/01/2015
without the flag CPPFLAGS="-DBROKEN_DEBIAN_LIBUPNP"
and it worked fine !
Thanks !
I don't know how to mark it solved.
(0003656)
GonoszTopi   
2015-03-17 11:43   
Good to hear that.