D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 sh: line 4: [: -j8: integer expression expected Installing /home/pterjan/rpmbuild/SRPMS/libnjb-2.2.7-6.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.79mjQ4 sh: line 4: [: -j8: integer expression expected Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.QMeZhN + umask 022 + cd /home/pterjan/rpmbuild/BUILD/libnjb-2.2.7-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/libnjb-2.2.7-build + rm -rf libnjb-2.2.7 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/libnjb-2.2.7.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd libnjb-2.2.7 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/libnjb-2.2.7-optimize-udev-rule.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 sh: line 4: [: -j8: integer expression expected Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.tP6AzJ + umask 022 + cd /home/pterjan/rpmbuild/BUILD/libnjb-2.2.7-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 libnjb-2.2.7 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + autoreconf -vfi autoreconf: export WARNINGS= autoreconf: Entering directory '.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force aclocal: warning: couldn't open directory 'm4': No such file or directory autoreconf: configure.ac: tracing autoreconf: running: libtoolize --copy --force libtoolize: putting auxiliary files in '.'. libtoolize: copying file './ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'. libtoolize: copying file 'm4/libtool.m4' libtoolize: copying file 'm4/ltoptions.m4' libtoolize: copying file 'm4/ltsugar.m4' libtoolize: copying file 'm4/ltversion.m4' libtoolize: copying file 'm4/lt~obsolete.m4' libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am. autoreconf: configure.ac: not using Intltool autoreconf: configure.ac: not using Gtkdoc autoreconf: running: aclocal --force autoreconf: running: /usr/bin/autoconf --force configure.ac:7: warning: The macro 'AC_CONFIG_HEADER' is obsolete. configure.ac:7: You should run autoupdate. ./lib/autoconf/status.m4:719: AC_CONFIG_HEADER is expanded from... configure.ac:7: the top level configure.ac:19: warning: The macro 'AC_LIBTOOL_WIN32_DLL' is obsolete. configure.ac:19: You should run autoupdate. m4/ltoptions.m4:148: AC_LIBTOOL_WIN32_DLL is expanded from... configure.ac:19: the top level configure.ac:19: warning: AC_LIBTOOL_WIN32_DLL: Remove this warning and the call to _LT_SET_OPTION when you configure.ac:19: put the 'win32-dll' option into LT_INIT's first parameter. ./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from... m4/ltoptions.m4:148: AC_LIBTOOL_WIN32_DLL is expanded from... configure.ac:19: the top level configure.ac:20: warning: The macro 'AC_PROG_LIBTOOL' is obsolete. configure.ac:20: You should run autoupdate. m4/libtool.m4:100: AC_PROG_LIBTOOL is expanded from... configure.ac:20: the top level configure.ac:62: warning: The macro 'AC_HEADER_STDC' is obsolete. configure.ac:62: You should run autoupdate. ./lib/autoconf/headers.m4:663: AC_HEADER_STDC is expanded from... configure.ac:62: the top level configure.ac:63: warning: The macro 'AC_HEADER_TIME' is obsolete. configure.ac:63: You should run autoupdate. ./lib/autoconf/headers.m4:702: AC_HEADER_TIME is expanded from... configure.ac:63: the top level configure.ac:75: warning: The macro 'AC_TYPE_SIGNAL' is obsolete. configure.ac:75: You should run autoupdate. ./lib/autoconf/types.m4:805: AC_TYPE_SIGNAL is expanded from... configure.ac:75: the top level configure.ac:77: warning: The macro 'AC_STRUCT_ST_BLKSIZE' is obsolete. configure.ac:77: You should run autoupdate. ./lib/autoconf/types.m4:1029: AC_STRUCT_ST_BLKSIZE is expanded from... configure.ac:77: the top level autoreconf: running: /usr/bin/autoheader --force autoreconf: running: automake --add-missing --copy --force-missing configure.ac:16: installing './compile' configure.ac:5: installing './missing' sample/Makefile.am: installing './depcomp' autoreconf: Leaving directory '.' + 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-static 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 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 whether ln -s works... yes checking build system type... x86_64-mageia-linux-gnu checking host system type... x86_64-mageia-linux-gnu checking how to print strings... printf 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 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... objdump checking how to recognize dependent libraries... pass_all checking for x86_64-mageia-linux-gnu-dlltool... dlltool checking how to associate runtime and link libraries... printf %s\n checking for x86_64-mageia-linux-gnu-ranlib... no checking for ranlib... ranlib 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 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 sys/time.h... yes 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 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... no checking for doxygen... true checking if the host operating system is Darwin... no checking For MinGW32... no checking for initscr in -lcurses... no checking for usb_control_msg in -lusb... yes checking for uncompress in -lz... no checking for egrep... (cached) /usr/bin/grep -E checking for ctype.h... yes checking for curses.h... no checking for errno.h... yes checking for fcntl.h... yes checking for getopt.h... yes checking for libgen.h... yes checking for limits.h... yes checking for stdio.h... (cached) yes checking for string.h... (cached) yes checking for sys/stat.h... (cached) yes checking for sys/time.h... (cached) yes checking for unistd.h... (cached) yes checking for zlib.h... no checking for usb.h... yes checking for an ANSI C-conforming const... yes checking for off_t... yes checking return type of signal handlers... void checking for size_t... yes checking for struct stat.st_blksize... yes checking for GNU libc compatible malloc... yes checking for working memcmp... yes checking whether lstat correctly handles trailing slash... yes checking whether stat accepts an empty string... no checking for basename... yes checking for memset... yes checking for select... yes checking for strdup... yes checking for strerror... yes checking for strrchr... yes checking for strtoul... yes checking for usleep... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating src/libnjb.h config.status: creating doc/Doxyfile config.status: creating Makefile config.status: creating doc/Makefile config.status: creating src/Makefile config.status: creating sample/Makefile config.status: creating nomadjukebox config.status: creating hotplug.sh config.status: creating libnjb.pc config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands + /usr/bin/make -O -j48 V=1 VERBOSE=1 /usr/bin/make all-recursive Making all in src make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/libnjb-2.2.7-build/libnjb-2.2.7/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -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 -Wall -Wmissing-prototypes -c -o byteorder.lo byteorder.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -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 -Wall -Wmissing-prototypes -c byteorder.c -fPIC -DPIC -o .libs/byteorder.o make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/libnjb-2.2.7-build/libnjb-2.2.7/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/libnjb-2.2.7-build/libnjb-2.2.7/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -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 -Wall -Wmissing-prototypes -c -o ioutil.lo ioutil.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -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 -Wall -Wmissing-prototypes -c ioutil.c -fPIC -DPIC -o .libs/ioutil.o ioutil.c: In function 'data_dump_ascii': ioutil.c:70:34: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] 70 | fprintf(f, "\t%04x:", dump_boundry); | ~~~^ ~~~~~~~~~~~~ | | | | | size_t {aka long unsigned int} | unsigned int | %04lx make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/libnjb-2.2.7-build/libnjb-2.2.7/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/libnjb-2.2.7-build/libnjb-2.2.7/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -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 -Wall -Wmissing-prototypes -c -o protocol3.lo protocol3.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -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 -Wall -Wmissing-prototypes -c protocol3.c -fPIC -DPIC -o .libs/protocol3.o protocol3.c: In function 'njb3_get_codecs': protocol3.c:233:13: warning: variable 'supports_wma' set but not used [-Wunused-but-set-variable] 233 | u_int16_t supports_wma; | ^~~~~~~~~~~~ protocol3.c:232:13: warning: variable 'supports_mp3' set but not used [-Wunused-but-set-variable] 232 | u_int16_t supports_mp3; | ^~~~~~~~~~~~ protocol3.c:231:13: warning: variable 'supports_wav' set but not used [-Wunused-but-set-variable] 231 | u_int16_t supports_wav; | ^~~~~~~~~~~~ protocol3.c: In function 'njb3_dump_device_register': protocol3.c:696:13: warning: variable 'status' set but not used [-Wunused-but-set-variable] 696 | u_int16_t status; | ^~~~~~ protocol3.c: In function 'read_metadata_chunk': protocol3.c:1696:12: warning: old-style function definition [-Wold-style-definition] 1696 | static int read_metadata_chunk(njb, | ^~~~~~~~~~~~~~~~~~~ protocol3.c:1750:29: warning: variable 'word3' set but not used [-Wunused-but-set-variable] 1750 | u_int16_t word1, word2, word3, word5; | ^~~~~ protocol3.c:1750:22: warning: variable 'word2' set but not used [-Wunused-but-set-variable] 1750 | u_int16_t word1, word2, word3, word5; | ^~~~~ protocol3.c: In function 'get_metadata_chunks': protocol3.c:1806:12: warning: old-style function definition [-Wold-style-definition] 1806 | static int get_metadata_chunks(njb, | ^~~~~~~~~~~~~~~~~~~ protocol3.c:1902:21: error: too many arguments to function 'terminate_metadata_post'; expected 0, have 2 1902 | result = (*terminate_metadata_post) (njb, &target); | ~^~~~~~~~~~~~~~~~~~~~~~~~~ ~~~ protocol3.c:1919:21: error: too many arguments to function 'terminate_metadata_post'; expected 0, have 2 1919 | result = (*terminate_metadata_post) (njb, &target); | ~^~~~~~~~~~~~~~~~~~~~~~~~~ ~~~ protocol3.c:1936:19: error: too many arguments to function 'create_metadata_post'; expected 0, have 2 1936 | result = (*create_metadata_post) (postid, &target); | ~^~~~~~~~~~~~~~~~~~~~~~ ~~~~~~ protocol3.c:1953:21: error: too many arguments to function 'add_to_metadata_post'; expected 0, have 4 1953 | result = (*add_to_metadata_post) (frameid, framelen, data1, &target); | ~^~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~ protocol3.c: In function 'parse_metadata_block': protocol3.c:2030:12: warning: old-style function definition [-Wold-style-definition] 2030 | static int parse_metadata_block(njb, | ^~~~~~~~~~~~~~~~~~~~ protocol3.c:2070:19: error: too many arguments to function 'terminate_metadata_post'; expected 0, have 2 2070 | result = (*terminate_metadata_post) (njb, &target); | ~^~~~~~~~~~~~~~~~~~~~~~~~~ ~~~ protocol3.c:2088:17: error: too many arguments to function 'create_metadata_post'; expected 0, have 2 2088 | result = (*create_metadata_post) (postid, &target); | ~^~~~~~~~~~~~~~~~~~~~~~ ~~~~~~ protocol3.c:2104:19: error: too many arguments to function 'add_to_metadata_post'; expected 0, have 4 2104 | result = (*add_to_metadata_post) (frameid, framelen, data1, &target); | ~^~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~ protocol3.c: In function 'create_songid': protocol3.c:2121:12: warning: old-style function definition [-Wold-style-definition] 2121 | static int create_songid(postid, target) | ^~~~~~~~~~~~~ protocol3.c: In function 'add_to_songid': protocol3.c:2136:12: warning: old-style function definition [-Wold-style-definition] 2136 | static int add_to_songid(frameid, framelen, data, target) | ^~~~~~~~~~~~~ protocol3.c: In function 'terminate_songid': protocol3.c:2256:12: warning: old-style function definition [-Wold-style-definition] 2256 | static int terminate_songid(njb, target) | ^~~~~~~~~~~~~~~~ protocol3.c: In function 'populate_playlist': protocol3.c:2518:37: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'ssize_t' {aka 'long int'} [-Wformat=] 2518 | printf("Parsing this buffer, 0x%x bytes:\n", bread); | ~^ ~~~~~ | | | | unsigned int ssize_t {aka long int} | %lx protocol3.c:2551:28: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'ssize_t' {aka 'long int'} [-Wformat=] 2551 | printf("bread=%08x, i=%08x, framelen=%04x, 0x%x bytes left, " | ~~~^ | | | unsigned int | %08lx 2552 | "read new chunk, save those bytes\n", 2553 | bread, i, framelen, remain); | ~~~~~ | | | ssize_t {aka long int} protocol3.c:2551:57: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'ssize_t' {aka 'long int'} [-Wformat=] 2551 | printf("bread=%08x, i=%08x, framelen=%04x, 0x%x bytes left, " | ~^ | | | unsigned int | %lx 2552 | "read new chunk, save those bytes\n", 2553 | bread, i, framelen, remain); | ~~~~~~ | | | ssize_t {aka long int} protocol3.c:2584:43: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'ssize_t' {aka 'long int'} [-Wformat=] 2584 | printf("Parsing this buffer, 0x%x bytes:\n", remain); | ~^ ~~~~~~ | | | | unsigned int ssize_t {aka long int} | %lx protocol3.c:2595:61: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'ssize_t' {aka 'long int'} [-Wformat=] 2595 | printf("get statusword at offset %04x, remain: %04x\n", i, remain); | ~~~^ ~~~~~~ | | | | | ssize_t {aka long int} | unsigned int | %04lx protocol3.c:2597:56: warning: format '%d' expects argument of type 'int', but argument 2 has type 'ssize_t' {aka 'long int'} [-Wformat=] 2597 | printf("LIBNJB PANIC: remaining bytes != 2 (%d)\n", remain); | ~^ ~~~~~~ | | | | int ssize_t {aka long int} | %ld protocol3.c:2627:49: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'ssize_t' {aka 'long int'} [-Wformat=] 2627 | printf("Found endmarker, remain: %04x\n", remain); | ~~~^ ~~~~~~ | | | | | ssize_t {aka long int} | unsigned int | %04lx protocol3.c:2634:18: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'ssize_t' {aka 'long int'} [-Wformat=] 2634 | printf("Frame length: 0x%04x, ID: 0x%04x at buffer index " | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2635 | "%04x (remain %04x)\n", 2636 | framelen, frameid, i, remain); | ~~~~~~ | | | ssize_t {aka long int} protocol3.c:2635:35: note: format string is defined here 2635 | "%04x (remain %04x)\n", | ~~~^ | | | unsigned int | %04lx protocol3.c:2688:43: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'ssize_t' {aka 'long int'} [-Wformat=] 2688 | printf("Parsing this buffer, 0x%x bytes:\n", bread); | ~^ ~~~~~ | | | | unsigned int ssize_t {aka long int} | %lx protocol3.c:2526:9: warning: unused variable 'success' [-Wunused-variable] 2526 | int success; | ^~~~~~~ protocol3.c: In function 'create_playlistid': protocol3.c:2757:12: warning: old-style function definition [-Wold-style-definition] 2757 | static int create_playlistid(postid, target) | ^~~~~~~~~~~~~~~~~ protocol3.c: In function 'add_to_playlistid': protocol3.c:2773:12: warning: old-style function definition [-Wold-style-definition] 2773 | static int add_to_playlistid(frameid, framelen, data, target) | ^~~~~~~~~~~~~~~~~ protocol3.c: In function 'terminate_playlistid': protocol3.c:2797:12: warning: old-style function definition [-Wold-style-definition] 2797 | static int terminate_playlistid(njb, target) | ^~~~~~~~~~~~~~~~~~~~ protocol3.c: In function 'create_datafile': protocol3.c:2943:12: warning: old-style function definition [-Wold-style-definition] 2943 | static int create_datafile(postid, target) | ^~~~~~~~~~~~~~~ protocol3.c: In function 'add_to_datafile': protocol3.c:2958:12: warning: old-style function definition [-Wold-style-definition] 2958 | static int add_to_datafile(frameid, framelen, data, target) | ^~~~~~~~~~~~~~~ protocol3.c: In function 'terminate_datafile': protocol3.c:3003:12: warning: old-style function definition [-Wold-style-definition] 3003 | static int terminate_datafile(njb, target) | ^~~~~~~~~~~~~~~~~~ protocol3.c: In function 'create_key': protocol3.c:3106:12: warning: old-style function definition [-Wold-style-definition] 3106 | static int create_key(postid, target) | ^~~~~~~~~~ protocol3.c: In function 'add_to_key': protocol3.c:3120:12: warning: old-style function definition [-Wold-style-definition] 3120 | static int add_to_key(frameid, framelen, data, target) | ^~~~~~~~~~ protocol3.c: In function 'terminate_key': protocol3.c:3140:12: warning: old-style function definition [-Wold-style-definition] 3140 | static int terminate_key(njb, target) | ^~~~~~~~~~~~~ protocol3.c: In function 'njb3_read_keys': protocol3.c:3185:7: warning: variable 'result' set but not used [-Wunused-but-set-variable] 3185 | int result; | ^~~~~~ make[2]: *** [Makefile:507: protocol3.lo] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/libnjb-2.2.7-build/libnjb-2.2.7/src' make[2]: *** Waiting for unfinished jobs.... make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/libnjb-2.2.7-build/libnjb-2.2.7/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -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 -Wall -Wmissing-prototypes -c -o usb_io.lo usb_io.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -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 -Wall -Wmissing-prototypes -c usb_io.c -fPIC -DPIC -o .libs/usb_io.o usb_io.c: In function 'usb_pipe_read': usb_io.c:149:28: warning: format '%d' expects argument of type 'int', but argument 2 has type 'ssize_t' {aka 'long int'} [-Wformat=] 149 | printf("LIBNJB: ERROR %d in usb_bulk_read\n", bread); | ~^ ~~~~~ | | | | int ssize_t {aka long int} | %ld make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/libnjb-2.2.7-build/libnjb-2.2.7/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/libnjb-2.2.7-build/libnjb-2.2.7/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -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 -Wall -Wmissing-prototypes -c -o njbtime.lo njbtime.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -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 -Wall -Wmissing-prototypes -c njbtime.c -fPIC -DPIC -o .libs/njbtime.o make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/libnjb-2.2.7-build/libnjb-2.2.7/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/libnjb-2.2.7-build/libnjb-2.2.7/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -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 -Wall -Wmissing-prototypes -c -o base.lo base.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -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 -Wall -Wmissing-prototypes -c base.c -fPIC -DPIC -o .libs/base.o make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/libnjb-2.2.7-build/libnjb-2.2.7/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/libnjb-2.2.7-build/libnjb-2.2.7/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -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 -Wall -Wmissing-prototypes -c -o eax.lo eax.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -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 -Wall -Wmissing-prototypes -c eax.c -fPIC -DPIC -o .libs/eax.o make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/libnjb-2.2.7-build/libnjb-2.2.7/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/libnjb-2.2.7-build/libnjb-2.2.7/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -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 -Wall -Wmissing-prototypes -c -o unicode.lo unicode.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -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 -Wall -Wmissing-prototypes -c unicode.c -fPIC -DPIC -o .libs/unicode.o make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/libnjb-2.2.7-build/libnjb-2.2.7/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/libnjb-2.2.7-build/libnjb-2.2.7/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -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 -Wall -Wmissing-prototypes -c -o njb_error.lo njb_error.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -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 -Wall -Wmissing-prototypes -c njb_error.c -fPIC -DPIC -o .libs/njb_error.o make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/libnjb-2.2.7-build/libnjb-2.2.7/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/libnjb-2.2.7-build/libnjb-2.2.7/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -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 -Wall -Wmissing-prototypes -c -o playlist.lo playlist.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -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 -Wall -Wmissing-prototypes -c playlist.c -fPIC -DPIC -o .libs/playlist.o make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/libnjb-2.2.7-build/libnjb-2.2.7/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/libnjb-2.2.7-build/libnjb-2.2.7/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -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 -Wall -Wmissing-prototypes -c -o datafile.lo datafile.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -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 -Wall -Wmissing-prototypes -c datafile.c -fPIC -DPIC -o .libs/datafile.o make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/libnjb-2.2.7-build/libnjb-2.2.7/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/libnjb-2.2.7-build/libnjb-2.2.7/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -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 -Wall -Wmissing-prototypes -c -o songid.lo songid.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -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 -Wall -Wmissing-prototypes -c songid.c -fPIC -DPIC -o .libs/songid.o make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/libnjb-2.2.7-build/libnjb-2.2.7/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/libnjb-2.2.7-build/libnjb-2.2.7/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -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 -Wall -Wmissing-prototypes -c -o protocol.lo protocol.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -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 -Wall -Wmissing-prototypes -c protocol.c -fPIC -DPIC -o .libs/protocol.o make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/libnjb-2.2.7-build/libnjb-2.2.7/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/libnjb-2.2.7-build/libnjb-2.2.7/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -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 -Wall -Wmissing-prototypes -c -o procedure.lo procedure.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -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 -Wall -Wmissing-prototypes -c procedure.c -fPIC -DPIC -o .libs/procedure.o procedure.c: In function 'NJB_Get_Track_fd': procedure.c:1012:9: warning: variable 'wasshort' set but not used [-Wunused-but-set-variable] 1012 | int wasshort = 0; | ^~~~~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/libnjb-2.2.7-build/libnjb-2.2.7/src' make[1]: *** [Makefile:502: all-recursive] Error 1 make: *** [Makefile:386: all] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.tP6AzJ (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.tP6AzJ (%build) I: [iurt_root_command] ERROR: chroot