pinba_engine icon indicating copy to clipboard operation
pinba_engine copied to clipboard

Can not compile pinba 1.2.0 with CXXFLAGS="-fno-rtti"

Open landure opened this issue 6 years ago • 1 comments

OS: Debian 9.0 Stretch Mysql Version: MariaDB 10.1.26

Installation method (in french and command lines): Installer l'engine MySQL Pinba sur Debian

When configuring pinba 1.2.0, i use these options to prevent the _ZTI7handler error (known problem):

${source}/configure \
    --with-mysql="${mysqlSource}" \
    --with-judy \
    --with-protobuf \
    --with-event \
    --libdir="${mysqlPluginPath}" \
    CXXFLAGS="-fno-rtti"

When compiling, this error is thrown:

src/hashtable_test.cc:1996:45: error: cannot use typeid with -fno-rtti std::cout << "sizeof(" << typeid(TypeParam).name() << "): "

The error is fixed by removing "<< typeid(TypeParam.name()" in line 1996 of file sparsehash/src/hashtable_test.cc

This problem is major, since it prevent compilation when error _ZTI7handler is present on the system when -fno-rtti is not used.

landure avatar Aug 15 '18 22:08 landure

the same problem... any news?

spider4216 avatar May 12 '23 10:05 spider4216