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

Error when building luarpc #173

Open
JohnTordur opened this issue Mar 25, 2024 · 1 comment
Open

Error when building luarpc #173

JohnTordur opened this issue Mar 25, 2024 · 1 comment

Comments

@JohnTordur
Copy link

When trying to build luarpc, the build errors.

src/modules/bit.c:43:8: error: ‘s64’ undeclared (first use in this function)
   43 |   ( ( (s64)luaL_checknumber((L), (n))) & 0x0ffffffff  )

I tried to declare it like this in bit.c

/* Quickfix */
typedef signed long long s64;

This builds the projet, but I'm unsure if it is the proper solution?

@bogdanm
Copy link
Member

bogdanm commented Mar 25, 2024

This is a bit delicate. The code was meant to be built in 32 bit mode and I just noticed that the required compilation flag is missing in rpc-lua.lua. I fixed that in the last commit, but it makes it incompatible with Apple silicon builds, since they don't support 32 bit mode. I'd try Linux on an Intel machine if possible.

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

2 participants