Codex CLI fails to build with OpenSSL 4.0

Open
#35,404 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
66/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
rust
Domain
build-system, cli

Research direction

Start in codex/codex-rs and reproduce with the listed cargo build command on Arch Linux Rolling. Review the openssl-sys 0.9.114 and openssl 0.10.78 changes linked in the issue, then verify that all three Codex binaries build successfully against OpenSSL 4.0.

Written by the indexing model from the issue text.

Description

bug CLI

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

Dominant language
Rust
Stars
125k
Forks
19.5k
Avg merge
1m
Merged PRs (30d)
1k

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from openai/codex

All issues in openai/codex

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.