Skip to content

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

@landure

Description

@landure

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions