Thanks for the fast reply
Posted: 01 Sep 2011 22:53
I installed argtable2.h and I am now getting a different error. I assume it is because I need to install openssl-dev, which I am having problems in finding.
I installed fink because I wanted to install openssl-dev? Is this right?
My error is:
make clean all
rm -f *.o z-agent
c++ -c ioutil.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
ioutil.c:21:12: warning: 'SSL_read' is deprecated [-Wdeprecated-declarations]
result = SSL_read(session, buffer, size);
^
ioutil.c:23:11: warning: 'SSL_get_error' is deprecated [-Wdeprecated-declarations]
switch (SSL_get_error(session, result))
^
ioutil.c:34:4: warning: 'ERR_get_error' is deprecated [-Wdeprecated-declarations]
DEFAULT_HANDLER("Error reading data from server", session, result);
^
./ssl.h:4:57: note: expanded from macro 'DEFAULT_HANDLER'
#define DEFAULT_HANDLER(s, ssl, r) ERR(s ": (%d) %s
", ERR_get_error(), ERR_reason_error_string(ERR_get_error()))
^
./log.h:11:40: note: expanded from macro 'ERR'
#define ERR(s, ...) Log(0, "[E] " s, ##__VA_ARGS__)
^
ioutil.c:34:4: warning: 'ERR_get_error' is deprecated [-Wdeprecated-declarations]
DEFAULT_HANDLER("Error reading data from server", session, result);
^
./ssl.h:4:98: note: expanded from macro 'DEFAULT_HANDLER'
#define DEFAULT_HANDLER(s, ssl, r) ERR(s ": (%d) %s
", ERR_get_error(), ERR_reason_error_string(ERR_get_error()))
^
./log.h:11:40: note: expanded from macro 'ERR'
#define ERR(s, ...) Log(0, "[E] " s, ##__VA_ARGS__)
^
ioutil.c:34:4: warning: 'ERR_reason_error_string' is deprecated [-Wdeprecated-declarations]
DEFAULT_HANDLER("Error reading data from server", session, result);
^
./ssl.h:4:74: note: expanded from macro 'DEFAULT_HANDLER'
#define DEFAULT_HANDLER(s, ssl, r) ERR(s ": (%d) %s
", ERR_get_error(), ERR_reason_error_string(ERR_get_error()))
^
./log.h:11:40: note: expanded from macro 'ERR'
#define ERR(s, ...) Log(0, "[E] " s, ##__VA_ARGS__)
^
5 warnings generated.
c++ -c main.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
main.c:81:5: warning: 'SSL_write' is deprecated [-Wdeprecated-declarations]
SSL_write(sslSession, buffer, bytes);
^
main.c:221:13: warning: 'SSL_read' is deprecated [-Wdeprecated-declarations]
sslRead = SSL_read(sslSession, b, sizeof(b));
^
main.c:222:11: warning: 'SSL_get_error' is deprecated [-Wdeprecated-declarations]
switch (SSL_get_error(sslSession, sslRead))
^
main.c:240:4: warning: 'ERR_get_error' is deprecated [-Wdeprecated-declarations]
DEFAULT_HANDLER("Failed to receive server response", sslSession, sslRead);
^
./ssl.h:4:57: note: expanded from macro 'DEFAULT_HANDLER'
#define DEFAULT_HANDLER(s, ssl, r) ERR(s ": (%d) %s
", ERR_get_error(), ERR_reason_error_string(ERR_get_error()))
^
./log.h:11:40: note: expanded from macro 'ERR'
#define ERR(s, ...) Log(0, "[E] " s, ##__VA_ARGS__)
^
main.c:240:4: warning: 'ERR_get_error' is deprecated [-Wdeprecated-declarations]
DEFAULT_HANDLER("Failed to receive server response", sslSession, sslRead);
^
./ssl.h:4:98: note: expanded from macro 'DEFAULT_HANDLER'
#define DEFAULT_HANDLER(s, ssl, r) ERR(s ": (%d) %s
", ERR_get_error(), ERR_reason_error_string(ERR_get_error()))
^
./log.h:11:40: note: expanded from macro 'ERR'
#define ERR(s, ...) Log(0, "[E] " s, ##__VA_ARGS__)
^
main.c:240:4: warning: 'ERR_reason_error_string' is deprecated [-Wdeprecated-declarations]
DEFAULT_HANDLER("Failed to receive server response", sslSession, sslRead);
^
./ssl.h:4:74: note: expanded from macro 'DEFAULT_HANDLER'
#define DEFAULT_HANDLER(s, ssl, r) ERR(s ": (%d) %s
", ERR_get_error(), ERR_reason_error_string(ERR_get_error()))
^
./log.h:11:40: note: expanded from macro 'ERR'
#define ERR(s, ...) Log(0, "[E] " s, ##__VA_ARGS__)
^
6 warnings generated.
c++ -c log.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
c++ -c serial.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
c++ -c ssl.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
ssl.c:18:2: warning: 'SSL_library_init' is deprecated [-Wdeprecated-declarations]
SSL_library_init();
^
ssl.c:19:2: warning: 'SSL_load_error_strings' is deprecated [-Wdeprecated-declarations]
SSL_load_error_strings();
^
ssl.c:30:20: warning: 'TLSv1_client_method' is deprecated [-Wdeprecated-declarations]
ctx = SSL_CTX_new(TLSv1_client_method());
^
ssl.c:30:8: warning: 'SSL_CTX_new' is deprecated [-Wdeprecated-declarations]
ctx = SSL_CTX_new(TLSv1_client_method());
^
ssl.c:33:47: warning: 'ERR_get_error' is deprecated [-Wdeprecated-declarations]
ERR("Failed to allocate SSL context: %s
", SSLERROR);
^
./log.h:11:40: note: expanded from macro 'ERR'
#define ERR(s, ...) Log(0, "[E] " s, ##__VA_ARGS__)
^
ssl.c:8:42: note: expanded from macro 'SSLERROR'
#define SSLERROR ERR_reason_error_string(ERR_get_error())
^
ssl.c:33:47: warning: 'ERR_reason_error_string' is deprecated [-Wdeprecated-declarations]
ERR("Failed to allocate SSL context: %s
", SSLERROR);
^
./log.h:11:40: note: expanded from macro 'ERR'
#define ERR(s, ...) Log(0, "[E] " s, ##__VA_ARGS__)
^
ssl.c:8:18: note: expanded from macro 'SSLERROR'
#define SSLERROR ERR_reason_error_string(ERR_get_error())
^
ssl.c:38:11: warning: 'SSL_CTX_use_certificate_chain_file' is deprecated [-Wdeprecated-declarations]
if (1 != SSL_CTX_use_certificate_chain_file(ctx, certFile))
^
ssl.c:40:52: warning: 'ERR_get_error' is deprecated [-Wdeprecated-declarations]
ERR("Failed to load personal certificate: %s
", SSLERROR);
^
./log.h:11:40: note: expanded from macro 'ERR'
#define ERR(s, ...) Log(0, "[E] " s, ##__VA_ARGS__)
^
ssl.c:8:42: note: expanded from macro 'SSLERROR'
#define SSLERROR ERR_reason_error_string(ERR_get_error())
^
ssl.c:40:52: warning: 'ERR_reason_error_string' is deprecated [-Wdeprecated-declarations]
ERR("Failed to load personal certificate: %s
", SSLERROR);
^
./log.h:11:40: note: expanded from macro 'ERR'
#define ERR(s, ...) Log(0, "[E] " s, ##__VA_ARGS__)
^
ssl.c:8:18: note: expanded from macro 'SSLERROR'
#define SSLERROR ERR_reason_error_string(ERR_get_error())
^
ssl.c:45:11: warning: 'SSL_CTX_use_PrivateKey_file' is deprecated [-Wdeprecated-declarations]
if (1 != SSL_CTX_use_PrivateKey_file(ctx, keyFile, SSL_FILETYPE_PEM))
^
ssl.c:47:56: warning: 'ERR_get_error' is deprecated [-Wdeprecated-declarations]
ERR("Failed to load personal certificate key: %s
", SSLERROR);
^
./log.h:11:40: note: expanded from macro 'ERR'
#define ERR(s, ...) Log(0, "[E] " s, ##__VA_ARGS__)
^
ssl.c:8:42: note: expanded from macro 'SSLERROR'
#define SSLERROR ERR_reason_error_string(ERR_get_error())
^
ssl.c:47:56: warning: 'ERR_reason_error_string' is deprecated [-Wdeprecated-declarations]
ERR("Failed to load personal certificate key: %s
", SSLERROR);
^
./log.h:11:40: note: expanded from macro 'ERR'
#define ERR(s, ...) Log(0, "[E] " s, ##__VA_ARGS__)
^
ssl.c:8:18: note: expanded from macro 'SSLERROR'
#define SSLERROR ERR_reason_error_string(ERR_get_error())
^
ssl.c:52:11: warning: 'SSL_CTX_load_verify_locations' is deprecated [-Wdeprecated-declarations]
if (1 != SSL_CTX_load_verify_locations(ctx, caCertFile, NULL))
^
ssl.c:54:46: warning: 'ERR_get_error' is deprecated [-Wdeprecated-declarations]
ERR("Failed to load CA certificate: %s
", SSLERROR);
^
./log.h:11:40: note: expanded from macro 'ERR'
#define ERR(s, ...) Log(0, "[E] " s, ##__VA_ARGS__)
^
ssl.c:8:42: note: expanded from macro 'SSLERROR'
#define SSLERROR ERR_reason_error_string(ERR_get_error())
^
ssl.c:54:46: warning: 'ERR_reason_error_string' is deprecated [-Wdeprecated-declarations]
ERR("Failed to load CA certificate: %s
", SSLERROR);
^
./log.h:11:40: note: expanded from macro 'ERR'
#define ERR(s, ...) Log(0, "[E] " s, ##__VA_ARGS__)
^
ssl.c:8:18: note: expanded from macro 'SSLERROR'
#define SSLERROR ERR_reason_error_string(ERR_get_error())
^
ssl.c:59:2: warning: 'SSL_CTX_set_verify' is deprecated [-Wdeprecated-declarations]
SSL_CTX_set_verify(ctx, SSL_VERIFY_PEER, NULL);
^
ssl.c:69:2: warning: 'SSL_CTX_free' is deprecated [-Wdeprecated-declarations]
SSL_CTX_free(ctx);
^
ssl.c:81:8: warning: 'SSL_new' is deprecated [-Wdeprecated-declarations]
ssl = SSL_new(context);
^
ssl.c:84:47: warning: 'ERR_get_error' is deprecated [-Wdeprecated-declarations]
ERR("Failed to allocate SSL session: %s
", SSLERROR);
^
./log.h:11:40: note: expanded from macro 'ERR'
#define ERR(s, ...) Log(0, "[E] " s, ##__VA_ARGS__)
^
ssl.c:8:42: note: expanded from macro 'SSLERROR'
#define SSLERROR ERR_reason_error_string(ERR_get_error())
^
ssl.c:84:47: warning: 'ERR_reason_error_string' is deprecated [-Wdeprecated-declarations]
ERR("Failed to allocate SSL session: %s
", SSLERROR);
^
./log.h:11:40: note: expanded from macro 'ERR'
#define ERR(s, ...) Log(0, "[E] " s, ##__VA_ARGS__)
^
ssl.c:8:18: note: expanded from macro 'SSLERROR'
#define SSLERROR ERR_reason_error_string(ERR_get_error())
^
ssl.c:90:8: warning: 'BIO_new_socket' is deprecated [-Wdeprecated-declarations]
bio = BIO_new_socket(sock, BIO_NOCLOSE);
^
ssl.c:91:2: warning: 'SSL_set_bio' is deprecated [-Wdeprecated-declarations]
SSL_set_bio(ssl, bio, bio);
^
ssl.c:96:2: warning: 'SSL_set_connect_state' is deprecated [-Wdeprecated-declarations]
SSL_set_connect_state(ssl);
^
ssl.c:99:11: warning: 'SSL_do_handshake' is deprecated [-Wdeprecated-declarations]
if (1 != SSL_do_handshake(ssl))
^
ssl.c:101:44: warning: 'ERR_get_error' is deprecated [-Wdeprecated-declarations]
ERR("Failed to perform handshake: %s
", SSLERROR);
^
./log.h:11:40: note: expanded from macro 'ERR'
#define ERR(s, ...) Log(0, "[E] " s, ##__VA_ARGS__)
^
ssl.c:8:42: note: expanded from macro 'SSLERROR'
#define SSLERROR ERR_reason_error_string(ERR_get_error())
^
ssl.c:101:44: warning: 'ERR_reason_error_string' is deprecated [-Wdeprecated-declarations]
ERR("Failed to perform handshake: %s
", SSLERROR);
^
./log.h:11:40: note: expanded from macro 'ERR'
#define ERR(s, ...) Log(0, "[E] " s, ##__VA_ARGS__)
^
ssl.c:8:18: note: expanded from macro 'SSLERROR'
#define SSLERROR ERR_reason_error_string(ERR_get_error())
^
ssl.c:104:3: warning: 'SSL_free' is deprecated [-Wdeprecated-declarations]
SSL_free(ssl);
^
ssl.c:117:2: warning: 'SSL_shutdown' is deprecated [-Wdeprecated-declarations]
SSL_shutdown(ssl);
^
ssl.c:120:2: warning: 'SSL_free' is deprecated [-Wdeprecated-declarations]
SSL_free(ssl);
^
29 warnings generated.
c++ ioutil.o main.o log.o serial.o ssl.o -lssl -largtable2 -lcrypto -o z-agent
# Trying to copy z-agent to ../Release folder
cp z-agent ../Release
I installed fink because I wanted to install openssl-dev? Is this right?
My error is:
make clean all
rm -f *.o z-agent
c++ -c ioutil.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
ioutil.c:21:12: warning: 'SSL_read' is deprecated [-Wdeprecated-declarations]
result = SSL_read(session, buffer, size);
^
ioutil.c:23:11: warning: 'SSL_get_error' is deprecated [-Wdeprecated-declarations]
switch (SSL_get_error(session, result))
^
ioutil.c:34:4: warning: 'ERR_get_error' is deprecated [-Wdeprecated-declarations]
DEFAULT_HANDLER("Error reading data from server", session, result);
^
./ssl.h:4:57: note: expanded from macro 'DEFAULT_HANDLER'
#define DEFAULT_HANDLER(s, ssl, r) ERR(s ": (%d) %s
", ERR_get_error(), ERR_reason_error_string(ERR_get_error()))
^
./log.h:11:40: note: expanded from macro 'ERR'
#define ERR(s, ...) Log(0, "[E] " s, ##__VA_ARGS__)
^
ioutil.c:34:4: warning: 'ERR_get_error' is deprecated [-Wdeprecated-declarations]
DEFAULT_HANDLER("Error reading data from server", session, result);
^
./ssl.h:4:98: note: expanded from macro 'DEFAULT_HANDLER'
#define DEFAULT_HANDLER(s, ssl, r) ERR(s ": (%d) %s
", ERR_get_error(), ERR_reason_error_string(ERR_get_error()))
^
./log.h:11:40: note: expanded from macro 'ERR'
#define ERR(s, ...) Log(0, "[E] " s, ##__VA_ARGS__)
^
ioutil.c:34:4: warning: 'ERR_reason_error_string' is deprecated [-Wdeprecated-declarations]
DEFAULT_HANDLER("Error reading data from server", session, result);
^
./ssl.h:4:74: note: expanded from macro 'DEFAULT_HANDLER'
#define DEFAULT_HANDLER(s, ssl, r) ERR(s ": (%d) %s
", ERR_get_error(), ERR_reason_error_string(ERR_get_error()))
^
./log.h:11:40: note: expanded from macro 'ERR'
#define ERR(s, ...) Log(0, "[E] " s, ##__VA_ARGS__)
^
5 warnings generated.
c++ -c main.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
main.c:81:5: warning: 'SSL_write' is deprecated [-Wdeprecated-declarations]
SSL_write(sslSession, buffer, bytes);
^
main.c:221:13: warning: 'SSL_read' is deprecated [-Wdeprecated-declarations]
sslRead = SSL_read(sslSession, b, sizeof(b));
^
main.c:222:11: warning: 'SSL_get_error' is deprecated [-Wdeprecated-declarations]
switch (SSL_get_error(sslSession, sslRead))
^
main.c:240:4: warning: 'ERR_get_error' is deprecated [-Wdeprecated-declarations]
DEFAULT_HANDLER("Failed to receive server response", sslSession, sslRead);
^
./ssl.h:4:57: note: expanded from macro 'DEFAULT_HANDLER'
#define DEFAULT_HANDLER(s, ssl, r) ERR(s ": (%d) %s
", ERR_get_error(), ERR_reason_error_string(ERR_get_error()))
^
./log.h:11:40: note: expanded from macro 'ERR'
#define ERR(s, ...) Log(0, "[E] " s, ##__VA_ARGS__)
^
main.c:240:4: warning: 'ERR_get_error' is deprecated [-Wdeprecated-declarations]
DEFAULT_HANDLER("Failed to receive server response", sslSession, sslRead);
^
./ssl.h:4:98: note: expanded from macro 'DEFAULT_HANDLER'
#define DEFAULT_HANDLER(s, ssl, r) ERR(s ": (%d) %s
", ERR_get_error(), ERR_reason_error_string(ERR_get_error()))
^
./log.h:11:40: note: expanded from macro 'ERR'
#define ERR(s, ...) Log(0, "[E] " s, ##__VA_ARGS__)
^
main.c:240:4: warning: 'ERR_reason_error_string' is deprecated [-Wdeprecated-declarations]
DEFAULT_HANDLER("Failed to receive server response", sslSession, sslRead);
^
./ssl.h:4:74: note: expanded from macro 'DEFAULT_HANDLER'
#define DEFAULT_HANDLER(s, ssl, r) ERR(s ": (%d) %s
", ERR_get_error(), ERR_reason_error_string(ERR_get_error()))
^
./log.h:11:40: note: expanded from macro 'ERR'
#define ERR(s, ...) Log(0, "[E] " s, ##__VA_ARGS__)
^
6 warnings generated.
c++ -c log.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
c++ -c serial.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
c++ -c ssl.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
ssl.c:18:2: warning: 'SSL_library_init' is deprecated [-Wdeprecated-declarations]
SSL_library_init();
^
ssl.c:19:2: warning: 'SSL_load_error_strings' is deprecated [-Wdeprecated-declarations]
SSL_load_error_strings();
^
ssl.c:30:20: warning: 'TLSv1_client_method' is deprecated [-Wdeprecated-declarations]
ctx = SSL_CTX_new(TLSv1_client_method());
^
ssl.c:30:8: warning: 'SSL_CTX_new' is deprecated [-Wdeprecated-declarations]
ctx = SSL_CTX_new(TLSv1_client_method());
^
ssl.c:33:47: warning: 'ERR_get_error' is deprecated [-Wdeprecated-declarations]
ERR("Failed to allocate SSL context: %s
", SSLERROR);
^
./log.h:11:40: note: expanded from macro 'ERR'
#define ERR(s, ...) Log(0, "[E] " s, ##__VA_ARGS__)
^
ssl.c:8:42: note: expanded from macro 'SSLERROR'
#define SSLERROR ERR_reason_error_string(ERR_get_error())
^
ssl.c:33:47: warning: 'ERR_reason_error_string' is deprecated [-Wdeprecated-declarations]
ERR("Failed to allocate SSL context: %s
", SSLERROR);
^
./log.h:11:40: note: expanded from macro 'ERR'
#define ERR(s, ...) Log(0, "[E] " s, ##__VA_ARGS__)
^
ssl.c:8:18: note: expanded from macro 'SSLERROR'
#define SSLERROR ERR_reason_error_string(ERR_get_error())
^
ssl.c:38:11: warning: 'SSL_CTX_use_certificate_chain_file' is deprecated [-Wdeprecated-declarations]
if (1 != SSL_CTX_use_certificate_chain_file(ctx, certFile))
^
ssl.c:40:52: warning: 'ERR_get_error' is deprecated [-Wdeprecated-declarations]
ERR("Failed to load personal certificate: %s
", SSLERROR);
^
./log.h:11:40: note: expanded from macro 'ERR'
#define ERR(s, ...) Log(0, "[E] " s, ##__VA_ARGS__)
^
ssl.c:8:42: note: expanded from macro 'SSLERROR'
#define SSLERROR ERR_reason_error_string(ERR_get_error())
^
ssl.c:40:52: warning: 'ERR_reason_error_string' is deprecated [-Wdeprecated-declarations]
ERR("Failed to load personal certificate: %s
", SSLERROR);
^
./log.h:11:40: note: expanded from macro 'ERR'
#define ERR(s, ...) Log(0, "[E] " s, ##__VA_ARGS__)
^
ssl.c:8:18: note: expanded from macro 'SSLERROR'
#define SSLERROR ERR_reason_error_string(ERR_get_error())
^
ssl.c:45:11: warning: 'SSL_CTX_use_PrivateKey_file' is deprecated [-Wdeprecated-declarations]
if (1 != SSL_CTX_use_PrivateKey_file(ctx, keyFile, SSL_FILETYPE_PEM))
^
ssl.c:47:56: warning: 'ERR_get_error' is deprecated [-Wdeprecated-declarations]
ERR("Failed to load personal certificate key: %s
", SSLERROR);
^
./log.h:11:40: note: expanded from macro 'ERR'
#define ERR(s, ...) Log(0, "[E] " s, ##__VA_ARGS__)
^
ssl.c:8:42: note: expanded from macro 'SSLERROR'
#define SSLERROR ERR_reason_error_string(ERR_get_error())
^
ssl.c:47:56: warning: 'ERR_reason_error_string' is deprecated [-Wdeprecated-declarations]
ERR("Failed to load personal certificate key: %s
", SSLERROR);
^
./log.h:11:40: note: expanded from macro 'ERR'
#define ERR(s, ...) Log(0, "[E] " s, ##__VA_ARGS__)
^
ssl.c:8:18: note: expanded from macro 'SSLERROR'
#define SSLERROR ERR_reason_error_string(ERR_get_error())
^
ssl.c:52:11: warning: 'SSL_CTX_load_verify_locations' is deprecated [-Wdeprecated-declarations]
if (1 != SSL_CTX_load_verify_locations(ctx, caCertFile, NULL))
^
ssl.c:54:46: warning: 'ERR_get_error' is deprecated [-Wdeprecated-declarations]
ERR("Failed to load CA certificate: %s
", SSLERROR);
^
./log.h:11:40: note: expanded from macro 'ERR'
#define ERR(s, ...) Log(0, "[E] " s, ##__VA_ARGS__)
^
ssl.c:8:42: note: expanded from macro 'SSLERROR'
#define SSLERROR ERR_reason_error_string(ERR_get_error())
^
ssl.c:54:46: warning: 'ERR_reason_error_string' is deprecated [-Wdeprecated-declarations]
ERR("Failed to load CA certificate: %s
", SSLERROR);
^
./log.h:11:40: note: expanded from macro 'ERR'
#define ERR(s, ...) Log(0, "[E] " s, ##__VA_ARGS__)
^
ssl.c:8:18: note: expanded from macro 'SSLERROR'
#define SSLERROR ERR_reason_error_string(ERR_get_error())
^
ssl.c:59:2: warning: 'SSL_CTX_set_verify' is deprecated [-Wdeprecated-declarations]
SSL_CTX_set_verify(ctx, SSL_VERIFY_PEER, NULL);
^
ssl.c:69:2: warning: 'SSL_CTX_free' is deprecated [-Wdeprecated-declarations]
SSL_CTX_free(ctx);
^
ssl.c:81:8: warning: 'SSL_new' is deprecated [-Wdeprecated-declarations]
ssl = SSL_new(context);
^
ssl.c:84:47: warning: 'ERR_get_error' is deprecated [-Wdeprecated-declarations]
ERR("Failed to allocate SSL session: %s
", SSLERROR);
^
./log.h:11:40: note: expanded from macro 'ERR'
#define ERR(s, ...) Log(0, "[E] " s, ##__VA_ARGS__)
^
ssl.c:8:42: note: expanded from macro 'SSLERROR'
#define SSLERROR ERR_reason_error_string(ERR_get_error())
^
ssl.c:84:47: warning: 'ERR_reason_error_string' is deprecated [-Wdeprecated-declarations]
ERR("Failed to allocate SSL session: %s
", SSLERROR);
^
./log.h:11:40: note: expanded from macro 'ERR'
#define ERR(s, ...) Log(0, "[E] " s, ##__VA_ARGS__)
^
ssl.c:8:18: note: expanded from macro 'SSLERROR'
#define SSLERROR ERR_reason_error_string(ERR_get_error())
^
ssl.c:90:8: warning: 'BIO_new_socket' is deprecated [-Wdeprecated-declarations]
bio = BIO_new_socket(sock, BIO_NOCLOSE);
^
ssl.c:91:2: warning: 'SSL_set_bio' is deprecated [-Wdeprecated-declarations]
SSL_set_bio(ssl, bio, bio);
^
ssl.c:96:2: warning: 'SSL_set_connect_state' is deprecated [-Wdeprecated-declarations]
SSL_set_connect_state(ssl);
^
ssl.c:99:11: warning: 'SSL_do_handshake' is deprecated [-Wdeprecated-declarations]
if (1 != SSL_do_handshake(ssl))
^
ssl.c:101:44: warning: 'ERR_get_error' is deprecated [-Wdeprecated-declarations]
ERR("Failed to perform handshake: %s
", SSLERROR);
^
./log.h:11:40: note: expanded from macro 'ERR'
#define ERR(s, ...) Log(0, "[E] " s, ##__VA_ARGS__)
^
ssl.c:8:42: note: expanded from macro 'SSLERROR'
#define SSLERROR ERR_reason_error_string(ERR_get_error())
^
ssl.c:101:44: warning: 'ERR_reason_error_string' is deprecated [-Wdeprecated-declarations]
ERR("Failed to perform handshake: %s
", SSLERROR);
^
./log.h:11:40: note: expanded from macro 'ERR'
#define ERR(s, ...) Log(0, "[E] " s, ##__VA_ARGS__)
^
ssl.c:8:18: note: expanded from macro 'SSLERROR'
#define SSLERROR ERR_reason_error_string(ERR_get_error())
^
ssl.c:104:3: warning: 'SSL_free' is deprecated [-Wdeprecated-declarations]
SSL_free(ssl);
^
ssl.c:117:2: warning: 'SSL_shutdown' is deprecated [-Wdeprecated-declarations]
SSL_shutdown(ssl);
^
ssl.c:120:2: warning: 'SSL_free' is deprecated [-Wdeprecated-declarations]
SSL_free(ssl);
^
29 warnings generated.
c++ ioutil.o main.o log.o serial.o ssl.o -lssl -largtable2 -lcrypto -o z-agent
# Trying to copy z-agent to ../Release folder
cp z-agent ../Release