Can you help fix it? UPnPBase.cpp:843:3: error: static_cast from 'int (*)(Upnp_EventType, void *, void *)' (aka 'int (*)(Upnp_EventType_e, void *, void *)') to 'Upnp_FunPtr' (aka 'int (*)(Upnp_EventType_e, const void *, void *)') is not allowed static_cast<Upnp_FunPtr>(&CUPnPControlPoint::Callback), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ UPnPBase.cpp:1155:14: error: member access into incomplete type 'struct Upnp_Discovery' if (d_event->ErrCode != UPNP_E_SUCCESS) { ^ UPnPBase.cpp:1152:10: note: forward declaration of 'Upnp_Discovery' struct Upnp_Discovery *d_event = (struct Upnp_Discovery *)Event; ^ UPnPBase.cpp:1156:38: error: member access into incomplete type 'struct Upnp_Discovery' msg << UpnpGetErrorMessage(d_event->ErrCode) << "."; ^ UPnPBase.cpp:1152:10: note: forward declaration of 'Upnp_Discovery' struct Upnp_Discovery *d_event = (struct Upnp_Discovery *)Event; ^
Created attachment 203828 [details] amule-upnp18.diff Here's a patch that fixes the build with upnp 1.8 based on the upstream PR.
Fixed in ports r499598. Thank you!
A commit references this bug: Author: tobik Date: Wed May 15 04:12:19 UTC 2019 New revision: 501682 URL: https://svnweb.freebsd.org/changeset/ports/501682 Log: net-p2p/amule*: Fix badly rebased patches from r499598 PR: 237407 Changes: head/net-p2p/amule/files/patch-src_UPnPBase.cpp head/net-p2p/amule-devel/files/patch-src_UPnPBase.cpp