-
Notifications
You must be signed in to change notification settings - Fork 145
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
Fix Linux build problems #34
base: master
Are you sure you want to change the base?
Conversation
ngaro
commented
Nov 6, 2016
- Adds 2 missing headers needed for compiling
- Removes a definition already defined earlier (not necessary)
- Fixes problems with incorrect gcc options
- Automatically download and build the correct version of openssl
- Add possibility for cleaning the build environment
I changed the lines you committed, but I still got one error: "gcc: error: ../heartleech/heartleech.c: No such file or directory" I also reinstalled it and modified the path, but this didn't help. Did I do sth wrong? |
I tried it again here, works fine. You must be compiling it wrong. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To entirely fix the Linux build problems you should also add the -I
flag to openssl/libssl.a
and openssl/libcrypto.a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added -I
flags to openssl/libssl.a
and openssl/libcrypto.a
|
||
heartleech: heartleech.c | ||
gcc -I../openssl/include -L../openssl -lcrypto -lssl -lcrypto -ldl -lpthread -o heartleech heartleech.c | ||
|
||
gcc heartleech.c -Iopenssl -Iopenssl/include -Iopenssl/crypto/include -Iopenssl/ssl openssl/libssl.a openssl/libcrypto.a -ldl -lpthread -o heartleech | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gcc heartleech.c -I openssl -I openssl/include -I openssl/crypto/include -I openssl/ssl -I openssl/libssl.a -I openssl/libcrypto.a -ldl -lpthread -o heartleech | |