-
Notifications
You must be signed in to change notification settings - Fork 440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUILD] allow building with -DWITH_OTLP_HTTP_COMPRESSION=OFF without zlib #3120
Conversation
✅ Deploy Preview for opentelemetry-cpp-api-docs canceled.
|
This makes sense. Note however that
By the time the compression code is deemed stable, the feature flag will be removed, so the dependency at build time on zlib will become mandatory. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for the fix.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3120 +/- ##
==========================================
+ Coverage 87.12% 87.88% +0.76%
==========================================
Files 200 195 -5
Lines 6109 6137 +28
==========================================
+ Hits 5322 5393 +71
+ Misses 787 744 -43 |
Hi @marcalff Thanks for the note. I guess once it's stable, we'll have to bite the bullet and add that to our build scripts. FWIW, for our situation compression is pretty unnecessary, we have a native binary running alongside a DataDog daemon on the same box, so data never leaves the box. More dependencies just complicate the already quite complex build process. Anyway, thanks for maintaining this, it's very helpful for us! :) |
Issue
Currently, when building
-DWITH_OTLP_HTTP_COMPRESSION=OFF
, and not providing the libz dependency, we get this error:Changes
This fixes the issue by moving the
#include <zconf.h>
inside the corresponding #ifdef block, letting the build pass.Do I need to do any of these? LMK, happy to :)