Any idea why this Swift package SwiftyHaru has stopped building with the Swift 5.3 beta toolchain from Xcode?
With the Swift 5.2 toolchain:
MacBook-Pro:SwiftyHaru pvieito$ swift --version
Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53)
Target: x86_64-apple-darwin20.0.0
MacBook-Pro:SwiftyHaru pvieito$ swift build
[103/103] Merging module SwiftyHaru
With the new Swift 5.3 beta toolchain:
MacBook-Pro:SwiftyHaru pvieito$ swift --version
Apple Swift version 5.3 (swiftlang-1200.0.25.2 clang-1200.0.27.1)
Target: x86_64-apple-darwin20.0.0
MacBook-Pro:SwiftyHaru pvieito$ swift build
While building module 'CLibPNG' imported from /Users/pvieito/Downloads/SwiftyHaru/CLibHaru/hpdf_image_png.c:23:
In file included from <module-includes>:1:
/Users/pvieito/Downloads/SwiftyHaru/CLibPNG/include/pngstruct.h:151:4: error: unknown type name 'png_error_ptr'
png_error_ptr error_fn; /* function for printing errors and aborting */
^
/Users/pvieito/Downloads/SwiftyHaru/CLibPNG/include/pngstruct.h:155:4: error: unknown type name 'png_voidp'
png_voidp error_ptr; /* user supplied struct for error functions */
^
unknown type name 'png_rw_ptr'
png_rw_ptr write_data_fn; /* function for writing output data */
^
/Users/pvieito/Downloads/SwiftyHaru/CLibPNG/include/pngstruct.h:157:4: error: unknown type name 'png_rw_ptr'
png_rw_ptr read_data_fn; /* function for reading input data */
^
/Users/pvieito/Downloads/SwiftyHaru/CLibPNG/include/pngstruct.h:158:4: error: unknown type name 'png_voidp'
png_voidp io_ptr; /* ptr to application struct for I/O functions */
^
/Users/pvieito/Downloads/SwiftyHaru/CLibPNG/include/pngstruct.h:178:4: error: unknown type name 'png_uint_32'
png_uint_32 mode; /* tells us where we are in the PNG file */
^
:4: error: unknown type name 'png_uint_32'
png_uint_32 flags; /* flags indicating various things to libpng */
^
/Users/pvieito/Downloads/SwiftyHaru/CLibPNG/include/pngstruct.h:180:4: error: unknown type name 'png_uint_32'
png_uint_32 transformations; /* which transformations to perform */
^
/Users/pvieito/Downloads/SwiftyHaru/CLibPNG/include/pngstruct.h:182:4: error: unknown type name 'png_uint_32'
png_uint_32 zowner; /* ID (chunk type) of zstream owner, 0 if none */
^
/Users/pvieito/Downloads/SwiftyHaru/CLibPNG/include/pngstruct.h:213:4: error: unknown type name 'png_uint_32'
png_uint_32 width; /* width of image in pixels */
^
/Users/pvieito/Downloads/SwiftyHaru/CLibPNG/include/pngstruct.h:214:4: error: unknown type name 'png_uint_32'
png_uint_32 height; /* height of image in pixels */
^
/Users/pvieito/Downloads/SwiftyHaru/CLibPNG/include/pngstruct.h:215:4: error: unknown type name 'png_uint_32'
png_uint_32 num_rows; /* number of rows in current pass */
^
/Users/pvieito/Downloads/SwiftyHaru/CLibPNG/include/pngstruct.h:216:4: error: unknown type name 'png_uint_32'
png_uint_32 usr_width; /* width of row at start of write */
^
/Users/pvieito/Downloads/SwiftyHaru/CLibPNG/include/pngstruct.h:217:4: error: unknown type name 'png_size_t'; did you mean 'z_size_t'?
png_size_t rowbytes; /* size of row in bytes */
/Applications/Xcode-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/usr/include/zconf.h:248:21: note: 'z_size_t' declared here
typedef size_t z_size_t;
^
While building module 'CLibPNG' imported from /Users/pvieito/Downloads/SwiftyHaru/CLibHaru/hpdf_image_png.c:23:
In file included from <module-includes>:1:
error: unknown type name 'png_uint_32'
png_uint_32 iwidth; /* width of current interlaced row in pixels */
^
/Users/pvieito/Downloads/SwiftyHaru/CLibPNG/include/pngstruct.h:219:4: error: unknown type name 'png_uint_32'
png_uint_32 row_number; /* current row in interlace pass */
^
/Users/pvieito/Downloads/SwiftyHaru/CLibPNG/include/pngstruct.h:220:4: error: unknown type name 'png_uint_32'
png_uint_32 chunk_name; /* PNG_CHUNK() id of current chunk */
^
/Users/pvieito/Downloads/SwiftyHaru/CLibPNG/include/pngstruct.h:221:4: error: unknown type name 'png_bytep'
png_bytep prev_row; /* buffer to save previous (unfiltered) row.
^
/Users/pvieito/Downloads/SwiftyHaru/CLibPNG/include/pngstruct.h:226:4: error: unknown type name 'png_bytep'
png_bytep row_buf; /* buffer to save current (unfiltered) row.
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
/Users/pvieito/Downloads/SwiftyHaru/CLibHaru/hpdf_image_png.c:23:10: fatal error: could not build module 'CLibPNG'
#include "png.h"
~~~~~~~~^~~~~~~
21 errors generated.
[43/72] Compiling CLibHaru hpdf_fontdef_tt.c