-
Notifications
You must be signed in to change notification settings - Fork 633
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
Added windows patch for mime.core to rockspec #433
base: master
Are you sure you want to change the base?
Conversation
besides this change, can you also test with the commented-out line enabled again? |
@Tieske, it looks like I still get an error.
|
in the generated gcc command you have Seems you have something in your system setup that still tries to include that. |
It looks like lines 397 and 400 of MinGW's // line 397
#define InetNtopA inet_ntop
// line 400
WINSOCK_API_LINKAGE LPCSTR WSAAPI InetNtopA(INT Family, LPCVOID pAddr, LPSTR pStringBuf, size_t StringBufSize); The Commenting out Lines 47 to 50 in 95b7efa
So from this conflict, I tried defining typedef int socklen_t; In Win32's version of https://learn.microsoft.com/en-us/windows/win32/api/ws2tcpip/nf-ws2tcpip-inet_ntop
Searching through LuaSocket shows that there is no implementation of Edit: That might conflict with Linux implementations, looking at man7.org's signature. https://man7.org/linux/man-pages/man3/inet_ntop.3.html #include <arpa/inet.h>
const char *inet_ntop(int af, const void *restrict src, char dst[restrict .size], socklen_t size); Then again, those implementations don't have |
I cannot for the life of me reproduce this. I have tried MinGW compilers (TDM releases), just installed and tried with Msys2 based MinGW toolchains (universal crt), but to no avail. What toolchains do you folks use? How did you install them? |
You can try running this script to get a reproduction of my environment, I think. This expects you already have 7-zip and LuaRocks 3.11.1 installed and in curl https://nuwen.net/files/mingw/mingw-19.0.exe -o mingw-19.0.exe # get the nuwen distro
7z x mingw-19.0.exe -omingw-19-0 # extract with 7-zip
luarocks config variables.CC "$(pwd)/mingw-19-0/MinGW/bin/gcc.exe" # set compiler and linker
luarocks config variables.LD "$(pwd)/mingw-19-0/MinGW/bin/gcc.exe"
luarocks make ./luasocket-scm-3.rockspec # make the SCM For something more manual:
With |
How did you install LuaRocks in that case? |
I think I just downloaded the standalone 64-bit binary and put it in my |
I can confirm the patch with This is before and after applying it. (using winlibs GCC)
I had also just downloaded the standalone 64-bit binary and put it in my path. |
I still have the problem after adding :modules["mime.core"].libdirs = {},
|
sorry, i think i had made a mistake , i put the code in
|
I made a very bad typo in this reproduction comment #433 (comment):
This reproduction works with |
Closes #429.
I made sure to modify the scm rockspec this time :)
I'm assuming this needs confirmation from another Windows user and testing on *nix platforms like before.