Skip to content

build failure with pupnp 1.18.x (API change) #431

Description

@gcomes

Since the introduction of a API change with pupnp/pupnp@77d9e2745f249e3b947c2dbb0475543315c1918g
amule fails to build with the error:

cd build/src && g++ -DNDEBUG -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE="" -D__WXGTK__ -DwxUSE_GUI=0 -Ibuild -Ibuild/src/libs/ec/cpp -Isrc/include -Isrc/libs -isystem /usr/lib64/wx/include/gtk3-unicode-3.2 -isystem /usr/include/wx-3.2 -isystem /usr/include/upnp -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -O3 -DNDEBUG -MD -MT src/CMakeFiles/muleappcommon.dir/UPnPBase.cpp.o -MF CMakeFiles/muleappcommon.dir/UPnPBase.cpp.o.d -o CMakeFiles/muleappcommon.dir/UPnPBase.cpp.o -c src/UPnPBase.cpp
src/UPnPBase.cpp: In constructor ‘CUPnPControlPoint::CUPnPControlPoint(short unsigned int)’:
src/UPnPBase.cpp:845:17: error: invalid ‘static_cast’ from type ‘int ()(Upnp_EventType_e, const void, void*)’ to type ‘Upnp_FunPtr’ {aka ‘int ()(Upnp_EventType_e, void, void*)’}
845 | static_cast<Upnp_FunPtr>(&CUPnPControlPoint::Callback),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [src/CMakeFiles/muleappcommon.dir/build.make:82: src/CMakeFiles/muleappcommon.dir/UPnPBase.cpp.o] Error 1
make[2]: Leaving directory 'build'
make[1]: *** [CMakeFiles/Makefile2:1060: src/CMakeFiles/muleappcommon.dir/all] Error 2
make[1]: Leaving directory 'build'
make: *** [Makefile:149: all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions