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

build: do not define ZLIB_CONST #9122

Closed

Conversation

bradleythughes
Copy link
Member

Checklist
  • make -j8 test (UNIX), or vcbuild test nosign (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

build

Description of change

This define is not available in zlib prior to version 1.2.5.2. See
#9110 for details. Workaround the build breakage reported by

casting away const in src/inspector_agent.cc instead.

@nodejs-github-bot nodejs-github-bot added build Issues and PRs related to build files or the CI. c++ Issues and PRs that require attention from people who are familiar with C++. inspector Issues and PRs related to the V8 inspector protocol zlib Issues and PRs related to the zlib subsystem. labels Oct 16, 2016
@@ -176,7 +176,7 @@ void SendProtocolJson(InspectorSocket* socket) {
PROTOCOL_JSON[0] * 0x10000u +
PROTOCOL_JSON[1] * 0x100u +
PROTOCOL_JSON[2];
strm.next_in = PROTOCOL_JSON + 3;
strm.next_in = const_cast<uint8_t *>(PROTOCOL_JSON + 3);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No space before the * please.

@cjihrig
Copy link
Contributor

cjihrig commented Oct 16, 2016

@evantorrie can you test this change out?

This define is not available in zlib prior to version 1.2.5.2. See
nodejs#9110 for details. Workaround the
build breakage reported by casting away const in src/inspector_agent.cc
instead.
@MylesBorins
Copy link
Contributor

@rvagg this may need to be included in this weeks v6 release

Copy link
Member

@bnoordhuis bnoordhuis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@evantorrie
Copy link
Contributor

Yes, I tested this patch out and it works for me (RHEL 6.8, --shared-zlib).

@rvagg
Copy link
Member

rvagg commented Oct 18, 2016

landed @ a9f4fc9

@rvagg rvagg closed this Oct 18, 2016
rvagg pushed a commit that referenced this pull request Oct 18, 2016
This define is not available in zlib prior to version 1.2.5.2. See
#9110 for details. Workaround the
build breakage reported by casting away const in src/inspector_agent.cc
instead.

PR-URL: #9122
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rod Vagg <rod@vagg.org>
@rvagg
Copy link
Member

rvagg commented Oct 18, 2016

ack, this'll go in to 6.9.0

jasnell pushed a commit that referenced this pull request Oct 18, 2016
This define is not available in zlib prior to version 1.2.5.2. See
#9110 for details. Workaround the
build breakage reported by casting away const in src/inspector_agent.cc
instead.

PR-URL: #9122
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rod Vagg <rod@vagg.org>
@MylesBorins
Copy link
Contributor

@addaleax assuming this also does not need to land in v4.x

@bradleythughes bradleythughes deleted the do-not-use-ZLIB_CONST branch January 1, 2017 23:31
@bradleythughes bradleythughes restored the do-not-use-ZLIB_CONST branch January 1, 2017 23:34
@bradleythughes bradleythughes deleted the do-not-use-ZLIB_CONST branch January 1, 2017 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues and PRs related to build files or the CI. c++ Issues and PRs that require attention from people who are familiar with C++. inspector Issues and PRs related to the V8 inspector protocol zlib Issues and PRs related to the zlib subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants