aMule Bug Tracker - aMule | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0001807 | aMule | public | 2019-11-26 14:54 | 2019-12-02 15:25 | |
Reporter | Jerboa | ||||
Assigned To | |||||
Priority | high | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | Kali | OS | Linux | OS Version | 5.3.0-kali2-amd6 |
Product Version | 2.3.2 | ||||
Target Version | 2.3.3 | Fixed in Version | 2.3.3 | ||
Fixed in Revision | 11011 | ||||
Operating System | 5.3.0-kali2-amd64 | ||||
Summary | 0001807: Error during compilation | ||||
Description | I downloaded the aMule-2.3.2.tar.xz from the following link: https://sourceforge.net/projects/amule/files/aMule/ [^] I followed the instruction at this link: http://wiki.amule.org/t/index.php?title=HowTo_Compile_In_Debian#Ubuntu [^] I always got the same error: Compiling UPnPBase.cpp UPnPBase.cpp: In constructor ‘CUPnPControlPoint::CUPnPControlPoint(short unsigned int)’: UPnPBase.cpp:843:56: error: invalid static_cast from type ‘int (*)(Upnp_EventType, void*, void*)’ {aka ‘int (*)(Upnp_EventType_e, void*, void*)’} to type ‘Upnp_FunPtr’ {aka ‘int (*)(Upnp_EventType_e, const void*, void*)’} 843 | static_cast<Upnp_FunPtr>(&CUPnPControlPoint::Callback), | ^ UPnPBase.cpp: In static member function ‘static int CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)’: UPnPBase.cpp:1155:14: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’ 1155 | if (d_event->ErrCode != UPNP_E_SUCCESS) { | ^~ UPnPBase.cpp:1152:10: note: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’ 1152 | struct Upnp_Discovery *d_event = (struct Upnp_Discovery *)Event; | ^~~~~~~~~~~~~~ UPnPBase.cpp:1156:38: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’ 1156 | msg << UpnpGetErrorMessage(d_event->ErrCode) << "."; | ^~ UPnPBase.cpp:1152:10: note: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’ 1152 | struct Upnp_Discovery *d_event = (struct Upnp_Discovery *)Event; | ^~~~~~~~~~~~~~ UPnPBase.cpp:1160:35: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’ 1160 | ret = UpnpDownloadXmlDoc(d_event->Location, &doc); | ^~ UPnPBase.cpp:1152:10: note: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’ 1152 | struct Upnp_Discovery *d_event = (struct Upnp_Discovery *)Event; | ^~~~~~~~~~~~~~ UPnPBase.cpp:1163:12: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’ 1163 | d_event->Location << ": " << | ^~ UPnPBase.cpp:1152:10: note: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’ 1152 | struct Upnp_Discovery *d_event = (struct Upnp_Discovery *)Event; | ^~~~~~~~~~~~~~ UPnPBase.cpp:1169:12: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’ 1169 | d_event->Location << "."; | ^~ UPnPBase.cpp:1152:10: note: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’ 1152 | struct Upnp_Discovery *d_event = (struct Upnp_Discovery *)Event; | ^~~~~~~~~~~~~~ UPnPBase.cpp:1198:13: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’ 1198 | d_event->Location, d_event->Expires); | ^~ UPnPBase.cpp:1152:10: note: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’ 1152 | struct Upnp_Discovery *d_event = (struct Upnp_Discovery *)Event; | ^~~~~~~~~~~~~~ UPnPBase.cpp:1198:32: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’ 1198 | d_event->Location, d_event->Expires); | ^~ UPnPBase.cpp:1152:10: note: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’ 1152 | struct Upnp_Discovery *d_event = (struct Upnp_Discovery *)Event; | ^~~~~~~~~~~~~~ UPnPBase.cpp:1220:16: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’ 1220 | if (dab_event->ErrCode != UPNP_E_SUCCESS) { | ^~ UPnPBase.cpp:1219:10: note: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’ 1219 | struct Upnp_Discovery *dab_event = (struct Upnp_Discovery *)Event; | ^~~~~~~~~~~~~~ UPnPBase.cpp:1222:34: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’ 1222 | UpnpGetErrorMessage(dab_event->ErrCode) << | ^~ UPnPBase.cpp:1219:10: note: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’ 1219 | struct Upnp_Discovery *dab_event = (struct Upnp_Discovery *)Event; | ^~~~~~~~~~~~~~ UPnPBase.cpp:1226:34: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’ 1226 | std::string devType = dab_event->DeviceType; | ^~ UPnPBase.cpp:1219:10: note: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’ 1219 | struct Upnp_Discovery *dab_event = (struct Upnp_Discovery *)Event; | ^~~~~~~~~~~~~~ UPnPBase.cpp:1230:38: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’ 1230 | upnpCP->RemoveRootDevice(dab_event->DeviceId); | ^~ UPnPBase.cpp:1219:10: note: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’ 1219 | struct Upnp_Discovery *dab_event = (struct Upnp_Discovery *)Event; | ^~~~~~~~~~~~~~ UPnPBase.cpp:1238:34: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Event’ 1238 | const std::string Sid = e_event->Sid; | ^~ UPnPBase.cpp:1237:10: note: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Event’ 1237 | struct Upnp_Event *e_event = (struct Upnp_Event *)Event; | ^~~~~~~~~~ UPnPBase.cpp:1240:39: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Event’ 1240 | upnpCP->OnEventReceived(Sid, e_event->EventKey, e_event->ChangedVariables); | ^~ UPnPBase.cpp:1237:10: note: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Event’ 1237 | struct Upnp_Event *e_event = (struct Upnp_Event *)Event; | ^~~~~~~~~~ UPnPBase.cpp:1240:58: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Event’ 1240 | upnpCP->OnEventReceived(Sid, e_event->EventKey, e_event->ChangedVariables); | ^~ UPnPBase.cpp:1237:10: note: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Event’ 1237 | struct Upnp_Event *e_event = (struct Upnp_Event *)Event; | ^~~~~~~~~~ UPnPBase.cpp:1257:15: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Event_Subscribe’ 1257 | if (es_event->ErrCode != UPNP_E_SUCCESS) { | ^~ UPnPBase.cpp:1255:10: note: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Event_Subscribe’ 1255 | struct Upnp_Event_Subscribe *es_event = | ^~~~~~~~~~~~~~~~~~~~ UPnPBase.cpp:1260:24: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Event_Subscribe’ 1260 | msg.str(), es_event->ErrCode, NULL, NULL); | ^~ UPnPBase.cpp:1255:10: note: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Event_Subscribe’ 1255 | struct Upnp_Event_Subscribe *es_event = | ^~~~~~~~~~~~~~~~~~~~ UPnPBase.cpp:1290:28: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Event_Subscribe’ 1290 | GET_UPNP_STRING(es_event->PublisherUrl), | ^~ UPnPBase.cpp:43:52: note: in definition of macro ‘GET_UPNP_STRING’ 43 | #define GET_UPNP_STRING(a) UpnpString_get_String(a) | ^ UPnPBase.cpp:1283:10: note: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Event_Subscribe’ 1283 | struct Upnp_Event_Subscribe *es_event = | ^~~~~~~~~~~~~~~~~~~~ UPnPBase.cpp:1296:24: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Event_Subscribe’ 1296 | msg.str(), es_event->ErrCode, NULL, NULL); | ^~ UPnPBase.cpp:1283:10: note: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Event_Subscribe’ 1283 | struct Upnp_Event_Subscribe *es_event = | ^~~~~~~~~~~~~~~~~~~~ UPnPBase.cpp:1299:55: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Event_Subscribe’ 1299 | upnpCP->m_ServiceMap.find(GET_UPNP_STRING(es_event->PublisherUrl)); | ^~ UPnPBase.cpp:43:52: note: in definition of macro ‘GET_UPNP_STRING’ 43 | #define GET_UPNP_STRING(a) UpnpString_get_String(a) | ^ UPnPBase.cpp:1283:10: note: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Event_Subscribe’ 1283 | struct Upnp_Event_Subscribe *es_event = | ^~~~~~~~~~~~~~~~~~~~ UPnPBase.cpp:1305:30: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Event_Subscribe’ 1305 | GET_UPNP_STRING(es_event->PublisherUrl) << | ^~ UPnPBase.cpp:43:52: note: in definition of macro ‘GET_UPNP_STRING’ 43 | #define GET_UPNP_STRING(a) UpnpString_get_String(a) | ^ UPnPBase.cpp:1283:10: note: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Event_Subscribe’ 1283 | struct Upnp_Event_Subscribe *es_event = | ^~~~~~~~~~~~~~~~~~~~ UPnPBase.cpp:1326:14: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Action_Complete’ 1326 | if (a_event->ErrCode != UPNP_E_SUCCESS) { | ^~ UPnPBase.cpp:1324:10: note: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Action_Complete’ 1324 | struct Upnp_Action_Complete *a_event = | ^~~~~~~~~~~~~~~~~~~~ UPnPBase.cpp:1329:12: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Action_Complete’ 1329 | a_event->ErrCode, NULL, | ^~ UPnPBase.cpp:1324:10: note: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Action_Complete’ 1324 | struct Upnp_Action_Complete *a_event = | ^~~~~~~~~~~~~~~~~~~~ UPnPBase.cpp:1330:12: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Action_Complete’ 1330 | a_event->ActionResult); | ^~ UPnPBase.cpp:1324:10: note: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Action_Complete’ 1324 | struct Upnp_Action_Complete *a_event = | ^~~~~~~~~~~~~~~~~~~~ UPnPBase.cpp:1334:12: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Action_Complete’ 1334 | a_event->ActionResult, | ^~ UPnPBase.cpp:1324:10: note: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Action_Complete’ 1324 | struct Upnp_Action_Complete *a_event = | ^~~~~~~~~~~~~~~~~~~~ UPnPBase.cpp:1347:15: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_State_Var_Complete’ 1347 | if (sv_event->ErrCode != UPNP_E_SUCCESS) { | ^~ UPnPBase.cpp:1345:10: note: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_State_Var_Complete’ 1345 | struct Upnp_State_Var_Complete *sv_event = | ^~~~~~~~~~~~~~~~~~~~~~~ UPnPBase.cpp:1350:24: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_State_Var_Complete’ 1350 | msg.str(), sv_event->ErrCode, NULL, NULL); | ^~ UPnPBase.cpp:1345:10: note: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_State_Var_Complete’ 1345 | struct Upnp_State_Var_Complete *sv_event = | ^~~~~~~~~~~~~~~~~~~~~~~ make[3]: *** [Makefile:1557: libmuleappcore_a-UPnPBase.o] Error 1 make[2]: *** [Makefile:3260: all-recursive] Error 1 make[1]: *** [Makefile:490: all-recursive] Error 1 make: *** [Makefile:397: all] Error 2 | ||||
Steps To Reproduce | ./configure --disable-debug --enable-optimize make | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2019-11-26 14:54 | Jerboa | New Issue | |||
2019-12-02 15:25 | GonoszTopi | Fixed in Revision | => 11011 | ||
2019-12-02 15:25 | GonoszTopi | Note Added: 0003744 | |||
2019-12-02 15:25 | GonoszTopi | Status | new => resolved | ||
2019-12-02 15:25 | GonoszTopi | Resolution | open => fixed | ||
2019-12-02 15:25 | GonoszTopi | Fixed in Version | => 2.3.3 | ||
2019-12-02 15:25 | GonoszTopi | Target Version | => 2.3.3 |
Notes | |||||
|
|||||
|
|