The package version for libhiredis-dev in Debian 12 is 0.14.1, that version does not have ssl support, so need hiredis >=v1.0.0 for ssl support. I have tried hiredis v1.0.0 through v1.2.0 and some old hiredis-cluster versions as well (0.10.0 through 0.13.0) and having the same compile issue.