Open ivancristina opened 4 years ago
Basically openssl (and thus libcrypto) is deprecated on macos. You'll need to install openssl via brew and then replace the instances of /usr/lib/libcrypto.dylib with the openssl path to libcrypto, e.g. I've manually symlinked mine into: /usr/local/lib/
I've done that too, but I still get the same error. The error reported up here happened after the openssl installation via homebrew
Did you set the search paths correctly in the env? I get past this error after that.
Here is the detailed steps for a successful compiling on Big Sur (11.6.1) on an Intel Mac.
https://github.com/planetbeing/xpwn.git
to a local dircd ./xpwn
mkdir build-dir
cd ./build-dir
brew install openssl
sudo ln -s /usr/local/opt/openssl/lib/libcrypto.dylib /usr/local/lib/libcrypto1.dylib
, as @hexploitable mentioned above.LD_LIBRARY_PATH=/usr/local/opt/openssl/lib:"${LD_LIBRARY_PATH}"
CPATH=/usr/local/opt/openssl/include:"${CPATH}"
PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig:"${PKG_CONFIG_PATH}"
export LD_LIBRARY_PATH CPATH PKG_CONFIG_PATH
CPPFLAGS=-I/usr/local/opt/openssl/include LDFLAGS=-L/usr/local/opt/openssl/lib PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig cmake -DWITH_PROCPS=OFF -DWITH_SUPERCOP=OFF ..
ipsw-patch/xpwntool.c
, add #include "xpwn/img3.h"
make
Now you should see compiled bins under build-dir
I know this issue is not specifically xpwn related, but I encountered a problem with Catalina where linker doesn't work properly
Any help would be highly appreciated