Last active
June 1, 2022 21:02
-
-
Save pich4ya/c27e0efc6ccf1932d2000665cc0c5c5f to your computer and use it in GitHub Desktop.
Medusa installation on MacOS 12.4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I got this error during `make` for Medusa installation on MacOS 12.4 | |
```bash | |
git clone https://github.com/jmk-foofus/medusa | |
cd medusa | |
./configure | |
make && make install | |
[..] | |
medusa-net.c:349:28: error: implicit declaration of function 'TLS_client_method' is invalid in C99 [-Werror,-Wimplicit-function-declaration] | |
sslContext = SSL_CTX_new(TLS_client_method()); | |
``` | |
I have to change code in the file /medusa/src/medusa-net.c | |
```c | |
sslContext = SSL_CTX_new(TLS_client_method()); | |
if (sslContext == NULL) | |
{ | |
``` | |
To: | |
```c | |
sslContext = SSL_CTX_new(DTLS_client_method()); | |
if (sslContext == NULL) | |
{ | |
``` | |
Finally, do this. | |
```bash | |
brew install xquartz --cask | |
brew install freerdp | |
export FREERDP2_CFLAGS='-I/usr/local/include' | |
export FREERDP2_LIBS='-I/usr/local/lib/freerdp' | |
brew install openssl@3 | |
export LDFLAGS="-L/usr/local/opt/openssl@3/lib" | |
export CPPFLAGS="-I/usr/local/opt/openssl@3/include" | |
export PKG_CONFIG_PATH="/usr/local/opt/openssl@3/lib/pkgconfig" | |
./configure | |
make && make install | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment