On 4/3/2025 3:27 PM, Vadim Zeitlin wrote:
> Are these really errors or warnings? Could you please give (part of) the
> exact compiler output?
>
> Thanks,
> VZ
After building first time (to get past all the files that compile), this
is the full error log from make:
======
/Users/dconnet/devtools/wx/wxWidgets-3.2.7/build-release-arm/bk-deps gcc
-isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
-mmacosx-version-min=10.13 -c -o wxzlib_zutil.o
-I/Users/dconnet/devtools/wx/wxWidgets-3.2.7/build-release-arm/lib/wx/include/osx_cocoa-unicode-static-3.2
-I../include -D_FILE_OFFSET_BITS=64 -DwxDEBUG_LEVEL=0 -DNDEBUG -Wall
-Wundef -O2 -arch arm64 -fno-common -dynamic -fPIC -DPIC
../src/zlib/zutil.c
In file included from ../src/zlib/zutil.c:8:
../src/zlib/zutil.h:170:11: warning: 'OS_CODE' macro redefined
[-Wmacro-redefined]
170 | # define OS_CODE 19
| ^
../src/zlib/zutil.h:141:11: note: previous definition is here
141 | # define OS_CODE 7
| ^
In file included from ../src/zlib/zutil.c:10:
In file included from ../src/zlib/gzguts.h:21:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:61:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:318:7:
error: expected identifier or '('
318 | FILE *fdopen(int, const char *)
__DARWIN_ALIAS_STARTING(__MAC_10_6, __IPHONE_2_0, __DARWIN_ALIAS(fdopen));
| ^
../src/zlib/zutil.h:147:33: note: expanded from macro 'fdopen'
147 | # define fdopen(fd,mode) NULL /* No fdopen() */
| ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/__stddef_null.h:26:16:
note: expanded from macro 'NULL'
26 | #define NULL ((void*)0)
| ^
In file included from ../src/zlib/zutil.c:10:
In file included from ../src/zlib/gzguts.h:21:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:61:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:318:7:
error: expected ')'
../src/zlib/zutil.h:147:33: note: expanded from macro 'fdopen'
147 | # define fdopen(fd,mode) NULL /* No fdopen() */
| ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/__stddef_null.h:26:16:
note: expanded from macro 'NULL'
26 | #define NULL ((void*)0)
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:318:7:
note: to match this '('
../src/zlib/zutil.h:147:33: note: expanded from macro 'fdopen'
147 | # define fdopen(fd,mode) NULL /* No fdopen() */
| ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/__stddef_null.h:26:15:
note: expanded from macro 'NULL'
26 | #define NULL ((void*)0)
| ^
In file included from ../src/zlib/zutil.c:10:
In file included from ../src/zlib/gzguts.h:21:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:61:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:318:7:
error: expected ')'
318 | FILE *fdopen(int, const char *)
__DARWIN_ALIAS_STARTING(__MAC_10_6, __IPHONE_2_0, __DARWIN_ALIAS(fdopen));
| ^
../src/zlib/zutil.h:147:33: note: expanded from macro 'fdopen'
147 | # define fdopen(fd,mode) NULL /* No fdopen() */
| ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/__stddef_null.h:26:22:
note: expanded from macro 'NULL'
26 | #define NULL ((void*)0)
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:318:7:
note: to match this '('
../src/zlib/zutil.h:147:33: note: expanded from macro 'fdopen'
147 | # define fdopen(fd,mode) NULL /* No fdopen() */
| ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/__stddef_null.h:26:14:
note: expanded from macro 'NULL'
26 | #define NULL ((void*)0)
| ^
../src/zlib/zutil.c:135:22: warning: a function definition without a
prototype is deprecated in all versions of C and is not supported in C23
[-Wdeprecated-non-prototype]
135 | const char * ZEXPORT zError(err)
| ^
../src/zlib/zconf.h:169:33: note: expanded from macro 'zError'
169 | # define zError Z_ADD_PREFIX(zError)
| ^
../src/zlib/zconf.h:42:30: note: expanded from macro 'Z_ADD_PREFIX'
42 | # define Z_ADD_PREFIX(name) ZLIB_CONCAT(Z_PREFIX_, name)
| ^
../src/zlib/zconf.h:36:27: note: expanded from macro 'ZLIB_CONCAT'
36 | #define ZLIB_CONCAT(x, y) ZLIB_CONCAT2(x, y)
| ^
../src/zlib/zconf.h:35:28: note: expanded from macro 'ZLIB_CONCAT2'
35 | #define ZLIB_CONCAT2(x, y) x ## y
| ^
<scratch space>:9:1: note: expanded from here
9 | wx_zlib_zError
| ^
../src/zlib/zutil.c:307:22: warning: a function definition without a
prototype is deprecated in all versions of C and is not supported in C23
[-Wdeprecated-non-prototype]
307 | voidpf ZLIB_INTERNAL zcalloc(opaque, items, size)
| ^
../src/zlib/zconf.h:171:35: note: expanded from macro 'zcalloc'
171 | # define zcalloc Z_ADD_PREFIX(zcalloc)
| ^
../src/zlib/zconf.h:42:30: note: expanded from macro 'Z_ADD_PREFIX'
42 | # define Z_ADD_PREFIX(name) ZLIB_CONCAT(Z_PREFIX_, name)
| ^
../src/zlib/zconf.h:36:27: note: expanded from macro 'ZLIB_CONCAT'
36 | #define ZLIB_CONCAT(x, y) ZLIB_CONCAT2(x, y)
| ^
../src/zlib/zconf.h:35:28: note: expanded from macro 'ZLIB_CONCAT2'
35 | #define ZLIB_CONCAT2(x, y) x ## y
| ^
<scratch space>:12:1: note: expanded from here
12 | wx_zlib_zcalloc
| ^
../src/zlib/zutil.c:317:20: warning: a function definition without a
prototype is deprecated in all versions of C and is not supported in C23
[-Wdeprecated-non-prototype]
317 | void ZLIB_INTERNAL zcfree(opaque, ptr)
| ^
../src/zlib/zconf.h:172:35: note: expanded from macro 'zcfree'
172 | # define zcfree Z_ADD_PREFIX(zcfree)
| ^
../src/zlib/zconf.h:42:30: note: expanded from macro 'Z_ADD_PREFIX'
42 | # define Z_ADD_PREFIX(name) ZLIB_CONCAT(Z_PREFIX_, name)
| ^
../src/zlib/zconf.h:36:27: note: expanded from macro 'ZLIB_CONCAT'
36 | #define ZLIB_CONCAT(x, y) ZLIB_CONCAT2(x, y)
| ^
../src/zlib/zconf.h:35:28: note: expanded from macro 'ZLIB_CONCAT2'
35 | #define ZLIB_CONCAT2(x, y) x ## y
| ^
<scratch space>:17:1: note: expanded from here
17 | wx_zlib_zcfree
| ^
4 warnings and 3 errors generated.
make: *** [wxzlib_zutil.o] Error 1