The Lua port was changed to link against pthread http://svnweb.freebsd.org/ports?view=revision&revision=324286 But the luajit one was not. Unfortunately that means that if you open a library linked to pthread in luajit it just hangs forever in a kernel mutex which is not very helpful. This means that I have to compile my own luajit instead, and not use the one that pkg installs which is annoying. (or someone could fix the underlying issue of an executable not linked to pthread not being able to dlopen a library linked to it...)
Maintainer feedback?
Created attachment 190597 [details] svn-diff-luajit-pthread As option?
ping!
Hi Sergey, Is this something we should fix or should we direct users to openresty fork as that seems to be more active?
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=68954edbe01044a7d72eeac0f103cc4c1ee633ee commit 68954edbe01044a7d72eeac0f103cc4c1ee633ee Author: Sergey A. Osokin <osa@FreeBSD.org> AuthorDate: 2022-01-05 22:20:47 +0000 Commit: Sergey A. Osokin <osa@FreeBSD.org> CommitDate: 2022-01-05 22:20:47 +0000 lang/luajit: link with pthread Bump PORTREVISION. PR: 191476 lang/luajit/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
Committed with some modifications, thanks!