Unable to build Janus https://github.com/meetecho/janus-gateway in Ubuntu 22.04/
I had openssl 3.0.2 preinstalled in my system.
I built Janus using
sh autogen.sh
./configure --prefix=/opt/janus
make
Got following error:
/usr/bin/ld: janus-dtls.o: undefined reference to symbol 'SSL_CTX_ctrl@@OPENSSL_3.0.0'
/usr/bin/ld: /lib/x86_64-linux-gnu/libssl.so.3: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status`
I need to build Janus in my Ubuntu 22.04
For the
DSO missing(Dynamic linker), you need to add this to your build commands-lpthread.For the
undefined reference, it's either you completely forgot to add OpenSSL lib to your linking command, or the order is not correct.