Codex CLI fails to build with OpenSSL 4.0

Open 💬 0 comments Opened Jul 25, 2026 by loqs

Codex CLI Version

codex HEAD https://github.com/openai/codex/commit/20dafe201d91d4405eef05ecd1db0257f13a9ac8

System information

Arch Linux Rolling

Describe the bug

Codex CLI fails to build against OpenSSL 4.0.

Additional information

Steps to reproduce:

$ git clone https://github.com/openai/codex.git
$ cd codex/codex-rs
$ cargo build --bin codex --bin codex-code-mode-host --bin codex-responses-api-proxy
....
  --- stderr

  thread 'main' (4644) panicked at /build/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/openssl-sys-0.9.111/build/main.rs:472:5:


  This crate is only compatible with OpenSSL (version 1.0.2 through 1.1.1, or 3), or LibreSSL 3.5
  through 4.2.x, but a different version of OpenSSL was found. The build is now aborting
  due to this version mismatch.


  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...

@orhun @pierres

View original on GitHub ↗