Skip to content
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

Can't find OpenSSL includes on macOS High Sierra #77

Closed
tanis2000 opened this issue Nov 15, 2017 · 4 comments
Closed

Can't find OpenSSL includes on macOS High Sierra #77

tanis2000 opened this issue Nov 15, 2017 · 4 comments

Comments

@tanis2000
Copy link

It looks like the install process can't find the OpenSSL includes on macOS High Sierra. Here's the log:

$ r2pm install r2frida
syntax error: error in error handling
syntax error: error in error handling
syntax error: error in error handling
Already up-to-date.
Install Done For r2frida
[ "`readlink ext/frida`" = frida-macos-10.6.13 ] || \
		(cd ext && rm -f frida ; ln -fs frida-macos-10.6.13 frida)
make io_frida.dylib
cc -c -fPIC -I/usr/local/Cellar/radare2/2.0.1/include/libr -DWITH_CYLANG=0 -Iext/frida src/io_frida.c -o src/io_frida.o
In file included from src/io_frida.c:3:
In file included from /usr/local/Cellar/radare2/2.0.1/include/libr/r_core.h:6:
/usr/local/Cellar/radare2/2.0.1/include/libr/r_socket.h:28:10: fatal error: 'openssl/ssl.h' file not found
#include <openssl/ssl.h>
         ^~~~~~~~~~~~~~~
1 error generated.
make[1]: *** [src/io_frida.o] Error 1
make: *** [all] Error 2
ERROR: Build failed
@trufae
Copy link
Member

trufae commented Nov 15, 2017

This seems to be an issue with the pkgconfig files of r2. Usually few people builds r2 with openssl as dependency, so the .pc files doesnt add the CFLAGS/LDFLAGS for that. Not sure if r2frida will work with last r2 release. so ideally i would recommend to install r2 from git, but ill fill an issue in r2 to track and solve this.

Thanks

@tanis2000
Copy link
Author

I'm using the r2 that can be downloaded through Homebrew... it's version 2.0.1 and it looks like the latest release at the time I'm writing this.
I'll have a go with the git version of r2 and see if anything changes. Cheers!

@tanis2000
Copy link
Author

Just confirming that using r2 from git does solve the issue.

@trufae
Copy link
Member

trufae commented Nov 23, 2017

Should be fixed in here radareorg/radare2@7506680

so r2-2.1 will work fine if installed from brew with r2frida

thanks for reporting!

@trufae trufae closed this as completed Nov 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants