wahern / cqueues

Continuation Queues: Embeddable asynchronous networking, threading, and notification framework for Lua on Unix.
http://25thandclement.com/~william/projects/cqueues.html
MIT License
244 stars 37 forks source link

cqueues doesn't work on FreeBSD 13.1 #255

Open duncan-bayne opened 1 year ago

duncan-bayne commented 1 year ago

I've used luarocks to install http, which in turn fetches cqueues as a dependency. However, when I run my Lua script:

lua54: error loading module '_cqueues' from file '/home/duncan/code/halp/lua-modules/lib/lua/5.4/_cqueues.so':
        /home/duncan/code/halp/lua-modules/lib/lua/5.4/_cqueues.so: Undefined symbol "inotify_init"
stack traceback:
        [C]: in ?
        [C]: in function 'require'
        ...e/duncan/code/halp/lua-modules/share/lua/5.4/cqueues.lua:2: in function <...e/duncan/code/halp/lua-modules/share/lua/5.4/cqueues.lua:1>
        (...tail calls...)
        [C]: in function 'require'
        ...ncan/code/halp/lua-modules/share/lua/5.4/http/server.lua:1: in main chunk
        [C]: in function 'require'
        ./halp.lua:12: in main chunk
        [C]: in ?

This is probably related to FreeBSD not supporting inotify; it's a Linux kernel feature not supported by FreeBSD.

Versions of things: