Skip to content

Sysadmin fails to build under GCC 7.x #12

@mtp401

Description

@mtp401
 59%] Building CXX object decibel-cpp/src/CMakeFiles/decibel.dir/decibel/Protobuf.cpp.o
In file included from /home/mpelland/work/oss-sysadmin/decibel-cpp/src/decibel/Protobuf.cpp:1:0:
/home/mpelland/work/oss-sysadmin/decibel-cpp/include/decibel/Protobuf.h:79:12: error: redefinition of ‘struct decibel::ProtobufSetter<long int>’
     struct ProtobufSetter<TYPE>                                                \
            ^~~~~~~~~~~~~~~~~~~~
/home/mpelland/work/oss-sysadmin/decibel-cpp/include/decibel/Protobuf.h:103:1: note: in expansion of macro ‘DEFINE_PROTOBUF_FIELD_MAPPING’
 DEFINE_PROTOBUF_FIELD_MAPPING(long, Int64);
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/mpelland/work/oss-sysadmin/decibel-cpp/include/decibel/Protobuf.h:79:12: note: previous definition of ‘struct decibel::ProtobufSetter<long int>’
     struct ProtobufSetter<TYPE>                                                \
            ^~~~~~~~~~~~~~~~~~~~
/home/mpelland/work/oss-sysadmin/decibel-cpp/include/decibel/Protobuf.h:102:1: note: in expansion of macro ‘DEFINE_PROTOBUF_FIELD_MAPPING’
 DEFINE_PROTOBUF_FIELD_MAPPING(int64_t, Int64);
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/mpelland/work/oss-sysadmin/decibel-cpp/include/decibel/Protobuf.h:79:12: error: redefinition of ‘struct decibel::ProtobufSetter<long unsigned int>’
     struct ProtobufSetter<TYPE>                                                \
            ^~~~~~~~~~~~~~~~~~~~
/home/mpelland/work/oss-sysadmin/decibel-cpp/include/decibel/Protobuf.h:106:1: note: in expansion of macro ‘DEFINE_PROTOBUF_FIELD_MAPPING’
 DEFINE_PROTOBUF_FIELD_MAPPING(unsigned long, UInt64);
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/mpelland/work/oss-sysadmin/decibel-cpp/include/decibel/Protobuf.h:79:12: note: previous definition of ‘struct decibel::ProtobufSetter<long unsigned int>’
     struct ProtobufSetter<TYPE>                                                \
            ^~~~~~~~~~~~~~~~~~~~
/home/mpelland/work/oss-sysadmin/decibel-cpp/include/decibel/Protobuf.h:105:1: note: in expansion of macro ‘DEFINE_PROTOBUF_FIELD_MAPPING’
 DEFINE_PROTOBUF_FIELD_MAPPING(uint64_t, UInt64);
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [decibel-cpp/src/CMakeFiles/decibel.dir/build.make:591: decibel-cpp/src/CMakeFiles/decibel.dir/decibel/Protobuf.cpp.o] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions