lipp / lipp/lua-websockets

ERROR_NOT_ENOUGH_MEMORY

Open
#111 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
419
Forks
117
PR merge metrics
No merged PRs in 30d

Description

After this command
`luarocks make rockspecs/lua-websockets-scm-1.rockspec`

I got this error

> In file included from src/wsocket.h:11:0,
from src/socket.h:18,
from src/wsocket.c:10:
src/wsocket.c: In function 'socket_gaistrerror':
src/wsocket.c:417:14: error: 'ERROR_NOT_ENOUGH_MEMORY' undeclared (first use in this function)
case EAI_MEMORY: return "memory allocation failure";
^
src/wsocket.c:417:14: note: each undeclared identifier is reported only once for each function it appears in
Error: Failed installing dependency: https://luarocks.org/luasocket-3.0rc1-2.src.rock - Build error: Failed compiling object src/wsocket.o

Any idea ?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing `luarocks make rockspecs/lua-websockets-scm-1.rockspec` and inspect the dependency build failure in `src/wsocket.c` around line 417. Check how the `luasocket-3.0rc1-2.src.rock` dependency reaches that code; done means the dependency builds and the rockspec installs without the reported undeclared-identifier error.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, lua
Domain
build-system, networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.