Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

During compilation, I get an error that the number of arguments in UPNP_GetVildIGD does not match. #672

Open
soukouki opened this issue Nov 2, 2024 · 1 comment

Comments

@soukouki
Copy link

soukouki commented Nov 2, 2024

During compilation, I get an error that the number of arguments in UPNP_GetVildIGD does not match. The error message is as follows.

network/network.cc: In function ‘bool prepare_for_server(char*, char*, int)’:
network/network.cc:997:33: error: too few arguments to function ‘int UPNP_GetValidIGD(UPNPDev*, UPNPUrls*, IGDdatas*, char*, int, char*, int)’
  997 |                 UPNP_GetValidIGD( devlist, &urls, &data, lanaddr, sizeof(lanaddr) );
      |                 ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from network/network.cc:970:
/usr/include/miniupnpc/miniupnpc.h:122:1: note: declared here
  122 | UPNP_GetValidIGD(struct UPNPDev * devlist,
      | ^~~~~~~~~~~~~~~~
network/network.cc: In function ‘void remove_port_forwarding(int)’:
network/network.cc:1056:33: error: too few arguments to function ‘int UPNP_GetValidIGD(UPNPDev*, UPNPUrls*, IGDdatas*, char*, int, char*, int)’
 1056 |                 UPNP_GetValidIGD( devlist, &urls, &data, lanaddr, sizeof(lanaddr) );
      |                 ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/miniupnpc/miniupnpc.h:122:1: note: declared here
  122 | UPNP_GetValidIGD(struct UPNPDev * devlist,
      | ^~~~~~~~~~~~~~~~
make: *** [common.mk:57: build/default/network/network.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from network/../gui/components/gui_aligned_container.h:10,
                 from network/../gui/gui_frame.h:15,
                 from network/../gui/player_frame_t.h:12,
                 from network/network_cmd_ingame.cc:24:
network/../gui/components/gui_container.h: In member function ‘bool gui_container_t::set_checkered(bool)’:
network/../gui/components/gui_container.h:45:22: warning: unused variable ‘old’ [-Wunused-variable]
   45 |                 bool old = checkered;
      |                      ^~~

My compile-time environment is as follows:

  • OS: Arch Linux x86_64
  • gcc version 14.2.1 20240910 (GCC)

Since I don't know which of these UPnP packagesis actually used, I will include all of the packages that look like it that are installed.

extra/gupnp-igd 1.6.0-1 (28.8 KiB 115.6 KiB) (Installed)
    A library to handle UPnP IGD port mapping
extra/gupnp 1:1.6.7-1 (125.2 KiB 713.8 KiB) (Installed)
    GObject-based UPNP framework
extra/miniupnpc 2.2.8-1 (45.0 KiB 135.8 KiB) (Installed)
    Small UPnP client library/tool to access Internet Gateway Devices
@TransshipmentEnvoy
Copy link

try downgrade to miniupnpc-2.2.7 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants