New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Link against lexecinfo on FreeBSD #423
Comments
As is typical when I'm out of town, I can't connect to my BSD build slave (I'm looking forward to the day where I'm forced to actually come up with a more stable and reliable build server configuration...). I took a look through the offerings of CMake, and there's no If you want to try that and test it, then (assuming it works, which it should) push it, feel free. I saw some threads where people were having trouble getting execinfo to work on BSD, so if you want to write a quick test program to trigger a |
It turns out the solution doesn't work on all platforms (e.g. NetBSD). So instead of writing our own solution, we can just use the CMake FindBacktrace Module shipped with CMake 3+. I've backported the functionality so that we can use the module without requiring CMake 3+. In case the backtrace() functionality is not available, we use the already existing fallback. |
I made a couple of simple changes; feel free to revert them if you like. |
The build on FreeBSD results with the error:
"undefined reference to 'backtrace_symbols'"
. We need to link against-lexecinfo
at least on 10.0 and 10.1 to get it working.We can fix the problem with:
I'm not an CMake expert so maybe there is better solution or a better place to fix the issue.
The text was updated successfully, but these errors were encountered: