stop linking against libmysqlclient_r and link directly against libmysqlclient instead Quoting from Debian's bugreport #825086: . Your package currently links against libmysqlclient_r. libmysqlclient_r was the thread-safe version of libmysqlclient in previous MySQL releases. However, libmysqlclient has been itself been made thread-safe since before the current libmysqlclient18. Thus libmysqlclient_r is currently deprecated and provided as a compatibility symlink only, and will disappear in MySQL 5.7. This change can be made now, in advance of a possible future transition to libmysqlclient20, which does not provide the _r variant. . In Ubuntu, we have done this with the attached quilt patch, which I believe is also applicable to Debian.
[PATCH] Exchanged the "file slurp" idiom used in examples/load_jpeg.cpp for one that also works in C++11, which complains of "address to rvalue" with the original formulation.