That’s not a platform I’m familiar with or have experience with. It’s entirely possible that stuff is lacking in an unexpected fashion resulting in the expectation of TLS support being present being incorrect.
It sounds like your environment is just not… right. That should only happen if the headers say that PJSIP was built with OpenSSL support when it wasn’t.
It appears that optimization is removing global symbols from the library, as enabling DONT_OPTIMIZE solves the missing symbol issue. I’ve opened an issue on Jira with the particulars. I’d ask the OP to enable DONT_OPTIMIZE and see if that solves the issue for them, too.
sorry for my late reply. I gave up and just used the asterisk packages available in the raspberry repositories. While it is certainly not the newest release, it just works without the many pitfalls.