Description

Hello, I am trying to setup db_redis with TLS and redis-cluster support, I get the following errors during installation.

Troubleshooting

Reproduction

Install hiredis(v1.2.0) and hiredis-cluster(v0.13.0) from source, both with ssl support.
Then install kamailio 5.8.1 from source with db_redis module

Log Messages

37.77 CC (gcc) [M db_redis.so]		db_redis_mod.o
37.85 CC (gcc) [M db_redis.so]		redis_connection.o
37.90 redis_connection.c: In function 'db_redis_connect':
37.90 redis_connection.c:129:9: error: unknown type name 'redisSSLContext'; did you mean 'redisContext'?
37.90   129 |         redisSSLContext *ssl = NULL;
37.90       |         ^~~~~~~~~~~~~~~
37.90       |         redisContext
37.90 redis_connection.c:166:17: warning: implicit declaration of function 'redisInitOpenSSL' [-Wimplicit-function-declaration]
37.90   166 |                 redisInitOpenSSL();
37.90       |                 ^~~~~~~~~~~~~~~~
37.90 redis_connection.c:167:23: warning: implicit declaration of function 'redisCreateSSLContext' [-Wimplicit-function-declaration]
37.90   167 |                 ssl = redisCreateSSLContext(
37.90       |                       ^~~~~~~~~~~~~~~~~~~~~
37.90 redis_connection.c:167:21: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
37.90   167 |                 ssl = redisCreateSSLContext(
37.90       |                     ^
37.91 redis_connection.c:196:17: warning: implicit declaration of function 'redisClusterSetOptionEnableSSL'; did you mean 'redisClusterSetOptionMaxRetry'? [-Wimplicit-function-declaration]
37.91   196 |                 redisClusterSetOptionEnableSSL(con->con, ssl);
37.91       |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37.91       |                 redisClusterSetOptionMaxRetry
37.93 make[2]: *** [../../Makefile.rules:100: redis_connection.o] Error 1
37.93 make[1]: *** [Makefile:508: modules] Error 1
37.93 make[1]: Leaving directory '/root/build/kamailio/src'
37.93 make: *** [Makefile:34: all] Error 2

Additional Information

Kamailio 5.8.1
Debian 12


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <kamailio/kamailio/issues/3893@github.com>