aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: compilation with upnp broken  (Read 2575 times)

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
compilation with upnp broken
« on: November 07, 2008, 12:20:25 PM »

Compilation works fine when disabling upnp. Rev. 9171, libupnp 1.6.6, gcc 4.3.2, wxGTK 2.8.9,  Arch Linux.

Code: [Select]
g++ -DHAVE_CONFIG_H -I. -I../../..  -I../.. -I../../../src -I../../../src/libs -I../../../src/include -D__DEBUG__ -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -DUSE_WX_EXTENSIONS -DWITH_LIBPNG -DHAVE_BFD -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -DwxUSE_GUI=0 -DEC_REMOTE -DWEBSERVERDIR="\"/usr/local/share/amule/webserver\"" -DECSOCKET_USE_EVENTS=0   -I/usr/include/upnp   -DENABLE_UPNP=1  -g -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 -pthread  -I/usr/include/libpng12 -pthread    -MT amuleweb-UPnPBase.o -MD -MP -MF .deps/amuleweb-UPnPBase.Tpo -c -o amuleweb-UPnPBase.o `test -f '../../../src/UPnPBase.cpp' || echo './'`../../../src/UPnPBase.cpp
../../../src/UPnPBase.cpp:139:34: error: macro "AddLogLineM" passed 3 arguments, but takes just 2
../../../src/UPnPBase.cpp:146:34: error: macro "AddLogLineM" passed 3 arguments, but takes just 2
../../../src/UPnPBase.cpp:681:35: error: macro "AddLogLineM" passed 3 arguments, but takes just 2
../../../src/UPnPBase.cpp:868:33: error: macro "AddLogLineM" passed 3 arguments, but takes just 2
../../../src/UPnPBase.cpp:939:33: error: macro "AddLogLineM" passed 3 arguments, but takes just 2
../../../src/UPnPBase.cpp:1075:33: error: macro "AddLogLineM" passed 3 arguments, but takes just 2
../../../src/UPnPBase.cpp:1104:35: error: macro "AddLogLineM" passed 3 arguments, but takes just 2
../../../src/UPnPBase.cpp:1225:36: error: macro "AddLogLineM" passed 3 arguments, but takes just 2
../../../src/UPnPBase.cpp:1529:33: error: macro "AddLogLineM" passed 3 arguments, but takes just 2
../../../src/UPnPBase.cpp:1543:34: error: macro "AddLogLineM" passed 3 arguments, but takes just 2
../../../src/UPnPBase.cpp:1554:33: error: macro "AddLogLineM" passed 3 arguments, but takes just 2
../../../src/UPnPBase.cpp:1561:32: error: macro "AddLogLineM" passed 3 arguments, but takes just 2
In file included from /usr/include/upnp/upnp.h:505,
                 from ../../../src/UPnPCompatibility.h:31,
                 from ../../../src/UPnPBase.h:37,
                 from ../../../src/UPnPBase.cpp:28:
/usr/include/upnp/upnpdebug.h:130: warning: unused parameter ‘log_level’
/usr/include/upnp/upnpdebug.h:171: warning: unused parameter ‘ErrFileName’
/usr/include/upnp/upnpdebug.h:171: warning: unused parameter ‘InfoFileName’
/usr/include/upnp/upnpdebug.h:194: warning: unused parameter ‘level’
/usr/include/upnp/upnpdebug.h:194: warning: unused parameter ‘module’
/usr/include/upnp/upnpdebug.h:223: warning: unused parameter ‘DLevel’
/usr/include/upnp/upnpdebug.h:223: warning: unused parameter ‘Module’
/usr/include/upnp/upnpdebug.h:268: warning: unused parameter ‘DLevel’
/usr/include/upnp/upnpdebug.h:268: warning: unused parameter ‘Module’
/usr/include/upnp/upnpdebug.h:268: warning: unused parameter ‘DbgFileName’
/usr/include/upnp/upnpdebug.h:268: warning: unused parameter ‘DbgLineNo’
/usr/include/upnp/upnpdebug.h:268: warning: unused parameter ‘FmtStr’
/usr/include/upnp/upnpdebug.h:297: warning: unused parameter ‘fd’
/usr/include/upnp/upnpdebug.h:297: warning: unused parameter ‘lines’
/usr/include/upnp/upnpdebug.h:297: warning: unused parameter ‘size’
/usr/include/upnp/upnpdebug.h:297: warning: unused parameter ‘starlength’
/usr/include/upnp/upnpdebug.h:324: warning: unused parameter ‘fd’
/usr/include/upnp/upnpdebug.h:324: warning: unused parameter ‘DbgFileName’
/usr/include/upnp/upnpdebug.h:324: warning: unused parameter ‘DbgLineNo’
../../../src/UPnPBase.cpp: In member function ‘std::string CUPnPLib::processUPnPErrorMessage(const std::string&, int, const char*, IXML_Document*) const’:
../../../src/UPnPBase.cpp:139: error: ‘AddLogLineM’ was not declared in this scope
../../../src/UPnPBase.cpp:146: error: ‘AddLogLineM’ was not declared in this scope
../../../src/UPnPBase.cpp: In member function ‘bool CUPnPService::Execute(const std::string&, const std::__debug::vector<CUPnPArgumentValue, std::allocator<CUPnPArgumentValue> >&) const’:
../../../src/UPnPBase.cpp:681: error: ‘AddLogLineM’ was not declared in this scope
../../../src/UPnPBase.cpp: In constructor ‘CUPnPControlPoint::CUPnPControlPoint(short unsigned int)’:
../../../src/UPnPBase.cpp:868: error: ‘AddLogLineM’ was not declared in this scope
../../../src/UPnPBase.cpp: In member function ‘bool CUPnPControlPoint::AddPortMappings(std::__debug::vector<CUPnPPortMapping, std::allocator<CUPnPPortMapping> >&)’:
../../../src/UPnPBase.cpp:939: error: ‘AddLogLineM’ was not declared in this scope
../../../src/UPnPBase.cpp: In member function ‘bool CUPnPControlPoint::DeletePortMappings(std::__debug::vector<CUPnPPortMapping, std::allocator<CUPnPPortMapping> >&)’:
../../../src/UPnPBase.cpp:1075: error: ‘AddLogLineM’ was not declared in this scope
../../../src/UPnPBase.cpp:1104: error: ‘AddLogLineM’ was not declared in this scope
../../../src/UPnPBase.cpp: In static member function ‘static int CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)’:
../../../src/UPnPBase.cpp:1225: error: ‘AddLogLineM’ was not declared in this scope
../../../src/UPnPBase.cpp: In member function ‘void CUPnPControlPoint::Subscribe(CUPnPService&)’:
../../../src/UPnPBase.cpp:1529: error: ‘AddLogLineM’ was not declared in this scope
../../../src/UPnPBase.cpp:1554: error: ‘AddLogLineM’ was not declared in this scope
../../../src/UPnPBase.cpp:1561: error: ‘AddLogLineM’ was not declared in this scope
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: compilation with upnp broken
« Reply #1 on: November 07, 2008, 02:40:39 PM »

Yeah, UPnP is something special, and I missed a twist on it. Fixed in 9177.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon