Impossible to compile against libmemcached without c++11 with GCC 4.9
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libmemcached |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
libmemcached is broken in Fedora rawhide and with any compilation implying GCC 4.9.
The header memcache.h exposes "#include <cinttypes>" which forces the usage of C++11 r triggers compilation error
https:/
http://
https:/
In file included from /usr/include/
/usr/include/
#error This file requires compiler and library support for the \
This is an urgent fix and block compilation existing software compiling against libmemcached
A solution to this problem is to replace :
#include <cinttypes>
par
# if ( __cplusplus > 201103L )
# include <cinttypes>
# else
# include <tr1/cinttypes>
# endif