for the record....
src/net.cpp:1118:72: error: too many arguments to function 'UPNPDev* upnpDiscover(int, const char*, const char*, int, int, int*)'
devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0, 0, 0, 0);
means that, when it goes to build, it's expecting:
upnpDiscover(int, const char*, const char*, int, int, int*)
and line number 1118 of the file net.cpp is feeding it:
upnpDiscover(int, const char*, const char*, int, int, int, int*)
So it has no clue what the last 0 is or what to do with it.