librados2 from Ubuntu 18 is incompatible with newer libstdc++ due to containing duplicate symbols

Yale Zhang yale at
Fri Sep 10 22:29:30 UTC 2021

Ubuntu developers,
I'm using some early stage commercial software which requires installing
libstdc++ from GCC 11 on Ubuntu 18 while still using the headers from GCC
7.5. My understanding is newer is compatible with older

This setup works pretty well, but once you link to, even a
simple cout statement fails. The reason is because librados2 exports many
functions that should only be in libstdc++6. Those will take
precedence over the ones from libstdc++6 and cause incompatibilities.
Appreciate if you can fix that.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Ubuntu-devel-discuss mailing list