net/libwebsockets and sysutils/ttyd

From: Jeff Schmidt <jeff.jschmidt_at_gmail.com>
Date: Tue, 21 Feb 2023 22:56:50 UTC
It looks like yesterday's change to libwebsockets has broken the build of
ttyd.

===>  Building for ttyd-1.7.3
[100% 1/1] : && /usr/bin/cc -O2 -pipe  -fstack-protector-strong
-fno-strict-aliasing -D_GNU_SOURCE -O2 -pipe  -fstack-protector-strong
-fno-strict-aliasing  -DNDEBUG -fstack-protector-strong
CMakeFiles/ttyd.dir/src/utils.c.o CMakeFiles/ttyd.dir/src/pty.c.o
CMakeFiles/ttyd.dir/src/protocol.c.o CMakeFiles/ttyd.dir/src/http.c.o
CMakeFiles/ttyd.dir/src/server.c.o -o ttyd  -Wl,-rpath,/usr/local/lib:  -lz
 /usr/local/lib/libwebsockets.a  /usr/local/lib/libwebsockets.so.19
 /usr/local/lib/libjson-c.so  /usr/local/lib/libuv.so  -lssl  -lcrypto
 -lutil  -lz && :
FAILED: ttyd
: && /usr/bin/cc -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing
-D_GNU_SOURCE -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing
 -DNDEBUG -fstack-protector-strong CMakeFiles/ttyd.dir/src/utils.c.o
CMakeFiles/ttyd.dir/src/pty.c.o CMakeFiles/ttyd.dir/src/protocol.c.o
CMakeFiles/ttyd.dir/src/http.c.o CMakeFiles/ttyd.dir/src/server.c.o -o ttyd
 -Wl,-rpath,/usr/local/lib:  -lz  /usr/local/lib/libwebsockets.a
 /usr/local/lib/libwebsockets.so.19  /usr/local/lib/libjson-c.so
 /usr/local/lib/libuv.so  -lssl  -lcrypto  -lutil  -lz && :
ld: error: undefined symbol: pthread_create
>>> referenced by threadpool.c
>>>               threadpool.c.o:(lws_threadpool_create) in archive
/usr/local/lib/libwebsockets.a
cc: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
*** Error code 1

Stop.
make: stopped in /usr/ports/sysutils/ttyd

Let me know if there is anything else I can provide.

-- 
Jeff Schmidt
KC9WSJ @ EN52wf