boostorg / boostorg/build

zlib: HAVE_UNISTD_H is required for successful build on Apple Silicon

Open
#638 5 comments 0 reactions 0 assignees View on GitHub
bug transition
Dominant language
C++
Stars
251
Forks
63
PR merge metrics
No merged PRs in 30d

Description

^^

Otherwise, some functions will be undefined and zlib devs insist that there are no errors when building with `./configure` (https://github.com/madler/zlib/pull/509). So from this point of view we have to pass the right flags if we don't use this script.

Contributor guide

Open the contributing guide

Research direction

Start by tracing the non-configure build path and its flags for zlib on Apple Silicon, using ./configure as the stated reference. Confirm where HAVE_UNISTD_H must be passed and verify that the affected functions are defined and the build succeeds without relying on the configure script.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.