The International Simutrans Forum

 

Author Topic: Problem to make nightlys for Windows  (Read 2274 times)

0 Members and 1 Guest are viewing this topic.

Offline wernieman

  • Devotees (Inactive)
  • *
  • Posts: 713
    • Werniemans-Webside (only German)
Problem to make nightlys for Windows
« on: May 08, 2014, 01:54:32 PM »
Hello,

since (3?)days, the nightly Server could not make nightlys for Windows (winsdl/wingdl)
Code: [Select]
===> CXX network/memory_rw.cc
===> CXX network/network.cc
network/network.cc: In Funktion »SOCKET network_open_address(const char*, const char*&)«:
network/network.cc:224:64: Fehler: »getaddrinfo« wurde in diesem Gültigkeitsbereich nicht definiert
network/network.cc:238:65: Fehler: »getaddrinfo« wurde in diesem Gültigkeitsbereich nicht definiert
network/network.cc:261:126: Fehler: »getnameinfo« wurde in diesem Gültigkeitsbereich nicht definiert
network/network.cc:298:129: Fehler: »getnameinfo« wurde in diesem Gültigkeitsbereich nicht definiert
network/network.cc:318:23: Fehler: »freeaddrinfo« wurde in diesem Gültigkeitsbereich nicht definiert
network/network.cc: In Funktion »bool network_init_server(int)«:
network/network.cc:394:66: Fehler: »getaddrinfo« wurde in diesem Gültigkeitsbereich nicht definiert
network/network.cc:418:102: Fehler: »getnameinfo« wurde in diesem Gültigkeitsbereich nicht definiert
network/network.cc:457:24: Fehler: »freeaddrinfo« wurde in diesem Gültigkeitsbereich nicht definiert
make: *** [build/default/network/network.o] Fehler 1
See http://simutrans-germany.com/stn/data/compile.log.wingdi.txt

Edit:
Last build without a Problem was on 04.05.

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 5454
  • Languages: EN, NO
Re: Problem to make nightlys for Windows
« Reply #1 on: May 08, 2014, 02:58:33 PM »
We've been discussing this on the programmer board. You can either define USE_IP4_ONLY, or try to override WINVER to 0x0501. The build system sets WINVER to _WIN32_WINNT_WINXP, but _WIN32_WINNT_WINXP isn't defined in older MinGW32 headers. Newer versions of MinGW32 build fine, but the resulting program will crash unless a workaround is applied to simsys_s.cc and simsys_w.cc. MingGW64 may or may not work, I haven't tested. Changing the build system to use 0x0501 rather than the symbolic constrant has been suggested, but apparently not done.

Offline wernieman

  • Devotees (Inactive)
  • *
  • Posts: 713
    • Werniemans-Webside (only German)
Re: Problem to make nightlys for Windows
« Reply #2 on: May 08, 2014, 06:06:06 PM »
Can I define USE_IP4_ONLY in the makefile?

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 5454
  • Languages: EN, NO
Re: Problem to make nightlys for Windows
« Reply #3 on: May 08, 2014, 06:52:05 PM »
Can I define USE_IP4_ONLY in the makefile?

Yes, but using FLAGS = -DUSE_IP4_ONLY in config.default (or config.whatever_you_call_it) is less intrusive.

Offline wernieman

  • Devotees (Inactive)
  • *
  • Posts: 713
    • Werniemans-Webside (only German)
Re: Problem to make nightlys for Windows
« Reply #4 on: May 08, 2014, 07:14:22 PM »
O.K. .....  Thanks

(auf Deutsch: Ich glaube, ich bin gerade etwas blöde ...)

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9438
  • Languages: De,EN,JP
Re: Problem to make nightlys for Windows
« Reply #5 on: May 08, 2014, 10:39:54 PM »
But maybe just define an appropriate winver for using IPv6 is better ...

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 5454
  • Languages: EN, NO
Re: Problem to make nightlys for Windows
« Reply #6 on: May 09, 2014, 04:59:02 AM »
But maybe just define an appropriate winver for using IPv6 is better ...

This should be done as TurfIt suggested then. Even if overriding it with another -D in FLAGS can be reasoned to be reliable, it is ugly to define WINVER twice on the command line passed to gcc. Local modification to Makefile will cause occasional merge conflicts, which is bad on an automated build system.

Offline wernieman

  • Devotees (Inactive)
  • *
  • Posts: 713
    • Werniemans-Webside (only German)
Re: Problem to make nightlys for Windows
« Reply #7 on: May 13, 2014, 01:21:11 PM »
Yes .. automatic patch of the Makefile is on the nigtly-Server not .... good.

And, at the Moment, I don´t have enough time, to administrate the Server :o(