After some research I found out why I got this error. It is because I am using the latest version of the miniupnpc package. With the Version 2.2.8 they changed the function decleration for the get valid function.
Here is the change log:
VERSION 2.2.8 : released 2024/06/09
2024/05/16:
IPv6: try site-local before link-local
2024/05/08:
upnpc.c: Add -f option to upnpc program (delete multiple port redirections)
UPNP_GetValidIGD(): distinguish between not connected and connected to a
"private" network (with a reserved IP address).
Increments API_VERSION to 18
Here is the decleration before the update:
https://imgur.com/a/uUvQNbB
Here is the decleration after the update:
https://imgur.com/a/lIqRNoV
I believe it is important that the Dogecoin source code is updated or at least it is mentioned to use an older version of miniupnpc so others don't face the same issue.