Hey kids! If you’re statically linking OpenSSL on FreeBSD, don’t forget to link in -lthr as otherwise it will crash and simply give you a hard time. This has been a public service announcement by those who sometimes use static linking.
I noticed that fbsd 12's base openssl links with libthr by default (when dynamic linking), but I have not investigated why that is the case or whether it can be fixed. There are many cases where linking libthr has just been blindly added as a workaround
-
-
In the case of libcrypto, the commit "link libcrypto with pthread" (r338816) has absolutely no explanation of why this was done or why it might be needed.
-
However, the bug that
@koobs linked to above is only relevant for c++. A number of libthr bugs have been fixed since 12.0 though.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.