jamespetts / simutrans-extended

Sources for the Experimental branch of the popular game Simutrans
http://forum.simutrans.com/index.php?board=53.0
Other
82 stars 53 forks source link

Fails to build in current Debian Testing (13, Trixie) #670

Open malaire opened 1 month ago

malaire commented 1 month ago

When trying to build in current Debian Testing (13, Trixie) using make I get following error:

...
===> CXX network/memory_rw.cc
===> CXX network/network.cc
===> CXX network/network_address.cc
===> CXX network/network_cmd.cc
===> CXX network/network_cmd_ingame.cc
===> CXX network/network_cmd_scenario.cc
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;
      |                      ^~~