Skip to content
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

http_compression.cpp fails to build when using zlib with a Z_PREFIX #1149

Closed
bryan-lipinski opened this issue May 31, 2019 · 0 comments
Closed

Comments

@bryan-lipinski
Copy link
Contributor

zconf.h contains defines that rename zlib functions when buliding with -DZ_PREFIX. This leaves the following #define active in http_compression.cpp:

#    define compress              z_compress

This renames the 'compress' functions of zlib_compressor_base causing the build to fail with:

error: allocating an object of abstract class type 'web::http::compression::builtin::gzip_compressor'
    return std::unique_ptr<_Type>(new _Type());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant