Skip to content

Instantly share code, notes, and snippets.

@pich4ya
Last active June 1, 2022 21:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pich4ya/c27e0efc6ccf1932d2000665cc0c5c5f to your computer and use it in GitHub Desktop.
Save pich4ya/c27e0efc6ccf1932d2000665cc0c5c5f to your computer and use it in GitHub Desktop.
Medusa installation on MacOS 12.4
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