-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
Force openssl in CMake targets #348
base: dev
Are you sure you want to change the base?
Conversation
I think this error should be solved in Rizin itself. It can be reproduced with this small test:
test_rizin.c #include <stdio.h>
#include <rz_util.h>
int main(int argc, char **argv) {
char *s = rz_str_newf("core %p\n", argv);
printf("s = %s\n", s);
free(s);
return 0;
}
I'm not a Cmake guru unfortunately so I was never able to fix it myself, but it should likely be fixed somewhere in https://github.com/rizinorg/rizin/blob/dev/librz/RzModulesConfig.cmake.in . |
@ret2libc Thanks for looking into it. I agree this should be fixed in core Rizin. I'll look into it and modify the PR (or just close this one). Expect it sometime in the next 1-2 days. Many thanks for taking a look at it ❤️ |
Sure thing. I actually have some pending changes to fix this thing in Rizin itself. I was able to get some help to fix it once and for all. Still need to adjust a few things and push the PR though. |
@ret2libc could you please send a PR with whatever changes you have? Even if it's incomplete |
Fixes #343
Hey guys. I'm having the same issue as #343. Here's the repro steps. My machine is MacOS M1 Monterey 12.6.6 and I'm on the latest commit as of writing:
The build fails with the following error:
This PR fixes tells CMake to require OpenSSL in the CMake targets, which would add the necessary compile flags (e.g.,
pkg-config --cflags openssl
).