sewenew / redis-plus-plus

Redis client written in C++
Apache License 2.0
1.64k stars 351 forks source link

Is there a `Glibc` version limit for using redis-plus-plus? #468

Closed livneros-greeneye closed 1 year ago

livneros-greeneye commented 1 year ago

Describe the problem My code fails for linking the following: connection_pool.cpp:(.text+0x1f48): undefined reference to__libc_single_threaded'`

A short google search showed that __libc_single_threaded was introduced in Glibc 2.32, while I have Glibc 2.27.

Does redis-plus-plus require a specific Glibc version?

Environment:

Additional context Add any other context about the problem here.

livneros-greeneye commented 1 year ago

I was compiling the library using Glibc 2.34 but tried to link it in my workspace contains Glibc 2.27. recompiling redis-plus-plus in a container based on Glibc 2.24 solved it.