RetroArch icon indicating copy to clipboard operation
RetroArch copied to clipboard

Runtime error on Windows XP SP3

Open PseudoDistant opened this issue 3 years ago • 2 comments

First and foremost consider this:

  • Only RetroArch bugs should be filed here. Not core bugs or game bugs
  • This is not a forum or a help section, this is strictly developer oriented

Description

Runtime error on Windows XP SP3

The procedure entry point WSAPoll could not be located in the dynamic link library WS2_32.dll

I am using the Windows XP/Vista build from the Retroarch website

Expected behavior

Retroarch starting

Actual behavior

Retroarch doesn't start, instead opening a dialog window stating "The procedure entry point WSAPoll could not be located in the dynamic link library WS2_32.dll"

Steps to reproduce the bug

  1. Install Retroarch on Windows XP SP3 (Installer or download, happens with either)
  2. Attempt to start Retroarch

Environment information

  • OS: Windows XP SP3 (Version 5.1.2600)

PseudoDistant avatar Oct 05 '22 18:10 PseudoDistant

This should deal with the issue I hope -

https://github.com/libretro/RetroArch/commit/d832ce15d6eccdd40953213321142a2fcca91b3b

What I have done, is only selectively define NETWORK_HAVE_POLL for platform builds that target Vista and above. So the regular Mingw-w64 version, MSVC2012, 2013, 2015, 2017, 2019, and UWP versions should all have poll support through WSAPoll. Anything below (VC6/MSVC2003/MSVC2005/MSVC2008/MSVC2010) will resort to select() instead.

EDIT: Reverted, see below for new implementation.

LibretroAdmin avatar Oct 05 '22 21:10 LibretroAdmin

Made a new implementation that is less problematic I think - https://github.com/libretro/RetroArch/commit/b3bb62881a8b0bfc42bce0501ff55cd6dfe07d96

Check if this solves your issue

LibretroAdmin avatar Oct 05 '22 23:10 LibretroAdmin

Oke, do I have to build it on the XP machine or can I build it on a Linux machine?

(The XP machine has a Turion 64 X2, it'll take like 4 decades.)

PseudoDistant avatar Oct 06 '22 15:10 PseudoDistant

Do whatever you usually do I guess.

Alternatively, get the latest nightly on the buildbot.

LibretroAdmin avatar Oct 06 '22 17:10 LibretroAdmin

Yep, working now. :>

Thank

PseudoDistant avatar Oct 07 '22 15:10 PseudoDistant

Can confirm, it is indeed working.

PseudoDistantViaXP avatar Oct 07 '22 16:10 PseudoDistantViaXP