GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — 03923858417d ("src: expose BROTLI_DECODER_ERROR_FORMAT_BLOCK_SWITCH") breaks build with shared, latest stable brotli · Issue #66894 · nodejs/node

03923858417d ("src: expose BROTLI_DECODER_ERROR_FORMAT_BLOCK_SWITCH") breaks build with shared, latest stable brotli #66894

New issue
Copy link
New issue
Copy link
Closed
#66895
Closed
03923858417d ("src: expose BROTLI_DECODER_ERROR_FORMAT_BLOCK_SWITCH") breaks build with shared, latest stable brotli#66894
#66895
Copy link

Description

@ziyao233
ziyao233
opened on Oct 21, 2026
Issue body actions

Version

26.12.1

Platform


Subsystem

No response

What steps will reproduce the bug?

Configure nodejs with --shared-brotli and build.

How often does it reproduce? Is there a required condition?

Always

What is the expected behavior? Why is that the expected behavior?

The build succeeds.

What do you see instead?

Build fails with,

../../src/node_zlib.cc:2271:32: error: use of undeclared identifier 'BROTLI_DECODER_ERROR_FORMAT_BLOCK_SWITCH'
 2271 |   NODE_DEFINE_CONSTANT(target, BROTLI_DECODER_ERROR_FORMAT_BLOCK_SWITCH);
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Additional information

BROTLI_DECODER_ERROR_FORMAT_BLOCK_SWITCH is introduced earlier this year, after the latest release (1.2.0) of brotli. We should probably check its existence before using it.

Reacted by Clover Yan and fsLeg

Activity

  1. shahinsamiur commented on Oct 21, 2026

    @shahinsamiur
    shahinsamiur
    on Oct 21, 2026
    More actions

    This is what I will do. I am going to open a PR soon to wrap the constant inside an #ifdef BROTLI_DECODER_ERROR_FORMAT_BLOCK_SWITCH to allow building against Brotli 1.2.0.

    Reacted by Clover Yan
  2. aduh95 commented on Oct 21, 2026

    @aduh95
    aduh95
    on Oct 21, 2026
    Contributor
    More actions

    I recommend cherry-picking google/brotli@0ed4268

  3. 0x9fff00 commented on Oct 21, 2026

    @0x9fff00
    0x9fff00
    on Oct 21, 2026
    More actions

    Brotli 1.2.1 has been released with a backport of the fix for CVE-2026-111497 which added BROTLI_DECODER_ERROR_FORMAT_BLOCK_SWITCH

    Reacted by Antoine du Hamel, Claudio Wunder and Yao Zi
  4. aduh95 commented on Oct 22, 2026

    @aduh95
    aduh95
    on Oct 22, 2026
    Contributor
    More actions

    The fix to allow building against 1.2.0 is on the commit-queue and should land if no objections arise. There are no planned releases for it, so it might take a while to surface in regular releases. I strongly recommend to not wait for it and instead build against brotli 1.2.1, otherwise the resulting binary will be vulnerable to CVE-2026-111497.

  5. nodejs-github-bot
    closed this as completedin #66895on Oct 23, 2026
  6. araujogui
    added a commit that references this issue on Oct 23, 2026

    src: fix build with `--shared-brotli`

    03cca65
  7. aduh95
    added a commit that references this issue on Nov 12, 2026

    src: fix build with `--shared-brotli`

    d47af53
  8. Renegade334
    added a commit that references this issue on Nov 21, 2026

    src: fix build with `--shared-brotli`

    57b48eb
  9. gabylb
    added a commit that references this issue on Nov 27, 2026

    src: fix build with `--shared-brotli`

    9504f94
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.