jaegertracing / jaeger-client-cpp

🛑 This library is DEPRECATED!
https://jaegertracing.io/
Apache License 2.0
138 stars 126 forks source link

QUESTION: Can not use with hunter manager #263

Closed ObjatieGroba closed 2 years ago

ObjatieGroba commented 3 years ago

Debian slim 10.

Simple example:

set(HUNTER_PACKAGES opentracing-cpp jaegertracing)

include(FetchContent)
FetchContent_Declare(SetupHunter GIT_REPOSITORY https://github.com/cpp-pm/gate)
FetchContent_MakeAvailable(SetupHunter)

Does not working

In file included from /root/.hunter/_Base/18e57a4/ecec41b/5c48e6d/Build/jaegertracing/Source/src/jaegertracing/SpanContext.cpp:17:
/root/.hunter/_Base/18e57a4/ecec41b/5c48e6d/Build/jaegertracing/Source/src/jaegertracing/SpanContext.h:38:12: error: invalid abstract return type 'jaegertracing::SpanContext'
     static SpanContext fromStream(std::istream& in);
            ^~~~~~~~~~~
/root/.hunter/_Base/18e57a4/ecec41b/5c48e6d/Build/jaegertracing/Source/src/jaegertracing/SpanContext.h:32:7: note:   because the following virtual functions are pure within 'jaegertracing::SpanContext':
 class SpanContext : public opentracing::SpanContext {
       ^~~~~~~~~~~
In file included from /root/.hunter/_Base/18e57a4/ecec41b/5c48e6d/Build/jaegertracing/Source/src/jaegertracing/SpanContext.h:26,
                 from /root/.hunter/_Base/18e57a4/ecec41b/5c48e6d/Build/jaegertracing/Source/src/jaegertracing/SpanContext.cpp:17:
/root/.hunter/_Base/18e57a4/ecec41b/5c48e6d/Install/include/opentracing/span.h:34:40: note:     'virtual std::unique_ptr<opentracing::v3::SpanContext> opentracing::v3::SpanContext::Clone() const'
   virtual std::unique_ptr<SpanContext> Clone() const noexcept = 0;
                                        ^~~~~
In file included from /root/.hunter/_Base/18e57a4/ecec41b/5c48e6d/Build/jaegertracing/Source/src/jaegertracing/SpanContext.cpp:17:
/root/.hunter/_Base/18e57a4/ecec41b/5c48e6d/Build/jaegertracing/Source/src/jaegertracing/SpanContext.h:75:40: error: cannot declare parameter 'rhs' to be of abstract type 'jaegertracing::SpanContext'
     SpanContext& operator=(SpanContext rhs)
                            ~~~~~~~~~~~~^~~
/root/.hunter/_Base/18e57a4/ecec41b/5c48e6d/Build/jaegertracing/Source/src/jaegertracing/SpanContext.h:102:5: error: invalid abstract return type 'jaegertracing::SpanContext'
     SpanContext withBaggage(const StrMap& baggage) const
     ^~~~~~~~~~~
/root/.hunter/_Base/18e57a4/ecec41b/5c48e6d/Build/jaegertracing/Source/src/jaegertracing/SpanContext.h:102:17: error: invalid abstract return type for member function 'jaegertracing::SpanContext jaegertracing::SpanContext::withBaggage(const StrMap&) const'
     SpanContext withBaggage(const StrMap& baggage) const
                 ^~~~~~~~~~~

Should I manually update to 0.7.0?