Re: [Mingw-w64-public] Patch WS2 Inline Functions

2021-07-22 Thread Martin Storsjö
On Thu, 22 Jul 2021, Jonathan Marler wrote: The linker errors were found by a Zig user and I took up the challenge to fix it (original issue here: https://github.com/ziglang/zig/issues/9364) Zig's using clang under the hood and on top of it, it adds automatic dynamic compilation of various libc

Re: [Mingw-w64-public] Patch WS2 Inline Functions

2021-07-22 Thread Jonathan Marler
The linker errors were found by a Zig user and I took up the challenge to fix it (original issue here: https://github.com/ziglang/zig/issues/9364) Zig's using clang under the hood and on top of it, it adds automatic dynamic compilation of various libc implementations/bindings. For windows it dyna

Re: [Mingw-w64-public] Patch WS2 Inline Functions

2021-07-22 Thread Martin Storsjö
Hi, On Thu, 22 Jul 2021, Jonathan Marler wrote: Yes I think the problem was with my environment.  I had libws2_32.lib available but did not have libws2_32.a, so I was missing the symbols coming from the source files in ming2-w64-crt.  Thanks for the clarification. Hmm, ok, that's definitely y

Re: [Mingw-w64-public] Patch WS2 Inline Functions

2021-07-22 Thread Jonathan Marler
Thanks Martin, Yes I think the problem was with my environment. I had libws2_32.lib available but did not have libws2_32.a, so I was missing the symbols coming from the source files in ming2-w64-crt. Thanks for the clarification. On Thu, Jul 22, 2021 at 3:33 AM Martin Storsjö wrote: > On Wed,

[Mingw-w64-public] [PATCH] crt: Add missing exports in ws2_32.def

2021-07-22 Thread Biswapriyo Nath
From 669dd778642674b8522daa4c969c0413badc7be4 Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Thu, 22 Jul 2021 19:57:06 +0530 Subject: [PATCH] crt: Add missing exports in ws2_32.def Signed-off-by: Biswapriyo Nath --- mingw-w64-crt/lib-common/ws2_32.def.in | 1 + mingw-w64-crt/lib32/ws2_3

Re: [Mingw-w64-public] Patch WS2 Inline Functions

2021-07-22 Thread Martin Storsjö
On Wed, 21 Jul 2021, Jonathan Marler wrote: Yeah definitely revert, those redefinition errors are bad news. The problem though is that I still get these undefined symbol errors even with -lws2_32 with Clang.  Forgive me if I'm mistaken here, but in order for these symbols to be available, don't