https://sourceware.org/bugzilla/show_bug.cgi?id=33097
Bug ID: 33097 Summary: zlib compile issue on macOS Product: binutils Version: 2.45 Status: UNCONFIRMED Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: zlewko at gmail dot com CC: sourceware at ryandesign dot com Target Milestone: --- CC: sourceware at ryandesign dot com The version of zlib on head doesn't compile in Mac OS (it used to work on an older machine but stopped working on a newer one...). I'm indirectly using this via riscv32-gnu-toolchain and have not directly duplicated it with this library only but from the source the issue is there on head. The issue is around line 140 and 169 of zutil.h where both ifdefs are true and OS_CODE gets redefined but fdopen is still none. I think this has been fixed in other zlib libraries (https://github.com/madler/zlib) where this file no longer redefines fdopen. I also saw the same issue in the zlib in gdb. --- Comment #1 from Ryan Carsten Schmidt <sourceware at ryandesign dot com> --- The fix is: https://github.com/madler/zlib/commit/4bd9a71f3539b5ce47f0c67ab5e01f3196dc8ef9 It is included in zlib 1.3.1. Please update the bundled zlib to the latest version. -- You are receiving this mail because: You are on the CC list for the bug.