Created
May 2, 2020 21:26
-
-
Save ergodicbreak/ec929794cebe830e09d0de73a1346124 to your computer and use it in GitHub Desktop.
LuaRocks install of luasocket
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\Users\george>luarocks 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) | |
C:\Users\george\bin\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\gcc.exe -O2 -c -o src/mime.o -IC:\Users\george\bin\Lua\Lua-5.3.5\include src/mime.c -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DLUASOCKET_INET_PTON -DWINVER=0x0501 -DLUASOCKET_API=__declspec(dllexport) -DMIME_API=__declspec(dllexport) | |
C:\Users\george\bin\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\gcc.exe -shared -o mime/core.dll src/mime.o C:\Users\george\bin\Lua\Lua-5.3.5/lua53.dll -lm | |
C:\Users\george\bin\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\gcc.exe -O2 -c -o src/luasocket.o -IC:\Users\george\bin\Lua\Lua-5.3.5\include src/luasocket.c -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DLUASOCKET_INET_PTON -DWINVER=0x0501 -DLUASOCKET_API=__declspec(dllexport) -DMIME_API=__declspec(dllexport) -Ic:/windows/system32/include | |
C:\Users\george\bin\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\gcc.exe -O2 -c -o src/timeout.o -IC:\Users\george\bin\Lua\Lua-5.3.5\include src/timeout.c -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DLUASOCKET_INET_PTON -DWINVER=0x0501 -DLUASOCKET_API=__declspec(dllexport) -DMIME_API=__declspec(dllexport) -Ic:/windows/system32/include | |
C:\Users\george\bin\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\gcc.exe -O2 -c -o src/buffer.o -IC:\Users\george\bin\Lua\Lua-5.3.5\include src/buffer.c -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DLUASOCKET_INET_PTON -DWINVER=0x0501 -DLUASOCKET_API=__declspec(dllexport) -DMIME_API=__declspec(dllexport) -Ic:/windows/system32/include | |
C:\Users\george\bin\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\gcc.exe -O2 -c -o src/io.o -IC:\Users\george\bin\Lua\Lua-5.3.5\include src/io.c -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DLUASOCKET_INET_PTON -DWINVER=0x0501 -DLUASOCKET_API=__declspec(dllexport) -DMIME_API=__declspec(dllexport) -Ic:/windows/system32/include | |
C:\Users\george\bin\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\gcc.exe -O2 -c -o src/auxiliar.o -IC:\Users\george\bin\Lua\Lua-5.3.5\include src/auxiliar.c -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DLUASOCKET_INET_PTON -DWINVER=0x0501 -DLUASOCKET_API=__declspec(dllexport) -DMIME_API=__declspec(dllexport) -Ic:/windows/system32/include | |
C:\Users\george\bin\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\gcc.exe -O2 -c -o src/options.o -IC:\Users\george\bin\Lua\Lua-5.3.5\include src/options.c -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DLUASOCKET_INET_PTON -DWINVER=0x0501 -DLUASOCKET_API=__declspec(dllexport) -DMIME_API=__declspec(dllexport) -Ic:/windows/system32/include | |
C:\Users\george\bin\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\gcc.exe -O2 -c -o src/inet.o -IC:\Users\george\bin\Lua\Lua-5.3.5\include src/inet.c -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DLUASOCKET_INET_PTON -DWINVER=0x0501 -DLUASOCKET_API=__declspec(dllexport) -DMIME_API=__declspec(dllexport) -Ic:/windows/system32/include | |
C:\Users\george\bin\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\gcc.exe -O2 -c -o src/except.o -IC:\Users\george\bin\Lua\Lua-5.3.5\include src/except.c -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DLUASOCKET_INET_PTON -DWINVER=0x0501 -DLUASOCKET_API=__declspec(dllexport) -DMIME_API=__declspec(dllexport) -Ic:/windows/system32/include | |
C:\Users\george\bin\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\gcc.exe -O2 -c -o src/select.o -IC:\Users\george\bin\Lua\Lua-5.3.5\include src/select.c -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DLUASOCKET_INET_PTON -DWINVER=0x0501 -DLUASOCKET_API=__declspec(dllexport) -DMIME_API=__declspec(dllexport) -Ic:/windows/system32/include | |
C:\Users\george\bin\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\gcc.exe -O2 -c -o src/tcp.o -IC:\Users\george\bin\Lua\Lua-5.3.5\include src/tcp.c -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DLUASOCKET_INET_PTON -DWINVER=0x0501 -DLUASOCKET_API=__declspec(dllexport) -DMIME_API=__declspec(dllexport) -Ic:/windows/system32/include | |
C:\Users\george\bin\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\gcc.exe -O2 -c -o src/udp.o -IC:\Users\george\bin\Lua\Lua-5.3.5\include src/udp.c -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DLUASOCKET_INET_PTON -DWINVER=0x0501 -DLUASOCKET_API=__declspec(dllexport) -DMIME_API=__declspec(dllexport) -Ic:/windows/system32/include | |
C:\Users\george\bin\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\gcc.exe -O2 -c -o src/wsocket.o -IC:\Users\george\bin\Lua\Lua-5.3.5\include src/wsocket.c -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DLUASOCKET_INET_PTON -DWINVER=0x0501 -DLUASOCKET_API=__declspec(dllexport) -DMIME_API=__declspec(dllexport) -Ic:/windows/system32/include | |
C:\Users\george\bin\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\gcc.exe -shared -o socket/core.dll src/luasocket.o src/timeout.o src/buffer.o src/io.o src/auxiliar.o src/options.o src/inet.o src/except.o src/select.o src/tcp.o src/udp.o src/wsocket.o -Lc:/windows/system32 -lws2_32 C:\Users\george\bin\Lua\Lua-5.3.5/lua53.dll -lm | |
C:/Users/george/bin/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib/dllcrt2.o:crtdll.c:(.text+0x16d): undefined reference to `_execute_onexit_table' | |
C:/Users/george/bin/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib/dllcrt2.o:crtdll.c:(.text+0x8): undefined reference to `_initialize_onexit_table' | |
C:/Users/george/bin/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib/dllcrt2.o:crtdll.c:(.text+0x38b): undefined reference to `_register_onexit_function' | |
src/inet.o:inet.c:(.text+0x74b): undefined reference to `gai_strerrorA' | |
src/inet.o:inet.c:(.text+0x8bb): undefined reference to `gai_strerrorA' | |
src/udp.o:udp.c:(.text+0x733): undefined reference to `gai_strerrorA' | |
src/udp.o:udp.c:(.text+0x9fe): undefined reference to `gai_strerrorA' | |
src/wsocket.o:wsocket.c:(.text+0xec6): undefined reference to `gai_strerrorA' | |
C:/Users/george/bin/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingw32.a(lib64_libmingw32_a-pseudo-reloc.o):pseudo-reloc.c:(.text.unlikely+0x28): undefined reference to `__acrt_iob_func' | |
C:/Users/george/bin/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingw32.a(lib64_libmingw32_a-pseudo-reloc.o):pseudo-reloc.c:(.text.unlikely+0x51): undefined reference to `__acrt_iob_func' | |
collect2.exe: error: ld returned 1 exit status | |
Error: Build error: Failed compiling module socket/core.dll | |
C:\Users\george> |
There is a problem with the include directory. -Ic:/windows/system32/include
Getting this error too, any ideas?
@Arian96669 @KostyaCholak see my issue at lunarmodules/luasocket#308
I also opened an issue at luarocks/luarocks#1190 but that never went anywhere it seems.
There is a problem with the include directory. -Ic:/windows/system32/include
@linse073 yes that's it. Do you know why that's an issue? I never got an answer from Luarocks.
Hava you solved this problem or have any idea?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Were you ever able to solve this? I'm getting the exact same error.