==> Building on cryogonal ==> Checking for remote environment... ==> Syncing package to remote host... sending incremental file list created directory packages/chmlib ./ .SRCINFO 353 100% 0.00kB/s 0:00:00 353 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=6/8) LICENSE 646 100% 630.86kB/s 0:00:00 646 100% 630.86kB/s 0:00:00 (xfr#2, to-chk=5/8) PKGBUILD 832 100% 812.50kB/s 0:00:00 832 100% 812.50kB/s 0:00:00 (xfr#3, to-chk=4/8) REUSE.toml 375 100% 366.21kB/s 0:00:00 375 100% 366.21kB/s 0:00:00 (xfr#4, to-chk=3/8) chmlib-0.40-9.log 472 100% 460.94kB/s 0:00:00 472 100% 460.94kB/s 0:00:00 (xfr#5, to-chk=2/8) LICENSES/ LICENSES/0BSD.txt -> ../LICENSE sent 2,085 bytes received 163 bytes 4,496.00 bytes/sec total size is 2,412 speedup is 1.07 ==> Applying RISC-V patches... sending incremental file list ./ define-riscv64-sized-types.patch 648 100% 0.00kB/s 0:00:00 648 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=1/3) riscv64.patch 728 100% 236.98kB/s 0:00:00 728 100% 236.98kB/s 0:00:00 (xfr#2, to-chk=0/3) sent 902 bytes received 57 bytes 1,918.00 bytes/sec total size is 1,376 speedup is 1.43 patching file PKGBUILD Hunk #1 succeeded at 10 with fuzz 2. ==> Patching arch to riscv64... ==> Running pkgctl build --arch riscv64 --repo extra on remote host... ==> WARNING: unsupported architecture: riscv64 ==> Building chmlib  -> repo: extra  -> arch: riscv64  -> worker: felix-0 ==> Building chmlib for [extra] (riscv64) ]2;🔵 Container arch-nspawn-338208 on cryogonal.felixc.at\[?25l:: Synchronizing package databases... core downloading... extra downloading... error: restricting filesystem access failed because landlock is not supported by the kernel! :: Starting full system upgrade... there is nothing to do [?25h==> Building in chroot for [extra] (riscv64)... ==> Synchronizing chroot copy [/var/lib/archbuild/extra-riscv64/root] -> [felix-0]...done ==> Making package: chmlib 0.40-9 (Mon Sep 1 06:58:36 2025) ==> Retrieving sources...  -> Downloading chmlib-0.40.tar.bz2... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 4 246k 4 12155 0 0 14370 0 0:00:17 --:--:-- 0:00:17 14367 37 246k 37 94119 0 0 50392 0 0:00:05 0:00:01 0:00:04 50384 100 246k 100 246k 0 0 87212 0 0:00:02 0:00:02 --:--:-- 87209 100 246k 100 246k 0 0 86796 0 0:00:02 0:00:02 --:--:-- 86789  -> Found define-riscv64-sized-types.patch ==> Validating source files with sha256sums... chmlib-0.40.tar.bz2 ... Passed define-riscv64-sized-types.patch ... Passed ]2;🔵 Container arch-nspawn-339272 on cryogonal.felixc.at\==> Making package: chmlib 0.40-9 (Mon Sep 1 06:59:01 2025) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources...  -> Found chmlib-0.40.tar.bz2  -> Found define-riscv64-sized-types.patch ==> WARNING: Skipping all source file integrity checks. ==> Extracting sources...  -> Extracting chmlib-0.40.tar.bz2 with bsdtar ==> Starting prepare()... autoreconf: export WARNINGS= autoreconf: warning: autoconf input should be named 'configure.ac', not 'configure.in' autoreconf: Entering directory '.' autoreconf: configure.in: not using Gettext autoreconf: running: aclocal --force aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in' autoreconf: configure.in: tracing autoreconf: running: libtoolize --copy --force libtoolize: putting auxiliary files in '.'. libtoolize: copying file './ltmain.sh' libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.in, libtoolize: and rerunning libtoolize and aclocal. libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am. autoreconf: configure.in: not using Intltool autoreconf: configure.in: not using Gtkdoc autoreconf: running: aclocal --force aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in' autoreconf: running: /usr/bin/autoconf --force configure.in:11: warning: The macro 'AC_PROG_LD' is obsolete. configure.in:11: You should run autoupdate. aclocal.m4:3517: AC_PROG_LD is expanded from... configure.in:11: the top level configure.in:12: warning: The macro 'AM_PROG_LIBTOOL' is obsolete. configure.in:12: You should run autoupdate. aclocal.m4:123: AM_PROG_LIBTOOL is expanded from... configure.in:12: the top level configure.in:21: warning: The macro 'AC_HELP_STRING' is obsolete. configure.in:21: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... ./lib/autoconf/general.m4:1534: AC_ARG_ENABLE is expanded from... configure.in:21: the top level configure.in:43: warning: The macro 'AC_HELP_STRING' is obsolete. configure.in:43: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... ./lib/autoconf/general.m4:1534: AC_ARG_ENABLE is expanded from... configure.in:43: the top level configure.in:64: warning: The macro 'AC_HELP_STRING' is obsolete. configure.in:64: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... ./lib/autoconf/general.m4:1534: AC_ARG_ENABLE is expanded from... configure.in:64: the top level configure.in:75: warning: The macro 'AC_HELP_STRING' is obsolete. configure.in:75: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... ./lib/autoconf/general.m4:1534: AC_ARG_ENABLE is expanded from... configure.in:75: the top level configure.in:86: warning: The macro 'AC_HELP_STRING' is obsolete. configure.in:86: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... ./lib/autoconf/general.m4:1534: AC_ARG_ENABLE is expanded from... configure.in:86: the top level configure.in:189: warning: AC_OUTPUT should be used without arguments. configure.in:189: You should run autoupdate. autoreconf: configure.in: not using Autoheader autoreconf: running: automake --add-missing --copy --force-missing automake: warning: autoconf input should be named 'configure.ac', not 'configure.in' configure.in:10: installing './compile' configure.in:5: installing './missing' automake: warning: autoconf input should be named 'configure.ac', not 'configure.in' src/Makefile.am: installing './depcomp' autoreconf: Leaving directory '.' ==> Starting build()... checking for a BSD-compatible install... /usr/bin/install -c checking whether sleep supports fractional seconds... yes checking filesystem timestamp resolution... 0.01 checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking xargs -n works... yes checking whether UID '1000' is supported by ustar format... yes checking whether GID '1000' is supported by ustar format... yes checking how to create a ustar tar archive... gnutar checking whether to enable maintainer-specific portions of Makefiles... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of gcc... gcc3 checking build system type... riscv64-unknown-linux-gnu checking host system type... riscv64-unknown-linux-gnu checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking how to print strings... printf checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert riscv64-unknown-linux-gnu file names to riscv64-unknown-linux-gnu format... func_convert_file_noop checking how to convert riscv64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for file... file checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ranlib... ranlib checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for mt... no checking if : is a manifest tool... no checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking which variant of shared library versioning to provide... (default) aix checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for string.h... (cached) yes checking for strings.h... (cached) yes checking for unistd.h... (cached) yes checking for pthread_mutex_init in -lpthread... yes checking for lseek64... yes checking for pread64... yes checking for size_t... yes checking for GNU libc compatible malloc... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: executing depfiles commands config.status: executing libtool commands Making all in src make[1]: Entering directory '/build/chmlib/src/chmlib-0.40/src' gcc -DPACKAGE_NAME=\"chmlib\" -DPACKAGE_TARNAME=\"chmlib\" -DPACKAGE_VERSION=\"0.40\" -DPACKAGE_STRING=\"chmlib\ 0.40\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"chmlib\" -DVERSION=\"0.40\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIBPTHREAD=1 -DHAVE_MALLOC=1 -I. -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/chmlib/src=/usr/src/debug/chmlib -flto=auto -Wno-implicit-function-declaration -DCHM_MT -DCHM_USE_PREAD -DCHM_USE_IO64 -MT chm_http.o -MD -MP -MF .deps/chm_http.Tpo -c -o chm_http.o chm_http.c /bin/sh ../libtool --tag=CC --mode=compile gcc -DPACKAGE_NAME=\"chmlib\" -DPACKAGE_TARNAME=\"chmlib\" -DPACKAGE_VERSION=\"0.40\" -DPACKAGE_STRING=\"chmlib\ 0.40\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"chmlib\" -DVERSION=\"0.40\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIBPTHREAD=1 -DHAVE_MALLOC=1 -I. -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/chmlib/src=/usr/src/debug/chmlib -flto=auto -Wno-implicit-function-declaration -DCHM_MT -DCHM_USE_PREAD -DCHM_USE_IO64 -MT chm_lib.lo -MD -MP -MF .deps/chm_lib.Tpo -c -o chm_lib.lo chm_lib.c /bin/sh ../libtool --tag=CC --mode=compile gcc -DPACKAGE_NAME=\"chmlib\" -DPACKAGE_TARNAME=\"chmlib\" -DPACKAGE_VERSION=\"0.40\" -DPACKAGE_STRING=\"chmlib\ 0.40\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"chmlib\" -DVERSION=\"0.40\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIBPTHREAD=1 -DHAVE_MALLOC=1 -I. -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/chmlib/src=/usr/src/debug/chmlib -flto=auto -Wno-implicit-function-declaration -DCHM_MT -DCHM_USE_PREAD -DCHM_USE_IO64 -MT lzx.lo -MD -MP -MF .deps/lzx.Tpo -c -o lzx.lo lzx.c gcc -DPACKAGE_NAME=\"chmlib\" -DPACKAGE_TARNAME=\"chmlib\" -DPACKAGE_VERSION=\"0.40\" -DPACKAGE_STRING=\"chmlib\ 0.40\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"chmlib\" -DVERSION=\"0.40\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIBPTHREAD=1 -DHAVE_MALLOC=1 -I. -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/chmlib/src=/usr/src/debug/chmlib -flto=auto -Wno-implicit-function-declaration -DCHM_MT -DCHM_USE_PREAD -DCHM_USE_IO64 -MT enum_chmLib.o -MD -MP -MF .deps/enum_chmLib.Tpo -c -o enum_chmLib.o enum_chmLib.c libtool: compile: gcc -DPACKAGE_NAME=\"chmlib\" -DPACKAGE_TARNAME=\"chmlib\" -DPACKAGE_VERSION=\"0.40\" "-DPACKAGE_STRING=\"chmlib 0.40\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"chmlib\" -DVERSION=\"0.40\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIBPTHREAD=1 -DHAVE_MALLOC=1 -I. -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/chmlib/src=/usr/src/debug/chmlib -flto=auto -Wno-implicit-function-declaration -DCHM_MT -DCHM_USE_PREAD -DCHM_USE_IO64 -MT chm_lib.lo -MD -MP -MF .deps/chm_lib.Tpo -c chm_lib.c -fPIC -DPIC -o .libs/chm_lib.o chm_http.c: In function ‘service_request’: chm_http.c:348:5: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 348 | fgets(buffer, 4096, fout); | ^~~~~~~~~~~~~~~~~~~~~~~~~ libtool: compile: gcc -DPACKAGE_NAME=\"chmlib\" -DPACKAGE_TARNAME=\"chmlib\" -DPACKAGE_VERSION=\"0.40\" "-DPACKAGE_STRING=\"chmlib 0.40\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"chmlib\" -DVERSION=\"0.40\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIBPTHREAD=1 -DHAVE_MALLOC=1 -I. -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/chmlib/src=/usr/src/debug/chmlib -flto=auto -Wno-implicit-function-declaration -DCHM_MT -DCHM_USE_PREAD -DCHM_USE_IO64 -MT lzx.lo -MD -MP -MF .deps/lzx.Tpo -c lzx.c -fPIC -DPIC -o .libs/lzx.o mv -f .deps/enum_chmLib.Tpo .deps/enum_chmLib.Po gcc -DPACKAGE_NAME=\"chmlib\" -DPACKAGE_TARNAME=\"chmlib\" -DPACKAGE_VERSION=\"0.40\" -DPACKAGE_STRING=\"chmlib\ 0.40\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"chmlib\" -DVERSION=\"0.40\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIBPTHREAD=1 -DHAVE_MALLOC=1 -I. -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/chmlib/src=/usr/src/debug/chmlib -flto=auto -Wno-implicit-function-declaration -DCHM_MT -DCHM_USE_PREAD -DCHM_USE_IO64 -MT enumdir_chmLib.o -MD -MP -MF .deps/enumdir_chmLib.Tpo -c -o enumdir_chmLib.o enumdir_chmLib.c mv -f .deps/chm_http.Tpo .deps/chm_http.Po gcc -DPACKAGE_NAME=\"chmlib\" -DPACKAGE_TARNAME=\"chmlib\" -DPACKAGE_VERSION=\"0.40\" -DPACKAGE_STRING=\"chmlib\ 0.40\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"chmlib\" -DVERSION=\"0.40\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIBPTHREAD=1 -DHAVE_MALLOC=1 -I. -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/chmlib/src=/usr/src/debug/chmlib -flto=auto -Wno-implicit-function-declaration -DCHM_MT -DCHM_USE_PREAD -DCHM_USE_IO64 -MT extract_chmLib.o -MD -MP -MF .deps/extract_chmLib.Tpo -c -o extract_chmLib.o extract_chmLib.c chm_lib.c:179:2: error: #error "Please define the sized types for your platform in chm_lib.c" 179 | #error "Please define the sized types for your platform in chm_lib.c" | ^~~~~ chm_lib.c:260:29: error: unknown type name 'Int32'; did you mean 'int32_t'? 260 | Int32 *dest) | ^~~~~ | int32_t chm_lib.c:272:30: error: unknown type name 'UInt32' 272 | UInt32 *dest) | ^~~~~~ chm_lib.c:284:29: error: unknown type name 'Int64'; did you mean 'int64_t'? 284 | Int64 *dest) | ^~~~~ | int64_t chm_lib.c:304:30: error: unknown type name 'UInt64' 304 | UInt64 *dest) | ^~~~~~ chm_lib.c:351:5: error: unknown type name 'Int32'; did you mean 'int32_t'? 351 | Int32 version; /* 4 */ | ^~~~~ | int32_t chm_lib.c:352:5: error: unknown type name 'Int32'; did you mean 'int32_t'? 352 | Int32 header_len; /* 8 */ | ^~~~~ | int32_t chm_lib.c:353:5: error: unknown type name 'Int32'; did you mean 'int32_t'? 353 | Int32 unknown_000c; /* c */ | ^~~~~ | int32_t chm_lib.c:354:5: error: unknown type name 'UInt32' 354 | UInt32 last_modified; /* 10 */ | ^~~~~~ chm_lib.c:355:5: error: unknown type name 'UInt32' 355 | UInt32 lang_id; /* 14 */ | ^~~~~~ mv -f .deps/enumdir_chmLib.Tpo .deps/enumdir_chmLib.Po chm_lib.c:356:5: error: unknown type name 'UChar' 356 | UChar dir_uuid[16]; /* 18 */ | ^~~~~ chm_lib.c:357:5: error: unknown type name 'UChar' 357 | UChar stream_uuid[16]; /* 28 */ | ^~~~~ chm_lib.c:358:5: error: unknown type name 'UInt64' 358 | UInt64 unknown_offset; /* 38 */ | ^~~~~~ gcc -DPACKAGE_NAME=\"chmlib\" -DPACKAGE_TARNAME=\"chmlib\" -DPACKAGE_VERSION=\"0.40\" -DPACKAGE_STRING=\"chmlib\ 0.40\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"chmlib\" -DVERSION=\"0.40\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIBPTHREAD=1 -DHAVE_MALLOC=1 -I. -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/chmlib/src=/usr/src/debug/chmlib -flto=auto -Wno-implicit-function-declaration -DCHM_MT -DCHM_USE_PREAD -DCHM_USE_IO64 -MT test_chmLib.o -MD -MP -MF .deps/test_chmLib.Tpo -c -o test_chmLib.o test_chmLib.c chm_lib.c:359:5: error: unknown type name 'UInt64' 359 | UInt64 unknown_len; /* 40 */ | ^~~~~~ chm_lib.c:360:5: error: unknown type name 'UInt64' 360 | UInt64 dir_offset; /* 48 */ | ^~~~~~ chm_lib.c:361:5: error: unknown type name 'UInt64' 361 | UInt64 dir_len; /* 50 */ | ^~~~~~ chm_lib.c:362:5: error: unknown type name 'UInt64' 362 | UInt64 data_offset; /* 58 (Not present before V3) */ | ^~~~~~ chm_lib.c: In function '_unmarshal_itsf_header': chm_lib.c:380:49: error: passing argument 3 of '_unmarshal_uuid' from incompatible pointer type [-Wincompatible-pointer-types] 380 | _unmarshal_uuid (pData, pDataLen, dest->dir_uuid); | ~~~~^~~~~~~~~~ | | | int * chm_lib.c:324:43: note: expected 'unsigned char *' but argument is of type 'int *' 324 | unsigned char *dest) | ~~~~~~~~~~~~~~~^~~~ chm_lib.c:381:49: error: passing argument 3 of '_unmarshal_uuid' from incompatible pointer type [-Wincompatible-pointer-types] 381 | _unmarshal_uuid (pData, pDataLen, dest->stream_uuid); | ~~~~^~~~~~~~~~~~~ | | | int * chm_lib.c:324:43: note: expected 'unsigned char *' but argument is of type 'int *' 324 | unsigned char *dest) | ~~~~~~~~~~~~~~~^~~~ chm_lib.c: At top level: chm_lib.c:427:5: error: unknown type name 'Int32'; did you mean 'int32_t'? 427 | Int32 version; /* 4 */ | ^~~~~ | int32_t chm_lib.c:428:5: error: unknown type name 'Int32'; did you mean 'int32_t'? 428 | Int32 header_len; /* 8 */ | ^~~~~ | int32_t chm_lib.c:429:5: error: unknown type name 'Int32'; did you mean 'int32_t'? 429 | Int32 unknown_000c; /* c */ | ^~~~~ | int32_t chm_lib.c:430:5: error: unknown type name 'UInt32' 430 | UInt32 block_len; /* 10 */ | ^~~~~~ chm_lib.c:431:5: error: unknown type name 'Int32'; did you mean 'int32_t'? 431 | Int32 blockidx_intvl; /* 14 */ | ^~~~~ | int32_t chm_lib.c:432:5: error: unknown type name 'Int32'; did you mean 'int32_t'? 432 | Int32 index_depth; /* 18 */ | ^~~~~ | int32_t chm_lib.c:433:5: error: unknown type name 'Int32'; did you mean 'int32_t'? 433 | Int32 index_root; /* 1c */ | ^~~~~ | int32_t chm_lib.c:434:5: error: unknown type name 'Int32'; did you mean 'int32_t'? 434 | Int32 index_head; /* 20 */ | ^~~~~ | int32_t chm_lib.c:435:5: error: unknown type name 'Int32'; did you mean 'int32_t'? 435 | Int32 unknown_0024; /* 24 */ | ^~~~~ | int32_t chm_lib.c:436:5: error: unknown type name 'UInt32' 436 | UInt32 num_blocks; /* 28 */ | ^~~~~~ chm_lib.c:437:5: error: unknown type name 'Int32'; did you mean 'int32_t'? 437 | Int32 unknown_002c; /* 2c */ | ^~~~~ | int32_t chm_lib.c:438:5: error: unknown type name 'UInt32' 438 | UInt32 lang_id; /* 30 */ | ^~~~~~ chm_lib.c:439:5: error: unknown type name 'UChar' 439 | UChar system_uuid[16]; /* 34 */ | ^~~~~ chm_lib.c:440:5: error: unknown type name 'UChar' 440 | UChar unknown_0044[16]; /* 44 */ | ^~~~~ chm_lib.c: In function '_unmarshal_itsp_header': chm_lib.c:465:49: error: passing argument 3 of '_unmarshal_uuid' from incompatible pointer type [-Wincompatible-pointer-types] 465 | _unmarshal_uuid (pData, pDataLen, dest->system_uuid); | ~~~~^~~~~~~~~~~~~ | | | int * chm_lib.c:324:43: note: expected 'unsigned char *' but argument is of type 'int *' 324 | unsigned char *dest) | ~~~~~~~~~~~~~~~^~~~ chm_lib.c:466:49: error: passing argument 3 of '_unmarshal_uchar_array' from incompatible pointer type [-Wincompatible-pointer-types] 466 | _unmarshal_uchar_array(pData, pDataLen, dest->unknown_0044, 16); | ~~~~^~~~~~~~~~~~~~ | | | int * chm_lib.c:221:50: note: expected 'unsigned char *' but argument is of type 'int *' 221 | unsigned char *dest, | ~~~~~~~~~~~~~~~^~~~ chm_lib.c: At top level: chm_lib.c:485:5: error: unknown type name 'UInt32' 485 | UInt32 free_space; /* 4 */ | ^~~~~~ chm_lib.c:486:5: error: unknown type name 'UInt32' 486 | UInt32 unknown_0008; /* 8 */ | ^~~~~~ chm_lib.c:487:5: error: unknown type name 'Int32'; did you mean 'int32_t'? 487 | Int32 block_prev; /* c */ | ^~~~~ | int32_t chm_lib.c:488:5: error: unknown type name 'Int32'; did you mean 'int32_t'? 488 | Int32 block_next; /* 10 */ | ^~~~~ | int32_t chm_lib.c:519:5: error: unknown type name 'UInt32' 519 | UInt32 free_space; /* 4 */ | ^~~~~~ chm_lib.c:545:5: error: unknown type name 'UInt32' 545 | UInt32 version; | ^~~~~~ chm_lib.c:546:5: error: unknown type name 'UInt32' 546 | UInt32 block_count; | ^~~~~~ chm_lib.c:547:5: error: unknown type name 'UInt32' 547 | UInt32 unknown; | ^~~~~~ chm_lib.c:548:5: error: unknown type name 'UInt32' 548 | UInt32 table_offset; | ^~~~~~ chm_lib.c:549:5: error: unknown type name 'UInt64' 549 | UInt64 uncompressed_len; | ^~~~~~ chm_lib.c:550:5: error: unknown type name 'UInt64' 550 | UInt64 compressed_len; | ^~~~~~ chm_lib.c:551:5: error: unknown type name 'UInt64' 551 | UInt64 block_len; | ^~~~~~ chm_lib.c:583:5: error: unknown type name 'UInt32' 583 | UInt32 size; /* 0 */ | ^~~~~~ chm_lib.c:585:5: error: unknown type name 'UInt32' 585 | UInt32 version; /* 8 */ | ^~~~~~ chm_lib.c:586:5: error: unknown type name 'UInt32' 586 | UInt32 resetInterval; /* c */ | ^~~~~~ chm_lib.c:587:5: error: unknown type name 'UInt32' 587 | UInt32 windowSize; /* 10 */ | ^~~~~~ chm_lib.c:588:5: error: unknown type name 'UInt32' 588 | UInt32 windowsPerReset; /* 14 */ | ^~~~~~ chm_lib.c:589:5: error: unknown type name 'UInt32' 589 | UInt32 unknown_18; /* 18 */ | ^~~~~~ chm_lib.c:655:5: error: unknown type name 'UInt64' 655 | UInt64 dir_offset; | ^~~~~~ chm_lib.c:656:5: error: unknown type name 'UInt64' 656 | UInt64 dir_len; | ^~~~~~ chm_lib.c:657:5: error: unknown type name 'UInt64' 657 | UInt64 data_offset; | ^~~~~~ chm_lib.c:658:5: error: unknown type name 'Int32'; did you mean 'int32_t'? 658 | Int32 index_root; | ^~~~~ | int32_t chm_lib.c:659:5: error: unknown type name 'Int32'; did you mean 'int32_t'? 659 | Int32 index_head; | ^~~~~ | int32_t chm_lib.c:660:5: error: unknown type name 'UInt32' 660 | UInt32 block_len; | ^~~~~~ chm_lib.c:662:5: error: unknown type name 'UInt64' 662 | UInt64 span; | ^~~~~~ chm_lib.c:669:5: error: unknown type name 'UInt32' 669 | UInt32 window_size; | ^~~~~~ chm_lib.c:670:5: error: unknown type name 'UInt32' 670 | UInt32 reset_interval; | ^~~~~~ chm_lib.c:671:5: error: unknown type name 'UInt32' 671 | UInt32 reset_blkcount; | ^~~~~~ chm_lib.c:678:5: error: unknown type name 'UChar' 678 | UChar **cache_blocks; | ^~~~~ chm_lib.c:679:5: error: unknown type name 'UInt64' 679 | UInt64 *cache_block_indices; | ^~~~~~ chm_lib.c:680:5: error: unknown type name 'Int32'; did you mean 'int32_t'? 680 | Int32 cache_num_blocks; | ^~~~~ | int32_t chm_lib.c:688:8: error: unknown type name 'Int64'; did you mean 'int64_t'? 688 | static Int64 _chm_fetch_bytes(struct chmFile *h, | ^~~~~ | int64_t chm_lib.c:689:31: error: unknown type name 'UChar' 689 | UChar *buf, | ^~~~~ mv -f .deps/extract_chmLib.Tpo .deps/extract_chmLib.Po chm_lib.c:690:31: error: unknown type name 'UInt64' 690 | UInt64 os, | ^~~~~~ chm_lib.c:691:31: error: unknown type name 'Int64'; did you mean 'int64_t'? 691 | Int64 len) | ^~~~~ | int64_t chm_lib.c: In function 'chm_open': chm_lib.c:830:47: error: 'UInt64' undeclared (first use in this function) 830 | if (_chm_fetch_bytes(newHandle, sbuffer, (UInt64)0, sremain) != sremain || | ^~~~~~ chm_lib.c:830:47: note: each undeclared identifier is reported only once for each function it appears in chm_lib.c:830:54: error: expected ')' before numeric constant 830 | if (_chm_fetch_bytes(newHandle, sbuffer, (UInt64)0, sremain) != sremain || | ~ ^ | ) chm_lib.c:846:34: error: expected ')' before 'itsfHeader' 846 | (UInt64)itsfHeader.dir_offset, sremain) != sremain || | ^~~~~~~~~~ | ) chm_lib.c:845:25: note: to match this '(' 845 | if (_chm_fetch_bytes(newHandle, sbuffer, | ^ chm_lib.c: In function 'chm_set_param': chm_lib.c:1033:17: error: unknown type name 'UChar' 1033 | UChar **newBlocks; | ^~~~~ chm_lib.c:1034:17: error: unknown type name 'UInt64' 1034 | UInt64 *newIndices; | ^~~~~~ chm_lib.c:1038:30: error: 'UChar' undeclared (first use in this function) 1038 | newBlocks = (UChar **)malloc(paramVal * sizeof (UChar *)); | ^~~~~ chm_lib.c:1038:38: error: expected expression before ')' token 1038 | newBlocks = (UChar **)malloc(paramVal * sizeof (UChar *)); | ^ chm_lib.c:1040:31: error: 'UInt64' undeclared (first use in this function) 1040 | newIndices = (UInt64 *)malloc(paramVal * sizeof (UInt64)); | ^~~~~~ chm_lib.c:1040:39: error: expected expression before ')' token 1040 | newIndices = (UInt64 *)malloc(paramVal * sizeof (UInt64)); | ^ chm_lib.c: At top level: chm_lib.c:1094:29: error: unknown type name 'UChar' 1094 | static void _chm_skip_cword(UChar **pEntry) | ^~~~~ chm_lib.c:1101:39: error: unknown type name 'UChar' 1101 | static void _chm_skip_PMGL_entry_data(UChar **pEntry) | ^~~~~ chm_lib.c:1109:8: error: unknown type name 'UInt64' 1109 | static UInt64 _chm_parse_cword(UChar **pEntry) | ^~~~~~ chm_lib.c:1109:32: error: unknown type name 'UChar' 1109 | static UInt64 _chm_parse_cword(UChar **pEntry) | ^~~~~ chm_lib.c:1123:28: error: unknown type name 'UChar' 1123 | static int _chm_parse_UTF8(UChar **pEntry, UInt64 count, char *path) | ^~~~~ chm_lib.c:1123:44: error: unknown type name 'UInt64' 1123 | static int _chm_parse_UTF8(UChar **pEntry, UInt64 count, char *path) | ^~~~~~ mv -f .deps/test_chmLib.Tpo .deps/test_chmLib.Po chm_lib.c:1142:34: error: unknown type name 'UChar' 1142 | static int _chm_parse_PMGL_entry(UChar **pEntry, struct chmUnitInfo *ui) | ^~~~~ chm_lib.c:1163:8: error: unknown type name 'UChar' 1163 | static UChar *_chm_find_in_PMGL(UChar *page_buf, | ^~~~~ chm_lib.c:1163:33: error: unknown type name 'UChar' 1163 | static UChar *_chm_find_in_PMGL(UChar *page_buf, | ^~~~~ chm_lib.c:1164:26: error: unknown type name 'UInt32' 1164 | UInt32 block_len, | ^~~~~~ chm_lib.c:1207:8: error: unknown type name 'Int32'; did you mean 'int32_t'? 1207 | static Int32 _chm_find_in_PMGI(UChar *page_buf, | ^~~~~ | int32_t chm_lib.c:1207:32: error: unknown type name 'UChar' 1207 | static Int32 _chm_find_in_PMGI(UChar *page_buf, | ^~~~~ chm_lib.c:1208:25: error: unknown type name 'UInt32' 1208 | UInt32 block_len, | ^~~~~~ chm_lib.c: In function 'chm_resolve_object': chm_lib.c:1259:5: error: unknown type name 'Int32'; did you mean 'int32_t'? 1259 | Int32 curPage; | ^~~~~ | int32_t chm_lib.c:1263:5: error: unknown type name 'UChar' 1263 | UChar *page_buf = malloc(h->block_len); | ^~~~~ chm_lib.c:1276:31: error: 'UInt64' undeclared (first use in this function) 1276 | (UInt64)h->dir_offset + (UInt64)curPage*h->block_len, | ^~~~~~ chm_lib.c:1276:38: error: expected ')' before 'h' 1276 | (UInt64)h->dir_offset + (UInt64)curPage*h->block_len, | ^ | ) chm_lib.c:1275:29: note: to match this '(' 1275 | if (_chm_fetch_bytes(h, page_buf, | ^ chm_lib.c:1287:13: error: unknown type name 'UChar' 1287 | UChar *pEntry = _chm_find_in_PMGL(page_buf, | ^~~~~ chm_lib.c:1287:29: error: initialization of 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 1287 | UChar *pEntry = _chm_find_in_PMGL(page_buf, | ^~~~~~~~~~~~~~~~~ chm_lib.c: At top level: chm_lib.c:1325:30: error: unknown type name 'UInt64' 1325 | UInt64 block, | ^~~~~~ chm_lib.c:1326:30: error: unknown type name 'UInt64' 1326 | UInt64 *start, | ^~~~~~ chm_lib.c:1327:30: error: unknown type name 'Int64'; did you mean 'int64_t'? 1327 | Int64 *len) | ^~~~~ | int64_t chm_lib.c:1386:8: error: unknown type name 'Int64'; did you mean 'int64_t'? 1386 | static Int64 _chm_decompress_block(struct chmFile *h, | ^~~~~ | int64_t chm_lib.c:1387:36: error: unknown type name 'UInt64' 1387 | UInt64 block, | ^~~~~~ chm_lib.c:1388:36: error: unknown type name 'UChar' 1388 | UChar **ubuffer) | ^~~~~ chm_lib.c:1507:8: error: unknown type name 'Int64'; did you mean 'int64_t'? 1507 | static Int64 _chm_decompress_region(struct chmFile *h, | ^~~~~ | int64_t chm_lib.c:1508:37: error: unknown type name 'UChar' 1508 | UChar *buf, | ^~~~~ chm_lib.c:1509:37: error: unknown type name 'UInt64' 1509 | UInt64 start, | ^~~~~~ chm_lib.c:1510:37: error: unknown type name 'Int64'; did you mean 'int64_t'? 1510 | Int64 len) | ^~~~~ | int64_t chm_lib.c: In function 'chm_retrieve_object': chm_lib.c:1568:17: error: 'Int64' undeclared (first use in this function); did you mean 'int64_t'? 1568 | return (Int64)0; | ^~~~~ | int64_t chm_lib.c:1568:23: error: expected ';' before numeric constant 1568 | return (Int64)0; | ^ | ; chm_lib.c:1572:23: error: expected ';' before numeric constant 1572 | return (Int64)0; | ^ | ; chm_lib.c:1584:34: error: 'UInt64' undeclared (first use in this function) 1584 | (UInt64)h->data_offset + (UInt64)ui->start + (UInt64)addr, | ^~~~~~ chm_lib.c:1584:41: error: expected ')' before 'h' 1584 | (UInt64)h->data_offset + (UInt64)ui->start + (UInt64)addr, | ^ | ) chm_lib.c:1582:32: note: to match this '(' 1582 | return _chm_fetch_bytes(h, | ^ chm_lib.c:1591:14: error: expected ';' before 'swath' 1591 | Int64 swath=0, total=0; | ^~~~~~ | ; chm_lib.c:1595:20: error: 'total' undeclared (first use in this function) 1595 | return total; | ^~~~~ chm_lib.c:1600:13: error: 'swath' undeclared (first use in this function) 1600 | swath = _chm_decompress_region(h, buf, ui->start + addr, len); | ^~~~~ chm_lib.c: In function 'chm_enumerate': chm_lib.c:1624:5: error: unknown type name 'Int32'; did you mean 'int32_t'? 1624 | Int32 curPage; | ^~~~~ | int32_t chm_lib.c:1628:5: error: unknown type name 'UChar' 1628 | UChar *page_buf = malloc((unsigned int)h->block_len); | ^~~~~ chm_lib.c:1630:5: error: unknown type name 'UChar' 1630 | UChar *end; | ^~~~~ chm_lib.c:1631:5: error: unknown type name 'UChar' 1631 | UChar *cur; | ^~~~~ chm_lib.c:1633:5: error: unknown type name 'UInt64' 1633 | UInt64 ui_path_len; | ^~~~~~ chm_lib.c:1653:31: error: 'UInt64' undeclared (first use in this function) 1653 | (UInt64)h->dir_offset + (UInt64)curPage*h->block_len, | ^~~~~~ chm_lib.c:1653:38: error: expected ')' before 'h' 1653 | (UInt64)h->dir_offset + (UInt64)curPage*h->block_len, | ^ | ) chm_lib.c:1651:29: note: to match this '(' 1651 | if (_chm_fetch_bytes(h, | ^ chm_lib.c:1663:38: error: passing argument 1 of '_unmarshal_pmgl_header' from incompatible pointer type [-Wincompatible-pointer-types] 1663 | if (! _unmarshal_pmgl_header(&cur, &lenRemain, &header)) | ^~~~ | | | int ** chm_lib.c:491:51: note: expected 'unsigned char **' but argument is of type 'int **' 491 | static int _unmarshal_pmgl_header(unsigned char **pData, | ~~~~~~~~~~~~~~~~^~~~~ chm_lib.c: In function 'chm_enumerate_dir': chm_lib.c:1748:5: error: unknown type name 'Int32'; did you mean 'int32_t'? 1748 | Int32 curPage; | ^~~~~ | int32_t chm_lib.c:1752:5: error: unknown type name 'UChar' 1752 | UChar *page_buf = malloc((unsigned int)h->block_len); | ^~~~~ chm_lib.c:1754:5: error: unknown type name 'UChar' 1754 | UChar *end; | ^~~~~ chm_lib.c:1755:5: error: unknown type name 'UChar' 1755 | UChar *cur; | ^~~~~ chm_lib.c:1765:5: error: unknown type name 'UInt64' 1765 | UInt64 ui_path_len; | ^~~~~~ chm_lib.c:1802:31: error: 'UInt64' undeclared (first use in this function) 1802 | (UInt64)h->dir_offset + (UInt64)curPage*h->block_len, | ^~~~~~ chm_lib.c:1802:38: error: expected ')' before 'h' 1802 | (UInt64)h->dir_offset + (UInt64)curPage*h->block_len, | ^ | ) chm_lib.c:1800:29: note: to match this '(' 1800 | if (_chm_fetch_bytes(h, | ^ chm_lib.c:1812:38: error: passing argument 1 of '_unmarshal_pmgl_header' from incompatible pointer type [-Wincompatible-pointer-types] 1812 | if (! _unmarshal_pmgl_header(&cur, &lenRemain, &header)) | ^~~~ | | | int ** chm_lib.c:491:51: note: expected 'unsigned char **' but argument is of type 'int **' 491 | static int _unmarshal_pmgl_header(unsigned char **pData, | ~~~~~~~~~~~~~~~~^~~~~ make[1]: *** [Makefile:549: chm_lib.lo] Error 1 make[1]: *** Waiting for unfinished jobs.... libtool: compile: gcc -DPACKAGE_NAME=\"chmlib\" -DPACKAGE_TARNAME=\"chmlib\" -DPACKAGE_VERSION=\"0.40\" "-DPACKAGE_STRING=\"chmlib 0.40\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"chmlib\" -DVERSION=\"0.40\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIBPTHREAD=1 -DHAVE_MALLOC=1 -I. -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/chmlib/src=/usr/src/debug/chmlib -flto=auto -Wno-implicit-function-declaration -DCHM_MT -DCHM_USE_PREAD -DCHM_USE_IO64 -MT lzx.lo -MD -MP -MF .deps/lzx.Tpo -c lzx.c -o lzx.o >/dev/null 2>&1 mv -f .deps/lzx.Tpo .deps/lzx.Plo make[1]: Leaving directory '/build/chmlib/src/chmlib-0.40/src' make: *** [Makefile:393: all-recursive] Error 1 ==> ERROR: A failure occurred in build().  Aborting... ==> ERROR: Build failed, check /var/lib/archbuild/extra-riscv64/felix-0/build [?25h[?25h[?25hreceiving incremental file list chmlib-0.40-9-riscv64-build.log chmlib-0.40-9-riscv64-prepare.log sent 62 bytes received 6,912 bytes 4,649.33 bytes/sec total size is 42,370 speedup is 6.08