Skip to content

Instantly share code, notes, and snippets.

@catwell
Created January 13, 2021 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save catwell/44bc95ca61c2c5529dedb162f22e47b6 to your computer and use it in GitHub Desktop.
Save catwell/44bc95ca61c2c5529dedb162f22e47b6 to your computer and use it in GitHub Desktop.
C:\Program Files (x86)\WinLua>LuaRocks\bin\luarocks.exe install luasocket
Installing https://luarocks.org/luasocket-3.0rc1-2.src.rock
luasocket 3.0rc1-2 depends on lua >= 5.1 (5.3-1 provided by VM)
wlc32.exe -O2 -c -o src/mime.o -IC:\Program Files (x86)\WinLua\Lua\5.3\include src/mime.c -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DLUASOCKET_INET_PTON -DWINVER=0x0501 -DLUASOCKET_API=__declspec(dllexport) -DMIME_API=__declspec(dllexport)
wlc32.exe -shared -o mime/core.dll src/mime.o C:\Program Files (x86)\WinLua\Lua\5.3\bin/lua53.lib -lm
wlc32.exe -O2 -c -o src/luasocket.o -IC:\Program Files (x86)\WinLua\Lua\5.3\include src/luasocket.c -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DLUASOCKET_INET_PTON -DWINVER=0x0501 -DLUASOCKET_API=__declspec(dllexport) -DMIME_API=__declspec(dllexport) -IC:\Program Files (x86)\WinLua\WLC\i686-w64-mingw32/include
In file included from src/luasocket.c:30:
src/inet.h:46:13: error: conflicting types for 'inet_ntop'
const char *inet_ntop(int af, const void *src, char *dst, socklen_t cnt);
^
C:\Program Files (x86)\WinLua\WLC\include\ws2tcpip.h:451:35: note: previous declaration is here
WINSOCK_API_LINKAGE LPCSTR WSAAPI InetNtopA(INT Family, LPCVOID pAddr, LPSTR pStringBuf, size_t StringBufSize);
^
C:\Program Files (x86)\WinLua\WLC\include\ws2tcpip.h:448:19: note: expanded from macro 'InetNtopA'
#define InetNtopA inet_ntop
^
In file included from src/luasocket.c:30:
src/inet.h:47:5: warning: 'inet_pton' redeclared without 'dllimport' attribute: previous 'dllimport' ignored
[-Winconsistent-dllimport]
int inet_pton(int af, const char *src, void *dst);
^
C:\Program Files (x86)\WinLua\WLC\include\ws2tcpip.h:458:32: note: previous declaration is here
WINSOCK_API_LINKAGE INT WSAAPI InetPtonA(INT Family, LPCSTR pStringBuf, PVOID pAddr);
^
C:\Program Files (x86)\WinLua\WLC\include\ws2tcpip.h:455:19: note: expanded from macro 'InetPtonA'
#define InetPtonA inet_pton
^
C:\Program Files (x86)\WinLua\WLC\include\ws2tcpip.h:458:1: note: previous attribute is here
WINSOCK_API_LINKAGE INT WSAAPI InetPtonA(INT Family, LPCSTR pStringBuf, PVOID pAddr);
^
C:\Program Files (x86)\WinLua\WLC\include\winsock2.h:36:29: note: expanded from macro 'WINSOCK_API_LINKAGE'
#define WINSOCK_API_LINKAGE DECLSPEC_IMPORT
^
C:\Program Files (x86)\WinLua\WLC\include\winnt.h:154:37: note: expanded from macro 'DECLSPEC_IMPORT'
#define DECLSPEC_IMPORT __declspec (dllimport)
^
1 warning and 1 error generated.
Error: Build error: Failed compiling object src/luasocket.o
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment