Skip to content

[cmake] error out if ZeroMQ has no draft api support#22325

Open
ferdymercury wants to merge 2 commits into
root-project:masterfrom
ferdymercury:patch-25
Open

[cmake] error out if ZeroMQ has no draft api support#22325
ferdymercury wants to merge 2 commits into
root-project:masterfrom
ferdymercury:patch-25

Conversation

@ferdymercury
Copy link
Copy Markdown
Collaborator

@ferdymercury ferdymercury commented May 18, 2026

Fixes #22300

code rescued from 8446def

@TomasDado would this PR error out soon enough for your build?

@ferdymercury ferdymercury requested a review from guitargeek May 18, 2026 14:30
@ferdymercury ferdymercury marked this pull request as ready for review May 18, 2026 14:30
@ferdymercury ferdymercury requested a review from bellenot as a code owner May 18, 2026 14:30
@TomasDado
Copy link
Copy Markdown
Contributor

Hello, indeed, I get this in the cmake configuration step:

CMake Error at /usr/share/cmake-4.2/Modules/FindPackageHandleStandardArgs.cmake:290 (message):
  Could NOT find ZeroMQ (missing: ZeroMQ_LIBRARIES ZeroMQ_INCLUDE_DIRS)
  (Required is at least version "4.3.5")
Call Stack (most recent call first):
  /usr/share/cmake-4.2/Modules/FindPackageHandleStandardArgs.cmake:654 (_FPHSA_FAILURE_MESSAGE)
  cmake/modules/FindZeroMQ.cmake:58 (find_package_handle_standard_args)
  cmake/modules/SearchInstalledSoftware.cmake:137 (_find_package)
  cmake/modules/SearchInstalledSoftware.cmake:1423 (find_package)
  CMakeLists.txt:134 (include)

@ferdymercury
Copy link
Copy Markdown
Collaborator Author

I get this in the cmake configuration step:

That's a different error though saying that package is not installed ?

Did you install libzmq3-dev and does it have a version >= 4.3.5?

@TomasDado
Copy link
Copy Markdown
Contributor

Sorry, I forgot I am on a different machine now...
I now did:

sudo apt-get install libzmq3-dev

This installed version 4.3.5.

For the cmake step I get:

CMake Error at cmake/modules/FindZeroMQ.cmake:48 (message):
  ZeroMQ library was compiled without draft API support (-DENABLE_DRAFTS).
Call Stack (most recent call first):
  cmake/modules/SearchInstalledSoftware.cmake:137 (_find_package)
  cmake/modules/SearchInstalledSoftware.cmake:1423 (find_package)
  CMakeLists.txt:134 (include)

@ferdymercury
Copy link
Copy Markdown
Collaborator Author

Great, that seems to work! Thks for checking

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 18, 2026

Test Results

    22 files      22 suites   3d 10h 47m 28s ⏱️
 3 855 tests  3 855 ✅ 0 💤 0 ❌
76 132 runs  76 132 ✅ 0 💤 0 ❌

Results for commit e28b80e.

♻️ This comment has been updated with latest results.

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

Successfully merging this pull request may close these issues.

Compilation failure with Ubuntu 26.04

3 participants