Issues starting libjanus_websockets

Any time I am starting Janus, websocket fails in starting… That’s the error I get:

[ERR] [janus.c:main:5836] Couldn’t load transport plugin ‘libjanus_websockets.so’: /opt/janus/lib/janus/transports/libjanus_websockets.so: undefined symbol: lws_validity_confirmed

I followed the README instructions. I tried both master and stable versions of libwebsockets. Reinstalled janus from zero several times and still I am not successful
Any ideas what could be the issue?

Try doing a

ldd /opt/janus/lib/janus/transports/libjanus_websockets.so

That will show the plugin dependencies, and whether it can find the related libraries. Good chances are it can’t find libwebsockets where you installed it.