[
https://issues.apache.org/jira/browse/MINIFICPP-2618?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ferenc Gerlits resolved MINIFICPP-2618.
---------------------------------------
Resolution: Fixed
> Build failure of zlib on MacOS runner
> -------------------------------------
>
> Key: MINIFICPP-2618
> URL: https://issues.apache.org/jira/browse/MINIFICPP-2618
> Project: Apache NiFi MiNiFi C++
> Issue Type: Bug
> Reporter: Gábor Gyimesi
> Assignee: Gábor Gyimesi
> Priority: Blocker
> Time Spent: 40m
> Remaining Estimate: 0h
>
> Build fails when compiling minifi dependency zlib library on MacOS runner in
> the CI with the following error:
> {code:java}
> 2025-09-02T08:23:07.7877670Z /opt/homebrew/opt/ccache/libexec/cc -DZLIB_DLL
> -I/Users/runner/work/nifi-minifi-cpp/nifi-minifi-cpp/build/zlib-external-prefix/src/zlib-external-build
>
> -I/Users/runner/work/nifi-minifi-cpp/nifi-minifi-cpp/build/thirdparty/zlib-src
> -w -O3 -DNDEBUG -arch arm64 -isysroot
> /Applications/Xcode_16.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk
> -fPIC -MD -MT CMakeFiles/zlib.dir/zutil.o -MF CMakeFiles/zlib.dir/zutil.o.d
> -o CMakeFiles/zlib.dir/zutil.o -c
> /Users/runner/work/nifi-minifi-cpp/nifi-minifi-cpp/build/thirdparty/zlib-src/zutil.c
> 2025-09-02T08:23:07.7976210Z In file included from
> /Users/runner/work/nifi-minifi-cpp/nifi-minifi-cpp/build/thirdparty/zlib-src/zutil.c:10:
> 2025-09-02T08:23:07.8054950Z In file included from
> /Users/runner/work/nifi-minifi-cpp/nifi-minifi-cpp/build/thirdparty/zlib-src/gzguts.h:21:
> 2025-09-02T08:23:07.8160070Z In file included from
> /Applications/Xcode_16.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/stdio.h:61:
> 2025-09-02T08:23:07.8263090Z
> /Applications/Xcode_16.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/_stdio.h:318:7:
> error: expected identifier or '('
> 2025-09-02T08:23:07.8364730Z 318 | FILE *fdopen(int, const char *)
> __DARWIN_ALIAS_STARTING(__MAC_10_6, __IPHONE_2_0, __DARWIN_ALIAS(fdopen));
> 2025-09-02T08:23:07.8465940Z | ^
> 2025-09-02T08:23:07.8567170Z
> /Users/runner/work/nifi-minifi-cpp/nifi-minifi-cpp/build/thirdparty/zlib-src/zutil.h:140:33:
> note: expanded from macro 'fdopen'
> 2025-09-02T08:23:07.8669440Z 140 | # define fdopen(fd,mode) NULL /*
> No fdopen() */
> 2025-09-02T08:23:07.8771190Z | ^
> 2025-09-02T08:23:07.8873860Z
> /Applications/Xcode_16.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/__stddef_null.h:26:16:
> note: expanded from macro 'NULL'
> 2025-09-02T08:23:07.8975530Z 26 | #define NULL ((void*)0)
> 2025-09-02T08:23:07.9076590Z | ^ {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)