Skip to content

: Compiling echo2_config.cc failed: (Exit 1): error: virtual function 'createFilterFactoryFromProto' has a different return type #202

@tanguofu

Description

@tanguofu

ERROR: /source/BUILD:33:17: Compiling echo2_config.cc failed: (Exit 1): clang failed: error executing CppCompile command (from target //:echo2_config) /usr/lib/llvm-14/bin/clang -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object -fcolor-diagnostics -fno-omit-frame-pointer ... (remaining 191 arguments skipped)

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
echo2_config.cc:17:28: error: virtual function 'createFilterFactoryFromProto' has a different return type ('Network::FilterFactoryCb' (aka 'function<void (Envoy::Network::FilterManager &)>')) than the function it overrides (which has return type 'absl::StatusOrNetwork::FilterFactoryCb' (aka 'StatusOr<function<void (Envoy::Network::FilterManager &)>>'))
Network::FilterFactoryCb createFilterFactoryFromProto(const Protobuf::Message&,

external/envoy/envoy/server/filter_config.h:177:3: note: overridden virtual function is here
createFilterFactoryFromProto(const Protobuf::Message& config,
^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions