Skip to content
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

openssl 1.1.0i , paho.mqtt.c-1.3.1 build error #1535

Open
seoungwook opened this issue Nov 8, 2024 · 0 comments
Open

openssl 1.1.0i , paho.mqtt.c-1.3.1 build error #1535

seoungwook opened this issue Nov 8, 2024 · 0 comments

Comments

@seoungwook
Copy link

openssl1.1.0i - CRYPTO_THREADID , CRYPTO_LOCK , SSLThread_id are deprecated.

How do I solve this?

build error

/paho.mqtt.c-1.3.1/src/SSLSocket.c:65:26: error: unknown type name 'CRYPTO_THREADID'
extern void SSLThread_id(CRYPTO_THREADID *id);
^~~~~~~~~~~~~~~
/paho.mqtt.c-1.3.1/src/SSLSocket.c:402:26: error: unknown type name 'CRYPTO_THREADID'
extern void SSLThread_id(CRYPTO_THREADID *id)
^~~~~~~~~~~~~~~
/paho.mqtt.c-1.3.1/src/SSLSocket.c: In function 'SSLLocks_callback':
/paho.mqtt.c-1.3.1/src/SSLSocket.c:425:14: error: 'CRYPTO_LOCK' undeclared (first use in this function)
if (mode & CRYPTO_LOCK)
^~~~~~~~~~~
/paho.mqtt.c-1.3.1/src/SSLSocket.c:425:14: note: each undeclared identifier is reported only once for each function it appears in
/paho.mqtt.c-1.3.1/src/SSLSocket.c: In function 'SSLSocket_initialize':
/paho.mqtt.c-1.3.1/src/SSLSocket.c:450:13: warning: implicit declaration of function 'SSL_library_init' [-Wimplicit-function-declaration]
if ((rc = SSL_library_init()) != 1)
^~~~~~~~~~~~~~~~
/paho.mqtt.c-1.3.1/src/SSLSocket.c:453:3: warning: implicit declaration of function 'ERR_load_crypto_strings' [-Wimplicit-function-declaration]
ERR_load_crypto_strings();
^~~~~~~~~~~~~~~~~~~~~~~
/paho.mqtt.c-1.3.1/src/SSLSocket.c:454:3: warning: implicit declaration of function 'SSL_load_error_strings' [-Wimplicit-function-declaration]
SSL_load_error_strings();
^~~~~~~~~~~~~~~~~~~~~~
/paho.mqtt.c-1.3.1/src/SSLSocket.c:460:3: warning: implicit declaration of function 'OpenSSL_add_all_algorithms' [-Wimplicit-function-declaration]
OpenSSL_add_all_algorithms();
^~~~~~~~~~~~~~~~~~~~~~~~~~
/paho.mqtt.c-1.3.1/src/SSLSocket.c:462:17: warning: implicit declaration of function 'CRYPTO_num_locks' [-Wimplicit-function-declaration]
lockMemSize = CRYPTO_num_locks() * sizeof(ssl_mutex_type);
^~~~~~~~~~~~~~~~
/paho.mqtt.c-1.3.1/src/SSLSocket.c:479:3: warning: implicit declaration of function 'CRYPTO_THREADID_set_callback' [-Wimplicit-function-declaration]
CRYPTO_THREADID_set_callback(SSLThread_id);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/paho.mqtt.c-1.3.1/src/SSLSocket.c:479:32: error: 'SSLThread_id' undeclared (first use in this function)
CRYPTO_THREADID_set_callback(SSLThread_id);
^~~~~~~~~~~~
/paho.mqtt.c-1.3.1/src/SSLSocket.c:483:3: warning: implicit declaration of function 'CRYPTO_set_locking_callback' [-Wimplicit-function-declaration]
CRYPTO_set_locking_callback(SSLLocks_callback);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/paho.mqtt.c-1.3.1/src/SSLSocket.c: In function 'SSLSocket_terminate':
/paho.mqtt.c-1.3.1/src/SSLSocket.c:502:3: warning: implicit declaration of function 'EVP_cleanup' [-Wimplicit-function-declaration]
EVP_cleanup();
^~~~~~~~~~~
/paho.mqtt.c-1.3.1/src/SSLSocket.c:503:3: warning: implicit declaration of function 'ERR_free_strings' [-Wimplicit-function-declaration]
ERR_free_strings();
^~~~~~~~~~~~~~~~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant