D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 Installing /home/pterjan/rpmbuild/SRPMS/hfsplusutils-1.0.4-19.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.H3kAg3 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.r6QOLE + umask 022 + cd /home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build + rm -rf hfsplus-1.0.4 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/hfsplus_1.0.4.src.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + cd hfsplus-1.0.4 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (hfsplusutils-1.0.4-nullisnotachar.patch):' Patch #0 (hfsplusutils-1.0.4-nullisnotachar.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file src/glob.c + echo 'Patch #1 (hfsplusutils-1.0.4-errno.patch):' Patch #1 (hfsplusutils-1.0.4-errno.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file src/hpmkdir.c + echo 'Patch #2 (hfsplusutils-1.0.4-includes.patch):' Patch #2 (hfsplusutils-1.0.4-includes.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file libhfsp/src/unicode.c + echo 'Patch #3 (hfsplusutils-1.0.4-gcc4.patch):' Patch #3 (hfsplusutils-1.0.4-gcc4.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file libhfsp/src/btree.c patching file libhfsp/src/swab.h patching file libhfsp/src/btreecheck.c patching file libhfsp/src/fscheck.c patching file libhfsp/src/volume.c + echo 'Patch #4 (hfsplusutils-1.0.4-memset.patch):' Patch #4 (hfsplusutils-1.0.4-memset.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file libhfsp/src/record.c + echo 'Patch #5 (hfsplus-1.0.4-automake-1.13.patch):' Patch #5 (hfsplus-1.0.4-automake-1.13.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .automake-1_13 --fuzz=0 patching file configure.in + echo 'Patch #6 (hfsplus-1.0.4-duplicatedefs.patch):' Patch #6 (hfsplus-1.0.4-duplicatedefs.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .duplicatedefs --fuzz=0 patching file libhfsp/src/blockiter.h patching file libhfsp/src/libhfsp.h patching file libhfsp/src/volume.h patching file src/darray.c patching file src/darray.h patching file src/dlist.h patching file src/dstring.h + echo 'Patch #7 (0001-libhfs-fix-implicit-declaration.patch):' Patch #7 (0001-libhfs-fix-implicit-declaration.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file libhfsp/src/os.c patching file libhfsp/src/partitions.c patching file libhfsp/src/record.c + sed -i -e 's/^CFLAGS\s/AM_CFLAGS /' libhfsp/src/Makefile.am src/Makefile.am + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.mgh6lS + umask 022 + cd /home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd hfsplus-1.0.4 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + autoreconf -fi autoreconf: warning: autoconf input should be named 'configure.ac', not 'configure.in' aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in' 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. libtoolize: 'AC_PROG_RANLIB' is rendered obsolete by 'LT_INIT' aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in' configure.in:27: warning: The macro 'AC_CANONICAL_SYSTEM' is obsolete. configure.in:27: You should run autoupdate. ./lib/autoconf/general.m4:2081: AC_CANONICAL_SYSTEM is expanded from... configure.in:27: the top level configure.in:33: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. ./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from... aclocal.m4:9616: AM_INIT_AUTOMAKE is expanded from... configure.in:33: the top level configure.in:51: warning: The macro 'AC_PROG_GCC_TRADITIONAL' is obsolete. configure.in:51: You should run autoupdate. ./lib/autoconf/c.m4:1676: AC_PROG_GCC_TRADITIONAL is expanded from... configure.in:51: the top level configure.in:55: warning: The macro 'AC_HEADER_STDC' is obsolete. configure.in:55: You should run autoupdate. ./lib/autoconf/headers.m4:663: AC_HEADER_STDC is expanded from... configure.in:55: the top level configure.in:72: warning: The macro 'AM_PROG_LIBTOOL' is obsolete. configure.in:72: You should run autoupdate. aclocal.m4:123: AM_PROG_LIBTOOL is expanded from... configure.in:72: the top level configure.in:76: warning: AC_OUTPUT should be used without arguments. configure.in:76: You should run autoupdate. autoheader: warning: autoconf input should be named 'configure.ac', not 'configure.in' automake: warning: autoconf input should be named 'configure.ac', not 'configure.in' configure.in:33: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. For more info, see: configure.in:33: https://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation configure.in:46: installing './compile' configure.in:27: installing './config.guess' configure.in:27: installing './config.sub' configure.in:33: installing './install-sh' configure.in:33: installing './missing' automake: warning: autoconf input should be named 'configure.ac', not 'configure.in' libhfsp/src/Makefile.am: installing './depcomp' libhfsp/test/Makefile.am:31: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') src/Makefile.am:9: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + CONFIGURE_TOP=. + '[' 1 = 1 ']' ++ find . -name config.guess -o -name config.sub + for i in $(find ${CONFIGURE_TOP} -name config.guess -o -name config.sub) ++ basename ./config.guess + '[' -f /usr/lib/rpm/mageia/config.guess ']' ++ basename ./config.guess + cp -af /usr/lib/rpm/mageia/config.guess ./config.guess + for i in $(find ${CONFIGURE_TOP} -name config.guess -o -name config.sub) ++ basename ./config.sub + '[' -f /usr/lib/rpm/mageia/config.sub ']' ++ basename ./config.sub + cp -af /usr/lib/rpm/mageia/config.sub ./config.sub + /usr/lib/rpm/mageia/force-as-needed-for-shared-lib-in-libtool Forcing -Wl,--as-needed in configure/libtool to workaround libtool bug (cf http://lists.gnu.org/archive/html/libtool-patches/2004-06/msg00002.html) + /usr/lib/rpm/mageia/drop-ld-no-undefined-for-shared-lib-modules-in-libtool Modifying ltmain.sh underlinking for plugins (cf http://wiki.mandriva.com/en/Underlinking) + /usr/lib/rpm/mageia/fix-libtool-ltmain-from-overlinking Fixing libtool's ltmain.sh to prevent overlinking (cf http://wiki.mandriva.com/en/Overlinking) + /usr/lib/rpm/mageia/fix-libtool-from-moving-options-after-libs . + /usr/lib/rpm/mageia/fix-dlsearch-path-in-libtool-for-multilib . lib64 + ./configure --host=x86_64-mageia-linux-gnu --build=x86_64-mageia-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-shared --disable-dependency-tracking 'CFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -Wno-incompatible-pointer-types' checking build system type... x86_64-mageia-linux-gnu checking host system type... x86_64-mageia-linux-gnu checking target system type... x86_64-mageia-linux-gnu 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 make sets $(MAKE)... (cached) yes checking for x86_64-mageia-linux-gnu-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... none checking for x86_64-mageia-linux-gnu-ranlib... no checking for ranlib... ranlib checking whether ln -s works... yes 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 grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for unistd.h... (cached) yes checking for fcntl.h... yes checking for size_t... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for an ANSI C-conforming const... yes checking for working memcmp... yes checking for mktime... yes checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for fgrep... /usr/bin/grep -F 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 the maximum length of command line arguments... 1572864 checking how to convert x86_64-mageia-linux-gnu file names to x86_64-mageia-linux-gnu format... func_convert_file_noop checking how to convert x86_64-mageia-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 x86_64-mageia-linux-gnu-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for x86_64-mageia-linux-gnu-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for x86_64-mageia-linux-gnu-ar... no checking for ar... ar checking for archiver @FILE support... @ checking for x86_64-mageia-linux-gnu-strip... no 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 x86_64-mageia-linux-gnu-mt... no checking for mt... no checking if : is a manifest tool... no checking for dlfcn.h... yes 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... no 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 -m elf_x86_64) supports shared libraries... yes 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... no checking whether to build static libraries... 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: creating doc/Makefile config.status: creating libhfsp/Makefile config.status: creating libhfsp/src/Makefile config.status: creating libhfsp/test/Makefile config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands + /usr/bin/make -O -j16 V=1 VERBOSE=1 /usr/bin/make all-recursive Making all in libhfsp Making all in src make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/libhfsp/src' /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -O2 -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -Wno-incompatible-pointer-types -c -o libhfsp.lo libhfsp.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -O2 -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -Wno-incompatible-pointer-types -c libhfsp.c -o libhfsp.o make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/libhfsp/src' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/libhfsp/src' /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -O2 -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -Wno-incompatible-pointer-types -c -o hfstime.lo hfstime.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -O2 -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -Wno-incompatible-pointer-types -c hfstime.c -o hfstime.o make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/libhfsp/src' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/libhfsp/src' /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -O2 -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -Wno-incompatible-pointer-types -c -o blockiter.lo blockiter.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -O2 -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -Wno-incompatible-pointer-types -c blockiter.c -o blockiter.o make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/libhfsp/src' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/libhfsp/src' /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -O2 -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -Wno-incompatible-pointer-types -c -o os.lo os.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -O2 -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -Wno-incompatible-pointer-types -c os.c -o os.o os.c: In function 'os_open': os.c:109:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 109 | *priv = (void *) fd; | ^ os.c: In function 'os_close': os.c:126:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 126 | int fd = (int) *priv; | ^ os.c: In function 'os_same': os.c:145:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 145 | int fd = (int) *priv; | ^ os.c: In function 'os_seek': os.c:166:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 166 | int fd = (int) *priv; | ^ os.c: In function 'os_read': os.c:189:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 189 | int fd = (int) *priv; | ^ os.c: In function 'os_write': os.c:211:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 211 | int fd = (int) *priv; | ^ make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/libhfsp/src' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/libhfsp/src' /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -O2 -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -Wno-incompatible-pointer-types -c -o partitions.lo partitions.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -O2 -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -Wno-incompatible-pointer-types -c partitions.c -o partitions.o In file included from swab.h:28, from partitions.c:29: partitions.c: In function 'partition_fillstruct': swab.h:39:40: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 39 | #define bswabU16_inc(ptr) bswap_16(*(*((UInt16**) (void *)(&ptr)))++) | ~^~~~~~~~~~~~~~~~~~~~~~~~~~ partitions.c:59:23: note: in expansion of macro 'bswabU16_inc' 59 | p->pmSig = bswabU16_inc( buf); | ^~~~~~~~~~~~ swab.h:39:40: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 39 | #define bswabU16_inc(ptr) bswap_16(*(*((UInt16**) (void *)(&ptr)))++) | ~^~~~~~~~~~~~~~~~~~~~~~~~~~ partitions.c:60:23: note: in expansion of macro 'bswabU16_inc' 60 | p->pmSigPad = bswabU16_inc( buf); | ^~~~~~~~~~~~ swab.h:40:40: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 40 | #define bswabU32_inc(ptr) bswap_32(*(*((UInt32**) (void *)(&ptr)))++) | ~^~~~~~~~~~~~~~~~~~~~~~~~~~ partitions.c:61:23: note: in expansion of macro 'bswabU32_inc' 61 | p->pmMapBlkCnt = bswabU32_inc( buf); | ^~~~~~~~~~~~ swab.h:40:40: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 40 | #define bswabU32_inc(ptr) bswap_32(*(*((UInt32**) (void *)(&ptr)))++) | ~^~~~~~~~~~~~~~~~~~~~~~~~~~ partitions.c:62:23: note: in expansion of macro 'bswabU32_inc' 62 | p->pmPyPartStart = bswabU32_inc( buf); | ^~~~~~~~~~~~ swab.h:40:40: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 40 | #define bswabU32_inc(ptr) bswap_32(*(*((UInt32**) (void *)(&ptr)))++) | ~^~~~~~~~~~~~~~~~~~~~~~~~~~ partitions.c:63:23: note: in expansion of macro 'bswabU32_inc' 63 | p->pmPartBlkCnt = bswabU32_inc( buf); | ^~~~~~~~~~~~ swab.h:40:40: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 40 | #define bswabU32_inc(ptr) bswap_32(*(*((UInt32**) (void *)(&ptr)))++) | ~^~~~~~~~~~~~~~~~~~~~~~~~~~ partitions.c:66:23: note: in expansion of macro 'bswabU32_inc' 66 | p->pmLgDataStart = bswabU32_inc( buf); | ^~~~~~~~~~~~ swab.h:40:40: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 40 | #define bswabU32_inc(ptr) bswap_32(*(*((UInt32**) (void *)(&ptr)))++) | ~^~~~~~~~~~~~~~~~~~~~~~~~~~ partitions.c:67:23: note: in expansion of macro 'bswabU32_inc' 67 | p->pmDataCnt = bswabU32_inc( buf); | ^~~~~~~~~~~~ swab.h:40:40: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 40 | #define bswabU32_inc(ptr) bswap_32(*(*((UInt32**) (void *)(&ptr)))++) | ~^~~~~~~~~~~~~~~~~~~~~~~~~~ partitions.c:68:23: note: in expansion of macro 'bswabU32_inc' 68 | p->pmPartStatus = bswabU32_inc( buf); | ^~~~~~~~~~~~ swab.h:40:40: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 40 | #define bswabU32_inc(ptr) bswap_32(*(*((UInt32**) (void *)(&ptr)))++) | ~^~~~~~~~~~~~~~~~~~~~~~~~~~ partitions.c:69:23: note: in expansion of macro 'bswabU32_inc' 69 | p->pmLgBootStart = bswabU32_inc( buf); | ^~~~~~~~~~~~ swab.h:40:40: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 40 | #define bswabU32_inc(ptr) bswap_32(*(*((UInt32**) (void *)(&ptr)))++) | ~^~~~~~~~~~~~~~~~~~~~~~~~~~ partitions.c:70:23: note: in expansion of macro 'bswabU32_inc' 70 | p->pmBootSize = bswabU32_inc( buf); | ^~~~~~~~~~~~ swab.h:40:40: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 40 | #define bswabU32_inc(ptr) bswap_32(*(*((UInt32**) (void *)(&ptr)))++) | ~^~~~~~~~~~~~~~~~~~~~~~~~~~ partitions.c:71:23: note: in expansion of macro 'bswabU32_inc' 71 | p->pmBootAddr = bswabU32_inc( buf); | ^~~~~~~~~~~~ swab.h:40:40: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 40 | #define bswabU32_inc(ptr) bswap_32(*(*((UInt32**) (void *)(&ptr)))++) | ~^~~~~~~~~~~~~~~~~~~~~~~~~~ partitions.c:72:23: note: in expansion of macro 'bswabU32_inc' 72 | p->pmBootAddr2 = bswabU32_inc( buf); | ^~~~~~~~~~~~ swab.h:40:40: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 40 | #define bswabU32_inc(ptr) bswap_32(*(*((UInt32**) (void *)(&ptr)))++) | ~^~~~~~~~~~~~~~~~~~~~~~~~~~ partitions.c:73:23: note: in expansion of macro 'bswabU32_inc' 73 | p->pmBootEntry = bswabU32_inc( buf); | ^~~~~~~~~~~~ swab.h:40:40: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 40 | #define bswabU32_inc(ptr) bswap_32(*(*((UInt32**) (void *)(&ptr)))++) | ~^~~~~~~~~~~~~~~~~~~~~~~~~~ partitions.c:74:23: note: in expansion of macro 'bswabU32_inc' 74 | p->pmBootEntry2 = bswabU32_inc( buf); | ^~~~~~~~~~~~ swab.h:40:40: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 40 | #define bswabU32_inc(ptr) bswap_32(*(*((UInt32**) (void *)(&ptr)))++) | ~^~~~~~~~~~~~~~~~~~~~~~~~~~ partitions.c:75:23: note: in expansion of macro 'bswabU32_inc' 75 | p->pmBootCksum = bswabU32_inc( buf); | ^~~~~~~~~~~~ make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/libhfsp/src' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/libhfsp/src' /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -O2 -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -Wno-incompatible-pointer-types -c -o unicode.lo unicode.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -O2 -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -Wno-incompatible-pointer-types -c unicode.c -o unicode.o unicode.c: In function 'fast_unicode_compare': unicode.c:106:32: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 106 | register UInt16* str1 = ustr1->name; | ^~~~~ unicode.c:107:32: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 107 | register UInt16* str2 = ustr2->name; | ^~~~~ unicode.c: In function 'unicode_uni2asc': unicode.c:83:5: warning: ignoring return value of 'wcrtomb' declared with attribute 'warn_unused_result' [-Wunused-result] 83 | wcrtomb(astr, 0, &mbstate); // care about rest of state | ^~~~~~~~~~~~~~~~~~~~~~~~~~ make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/libhfsp/src' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/libhfsp/src' /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -O2 -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -Wno-incompatible-pointer-types -c -o fscheck.lo fscheck.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -O2 -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -Wno-incompatible-pointer-types -c fscheck.c -o fscheck.o make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/libhfsp/src' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/libhfsp/src' /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -O2 -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -Wno-incompatible-pointer-types -c -o btree.lo btree.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -O2 -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -Wno-incompatible-pointer-types -c btree.c -o btree.o make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/libhfsp/src' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/libhfsp/src' /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -O2 -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -Wno-incompatible-pointer-types -c -o volume.lo volume.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -O2 -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -Wno-incompatible-pointer-types -c volume.c -o volume.o volume.c: In function 'volume_open': volume.c:482:13: warning: variable 'shift' set but not used [-Wunused-but-set-variable] 482 | int shift; | ^~~~~ volume.c: In function 'volume_modified': volume.c:456:5: warning: 'now' may be used uninitialized [-Wmaybe-uninitialized] 456 | gmtime(&now); | ^~~~~~~~~~~~ In file included from volume.c:34: /usr/include/time.h:132:19: note: by argument 1 of type 'const time_t *' {aka 'const long int *'} to 'gmtime' declared here 132 | extern struct tm *gmtime (const time_t *__timer) __THROW; | ^~~~~~ volume.c:453:17: note: 'now' declared here 453 | time_t now; | ^~~ In function 'volume_modified', inlined from 'volume_linux_mark' at volume.c:474:5: volume.c:456:5: warning: 'now' may be used uninitialized [-Wmaybe-uninitialized] 456 | gmtime(&now); | ^~~~~~~~~~~~ /usr/include/time.h: In function 'volume_linux_mark': /usr/include/time.h:132:19: note: by argument 1 of type 'const time_t *' {aka 'const long int *'} to 'gmtime' declared here 132 | extern struct tm *gmtime (const time_t *__timer) __THROW; | ^~~~~~ volume.c:453:17: note: 'now' declared here 453 | time_t now; | ^~~ make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/libhfsp/src' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/libhfsp/src' /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -O2 -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -Wno-incompatible-pointer-types -c -o btreecheck.lo btreecheck.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -O2 -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -Wno-incompatible-pointer-types -c btreecheck.c -o btreecheck.o btreecheck.c: In function 'fscheck_record_init': btreecheck.c:901:13: warning: format '%d' expects argument of type 'int', but argument 6 has type 'long int' [-Wformat=] 901 | "Unexpected difference in Node %d, Record %d " | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 902 | ": %d (%d/%d) (%p,%p)\n", 903 | r->node_index, index, diff , p - p1, p2 - p1, p, p2); | ~~~~~~ | | | long int btreecheck.c:902:21: note: format string is defined here 902 | ": %d (%d/%d) (%p,%p)\n", | ~^ | | | int | %ld btreecheck.c:901:13: warning: format '%d' expects argument of type 'int', but argument 7 has type 'long int' [-Wformat=] 901 | "Unexpected difference in Node %d, Record %d " | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 902 | ": %d (%d/%d) (%p,%p)\n", 903 | r->node_index, index, diff , p - p1, p2 - p1, p, p2); | ~~~~~~~ | | | long int btreecheck.c:902:24: note: format string is defined here 902 | ": %d (%d/%d) (%p,%p)\n", | ~^ | | | int | %ld btreecheck.c: In function 'fscheck_record_next': btreecheck.c:919:17: warning: variable 'parent' set but not used [-Wunused-but-set-variable] 919 | UInt32 parent; | ^~~~~~ make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/libhfsp/src' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/libhfsp/src' /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -O2 -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -Wno-incompatible-pointer-types -c -o record.lo record.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -O2 -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -Wno-incompatible-pointer-types -c record.c -o record.o record.c: In function 'record_delete': record.c:1209:29: warning: variable 'folderKey' set but not used [-Wunused-but-set-variable] 1209 | hfsp_cat_key folderKey; | ^~~~~~~~~ In file included from record.c:36: record.c: In function 'record_insert': libhfsp.h:39:21: warning: operation on 'hfsp_error' may be undefined [-Wsequence-point] 39 | do { hfsp_error = (str), errno = (code); goto fail; } while (0) | ~~~~~~~~~~~^~~~~~~ record.c:1260:9: note: in expansion of macro 'HFSP_ERROR' 1260 | HFSP_ERROR(EEXIST, | ^~~~~~~~~~ record.c:1274:75: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=] 1274 | fprintf(stderr,"Unexpected Buffer overflow in record_insert %d > %d", | ~^ | | | int | %ld 1275 | len, sizeof(bt->max_rec_size)); | ~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/libhfsp/src' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/libhfsp/src' /bin/sh ../../libtool --tag=CC --mode=link gcc -O2 -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -Wno-incompatible-pointer-types -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o libhfsp.la -rpath /usr/lib64 blockiter.lo btree.lo btreecheck.lo fscheck.lo hfstime.lo libhfsp.lo os.lo unicode.lo record.lo volume.lo partitions.lo libtool: link: ar cr .libs/libhfsp.a blockiter.o btree.o btreecheck.o fscheck.o hfstime.o libhfsp.o os.o unicode.o record.o volume.o partitions.o libtool: link: ranlib .libs/libhfsp.a libtool: link: ( cd ".libs" && rm -f "libhfsp.la" && ln -s "../libhfsp.la" "libhfsp.la" ) make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/libhfsp/src' make[3]: Nothing to be done for 'all-am'. Making all in src make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/src' gcc -DHAVE_CONFIG_H -I. -I.. -I../libhfsp/src -O2 -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -Wno-incompatible-pointer-types -c -o hpls.o hpls.c hpls.c: In function 'outpath': hpls.c:335:18: warning: pointer targets in assignment from 'const char *' to 'const unsigned char *' differ in signedness [-Wpointer-sign] 335 | for (ptr = path; *ptr; ++ptr) | ^ hpls.c: In function 'process': hpls.c:783:25: warning: variable 'len' set but not used [-Wunused-but-set-variable] 783 | int len; | ^~~ hpls.c: In function 'main': hpls.c:976:18: error: too many arguments to function 'usage'; expected 0, have 1 976 | return usage(argv[0]); | ^~~~~ ~~~~~~~ hpls.c:108:5: note: declared here 108 | int usage() | ^~~~~ make[2]: *** [Makefile:546: hpls.o] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/src' make[2]: *** Waiting for unfinished jobs.... make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/src' gcc -DHAVE_CONFIG_H -I. -I.. -I../libhfsp/src -O2 -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -Wno-incompatible-pointer-types -c -o dlist.o dlist.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/src' gcc -DHAVE_CONFIG_H -I. -I.. -I../libhfsp/src -O2 -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -Wno-incompatible-pointer-types -c -o hppwd.o hppwd.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/src' gcc -DHAVE_CONFIG_H -I. -I.. -I../libhfsp/src -O2 -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -Wno-incompatible-pointer-types -c -o dstring.o dstring.c dstring.c: In function 'dstring_copy': dstring.c:66:9: warning: '__builtin_strncpy' specified bound 50 equals destination size [-Wstringop-truncation] 66 | strncpy(sbuf, from->str, space); | ^ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/src' gcc -DHAVE_CONFIG_H -I. -I.. -I../libhfsp/src -O2 -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -Wno-incompatible-pointer-types -c -o darray.o darray.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/src' gcc -DHAVE_CONFIG_H -I. -I.. -I../libhfsp/src -O2 -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -Wno-incompatible-pointer-types -c -o hpumount.o hpumount.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/src' gcc -DHAVE_CONFIG_H -I. -I.. -I../libhfsp/src -O2 -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -Wno-incompatible-pointer-types -c -o hpcd.o hpcd.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/src' gcc -DHAVE_CONFIG_H -I. -I.. -I../libhfsp/src -O2 -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -Wno-incompatible-pointer-types -c -o crc.o crc.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/src' gcc -DHAVE_CONFIG_H -I. -I.. -I../libhfsp/src -O2 -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -Wno-incompatible-pointer-types -c -o hpmount.o hpmount.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/src' gcc -DHAVE_CONFIG_H -I. -I.. -I../libhfsp/src -O2 -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -Wno-incompatible-pointer-types -c -o hpcache.o hpcache.c hpcache.c: In function 'hpcache_open': hpcache.c:152:5: warning: '__builtin_strncpy' specified bound 255 equals destination size [-Wstringop-truncation] 152 | strncpy(volume_cache.vname, devicename, 255); | ^ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/src' gcc -DHAVE_CONFIG_H -I. -I.. -I../libhfsp/src -O2 -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -Wno-incompatible-pointer-types -c -o hpcopy.o hpcopy.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/src' gcc -DHAVE_CONFIG_H -I. -I.. -I../libhfsp/src -O2 -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -Wno-incompatible-pointer-types -c -o hfsputil.o hfsputil.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/src' gcc -DHAVE_CONFIG_H -I. -I.. -I../libhfsp/src -O2 -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -Wno-incompatible-pointer-types -c -o charset.o charset.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/src' gcc -DHAVE_CONFIG_H -I. -I.. -I../libhfsp/src -O2 -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -Wno-incompatible-pointer-types -c -o glob.o glob.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/src' gcc -DHAVE_CONFIG_H -I. -I.. -I../libhfsp/src -O2 -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -Wno-incompatible-pointer-types -c -o binhex.o binhex.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/src' gcc -DHAVE_CONFIG_H -I. -I.. -I../libhfsp/src -O2 -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -Wno-incompatible-pointer-types -c -o copyout.o copyout.c copyout.c: In function 'do_macb': copyout.c:147:30: warning: pointer targets in passing argument 1 of 'unicode_uni2asc' differ in signedness [-Wpointer-sign] 147 | buf[1] = unicode_uni2asc(&buf[2], &ifile->key.name, 63); | ^~~~~~~ | | | unsigned char * In file included from copyout.c:53: ../libhfsp/src/unicode.h:23:27: note: expected 'char *' but argument is of type 'unsigned char *' 23 | int unicode_uni2asc(char *astr, const hfsp_unistr255 *ustr, int maxlen); | ~~~~~~^~~~ copyout.c: In function 'binhx': copyout.c:273:28: warning: pointer targets in passing argument 1 of 'unicode_uni2asc' differ in signedness [-Wpointer-sign] 273 | byte = unicode_uni2asc(name, &ifile->key.name, 255); | ^~~~ | | | unsigned char * ../libhfsp/src/unicode.h:23:27: note: expected 'char *' but argument is of type 'unsigned char *' 23 | int unicode_uni2asc(char *astr, const hfsp_unistr255 *ustr, int maxlen); | ~~~~~~^~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/hfsplusutils-1.0.4-build/hfsplus-1.0.4/src' make[1]: *** [Makefile:419: all-recursive] Error 1 make: *** [Makefile:351: all] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.mgh6lS (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.mgh6lS (%build) I: [iurt_root_command] ERROR: chroot