Skip to content
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

C module loading on windows appears to be broken #39

Open
leso-kn opened this issue Oct 27, 2023 · 0 comments
Open

C module loading on windows appears to be broken #39

leso-kn opened this issue Oct 27, 2023 · 0 comments

Comments

@leso-kn
Copy link
Contributor

leso-kn commented Oct 27, 2023

Loading native C modules is currently broken on windows as:

  1. The lua library is not present at a location where it can be seen by lua at runtime
  2. lua.exe is linked statically (not against luaxx.dll) causing "multiple lua VMs" in some occasions (e.g. when trying to load luasocket on Lua 5.2)

Example log when trying to load luasocket:

D:/a/luasocket/luasocket/.lua/bin\lua.exe: error loading module 'socket.core' from file 'C:\Users\runneradmin\AppData\Roaming/luarocks/lib/lua/5.2/socket\core.dll':
	The specified module could not be found.


stack traceback:
	[C]: in ?
	[C]: in function 'require'
	...radmin\AppData\Roaming/luarocks/share/lua/5.2/socket.lua:12: in main chunk
	[C]: in function 'require'
	mimetest.lua:1: in main chunk
	[C]: in ?
D:/a/luasocket/luasocket/.lua/bin\lua.exe: error loading module 'socket.core' from file 'C:\Users\runneradmin\AppData\Roaming/luarocks/lib/lua/5.2/socket\core.dll':
	The specified module could not be found.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant