This means you have an older version of miniupnpc. We recently upgraded our embedded copy of miniupnpc to 1.6, if you are having compile issues then your library is not the new version that we updated. For windows users they require downloading the updated win32_deps archive on sf, for linux / mac users they can use the flags below if they are using a dynamic version of the library to match the version they have on their OS. Unfortunately miniupnpc does not properly have version macro's etc making it impossible to properly detect the version on a developers system.
The cmake flags are all documented on the wiki:
https://docs.megaglest.org/MG/Linux_CompilingI have pasted the relevant info for convenience here.
-DMINIUPNPC_VERSION_PRE1_6=Off
-DMINIUPNPC_VERSION_PRE1_5=Off
If your miniupnpc library is pre 1.6 you must set that cmake variable to ON (and if is pre 1.5 additionally set that variable also)
-DMINIUPNPC_VERSION_PRE1_6=On
-DMINIUPNPC_VERSION_PRE1_5=On