D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/gt-0.4-12.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.XaqQud + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf gt-0.4 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/gt-0.4-clean.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd gt-0.4 + rm -rf /home/pterjan/rpmbuild/BUILD/gt-0.4-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/gt-0.4-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/gt-0.4-noac3.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/gt-0.4-compile-fix.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/gt-0.4-optflags.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/gt-0.4-config-default-velocity-layer.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/gt-0.4-ppc-compile-fix.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/gt-0.4-unsf-bigendian-fix.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/gt-0.4-unsf-tremolo.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/gt-0.4-parallel.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/gt-0.4-gcc10.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + cp -p src/README README.timidity + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.gYugme + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd gt-0.4 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + export 'CFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fsigned-char' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fsigned-char' + autoreconf -fi acinclude.m4:570: warning: underquoted definition of XIPH_PATH_VORBIS acinclude.m4:570: run info Automake 'Extending aclocal' acinclude.m4:570: or see https://www.gnu.org/software/automake/manual/automake.html#Extending-aclocal configure.ac:3: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. ./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from... aclocal.m4:429: AM_INIT_AUTOMAKE is expanded from... configure.ac:3: the top level configure.ac:6: warning: 'AM_CONFIG_HEADER': this macro is obsolete. configure.ac:6: You should use the 'AC_CONFIG_HEADERS' macro instead. ./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from... aclocal.m4:745: AM_CONFIG_HEADER is expanded from... configure.ac:6: the top level configure.ac:10: warning: The macro 'AC_PROG_GCC_TRADITIONAL' is obsolete. configure.ac:10: You should run autoupdate. ./lib/autoconf/c.m4:1676: AC_PROG_GCC_TRADITIONAL is expanded from... configure.ac:10: the top level configure.ac:14: warning: The macro 'AC_HEADER_STDC' is obsolete. configure.ac:14: You should run autoupdate. ./lib/autoconf/headers.m4:663: AC_HEADER_STDC is expanded from... configure.ac:14: the top level configure.ac:16: warning: The macro 'AC_LANG_C' is obsolete. configure.ac:16: You should run autoupdate. ./lib/autoconf/c.m4:72: AC_LANG_C is expanded from... acinclude.m4:341: AM_PATH_ALSA is expanded from... configure.ac:16: the top level configure.ac:16: warning: The macro 'AC_TRY_COMPILE' is obsolete. configure.ac:16: You should run autoupdate. ./lib/autoconf/general.m4:2845: AC_TRY_COMPILE is expanded from... acinclude.m4:341: AM_PATH_ALSA is expanded from... configure.ac:16: the top level configure.ac:20: warning: The macro 'AC_CHECKING' is obsolete. configure.ac:20: You should run autoupdate. ./lib/autoconf/general.m4:2499: AC_CHECKING is expanded from... acinclude.m4:238: AC_SEARCH_NCURSES is expanded from... acinclude.m4:89: AC_CHECK_CURSES is expanded from... configure.ac:20: the top level configure.ac:20: warning: The macro 'AC_FD_CC' is obsolete. configure.ac:20: You should run autoupdate. ./lib/autoconf/general.m4:399: AC_FD_CC is expanded from... acinclude.m4:238: AC_SEARCH_NCURSES is expanded from... acinclude.m4:89: AC_CHECK_CURSES is expanded from... configure.ac:20: the top level configure.ac:24: warning: The macro 'AC_TRY_RUN' is obsolete. configure.ac:24: You should run autoupdate. ./lib/autoconf/general.m4:2995: AC_TRY_RUN is expanded from... acinclude.m4:570: XIPH_PATH_VORBIS is expanded from... configure.ac:24: the top level configure.ac:24: warning: The macro 'AC_TRY_LINK' is obsolete. configure.ac:24: You should run autoupdate. ./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from... acinclude.m4:570: XIPH_PATH_VORBIS is expanded from... configure.ac:24: the top level configure.ac:29: warning: The macro 'AC_HEADER_TIME' is obsolete. configure.ac:29: You should run autoupdate. ./lib/autoconf/headers.m4:702: AC_HEADER_TIME is expanded from... configure.ac:29: the top level configure.ac:3: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. For more info, see: configure.ac:3: https://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation configure.ac:7: installing './compile' configure.ac:11: installing './config.guess' configure.ac:11: installing './config.sub' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fsigned-char' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -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=2 -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=2 -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 -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --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' + 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 + /usr/lib/rpm/mageia/fix-libtool-ltmain-from-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 checking for a BSD-compatible install... /usr/bin/install -c 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 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 build system type... x86_64-mageia-linux-gnu checking host system type... x86_64-mageia-linux-gnu checking for GNU libc compatible malloc... yes checking for dirent.h that defines DIR... yes checking for library containing opendir... none required 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 grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ALSA CFLAGS... checking for ALSA LDFLAGS... -lasound -lm -ldl -lpthread checking for libasound headers version >= 1.0.0... found. checking for snd_ctl_open in -lasound... yes checking how to run the C preprocessor... gcc -E checking for egrep -e... (cached) /usr/bin/grep -E configure: checking "location of ncurses.h file"... checking for Vorbis... yes checking for fcntl.h... yes checking for sys/time.h... (cached) yes checking for unistd.h... (cached) yes checking for string.h... (cached) yes checking for math.h... yes checking for sys/mman.h... 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 utils/Makefile config.status: creating src/config.h config.status: executing depfiles commands + /usr/bin/make -O -j16 V=1 VERBOSE=1 Making all in src /usr/bin/make all-am make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' rm -f sfz2pat.c flex -osfz2pat.c -Psfz ./sfz2pat.l make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' gcc -DHAVE_CONFIG_H -I. -DDEFAULT_PATH=\"/usr/share/timidity\" -Wall -W -Wshadow -Wpointer-arith -Wcast-align -I/usr/include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fsigned-char -c -o controls.o controls.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' gcc -DHAVE_CONFIG_H -I. -DDEFAULT_PATH=\"/usr/share/timidity\" -Wall -W -Wshadow -Wpointer-arith -Wcast-align -I/usr/include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fsigned-char -c -o output.o output.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' gcc -DHAVE_CONFIG_H -I. -DDEFAULT_PATH=\"/usr/share/timidity\" -Wall -W -Wshadow -Wpointer-arith -Wcast-align -I/usr/include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fsigned-char -c -o filter.o filter.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' gcc -DHAVE_CONFIG_H -I. -DDEFAULT_PATH=\"/usr/share/timidity\" -Wall -W -Wshadow -Wpointer-arith -Wcast-align -I/usr/include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fsigned-char -c -o wave_a.o wave_a.c wave_a.c: In function 'update_header': wave_a.c:223:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 223 | write (dpm.fd, &tmp, 4); | ^~~~~~~~~~~~~~~~~~~~~~~ wave_a.c: In function 'open_output': wave_a.c:184:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 184 | write (dpm.fd, RIFFheader, 44); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ wave_a.c: In function 'output_data': wave_a.c:254:39: warning: array subscript 4 is above array bounds of 'FLOAT_T[4]' {aka 'double[4]'} [-Warray-bounds=] 254 | double b1 = butterworth_q0[1][4]; | ~~~~~~~~~~~~~~~~~^~~ In file included from wave_a.c:49: tables.h:55:16: note: while referencing 'butterworth_q0' 55 | extern FLOAT_T butterworth_q0[241][4]; | ^~~~~~~~~~~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' gcc -DHAVE_CONFIG_H -I. -DDEFAULT_PATH=\"/usr/share/timidity\" -Wall -W -Wshadow -Wpointer-arith -Wcast-align -I/usr/include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fsigned-char -c -o dumb_c.o dumb_c.c dumb_c.c: In function 'ctl_master_volume': dumb_c.c:159:24: warning: parameter 'mv' set but not used [-Wunused-but-set-parameter] 159 | ctl_master_volume (int mv) | ~~~~^~ dumb_c.c: In function 'ctl_note': dumb_c.c:200:15: warning: parameter 'v' set but not used [-Wunused-but-set-parameter] 200 | ctl_note (int v) | ~~~~^ dumb_c.c: In function 'ctl_program': dumb_c.c:206:18: warning: parameter 'ch' set but not used [-Wunused-but-set-parameter] 206 | ctl_program (int ch, int val, const char *name) | ~~~~^~ dumb_c.c:206:43: warning: parameter 'name' set but not used [-Wunused-but-set-parameter] 206 | ctl_program (int ch, int val, const char *name) | ~~~~~~~~~~~~^~~~ dumb_c.c: In function 'ctl_bank': dumb_c.c:213:15: warning: parameter 'ch' set but not used [-Wunused-but-set-parameter] 213 | ctl_bank (int ch, int val, int var, const char *name) | ~~~~^~ dumb_c.c:213:49: warning: parameter 'name' set but not used [-Wunused-but-set-parameter] 213 | ctl_bank (int ch, int val, int var, const char *name) | ~~~~~~~~~~~~^~~~ dumb_c.c: In function 'ctl_volume': dumb_c.c:220:17: warning: parameter 'ch' set but not used [-Wunused-but-set-parameter] 220 | ctl_volume (int ch, int val) | ~~~~^~ dumb_c.c: In function 'ctl_expression': dumb_c.c:226:21: warning: parameter 'ch' set but not used [-Wunused-but-set-parameter] 226 | ctl_expression (int ch, int val) | ~~~~^~ dumb_c.c: In function 'ctl_panning': dumb_c.c:232:18: warning: parameter 'ch' set but not used [-Wunused-but-set-parameter] 232 | ctl_panning (int ch, int val) | ~~~~^~ dumb_c.c: In function 'ctl_sustain': dumb_c.c:238:18: warning: parameter 'ch' set but not used [-Wunused-but-set-parameter] 238 | ctl_sustain (int ch, int val, int letter) | ~~~~^~ dumb_c.c: In function 'ctl_pitch_bend': dumb_c.c:244:41: warning: parameter 'mod' set but not used [-Wunused-but-set-parameter] 244 | ctl_pitch_bend (int ch, int val, uint32 mod) | ~~~~~~~^~~ dumb_c.c: In function 'ctl_misc_controller': dumb_c.c:320:25: warning: parameter 'ch' set but not used [-Wunused-but-set-parameter] 320 | ctl_misc_controller(int ch, int val, int col, int letter, int use_color) | ~~~~^~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' gcc -DHAVE_CONFIG_H -I. -DDEFAULT_PATH=\"/usr/share/timidity\" -Wall -W -Wshadow -Wpointer-arith -Wcast-align -I/usr/include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fsigned-char -c -o tables.o tables.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' gcc -DHAVE_CONFIG_H -I. -DDEFAULT_PATH=\"/usr/share/timidity\" -Wall -W -Wshadow -Wpointer-arith -Wcast-align -I/usr/include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fsigned-char -c -o common.o common.c common.c: In function 'close_file': common.c:268:9: warning: pointer 'fp' may be used after 'pclose' [-Wuse-after-free] 268 | fclose (fp); | ^~~~~~~~~~~ common.c:266:9: note: call to 'pclose' here 266 | if (pclose (fp)) /* Any better ideas? */ | ^~~~~~~~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' gcc -DHAVE_CONFIG_H -I. -DDEFAULT_PATH=\"/usr/share/timidity\" -Wall -W -Wshadow -Wpointer-arith -Wcast-align -I/usr/include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fsigned-char -c -o readsbk.o readsbk.c readsbk.c: In function 'load_sbk': readsbk.c:145:13: warning: pointer targets in passing argument 1 of 'READDW' differ in signedness [-Wpointer-sign] 145 | READDW (&sf->sbkh.size, fd); | ^~~~~~~~~~~~~~ | | | int32 * {aka int *} readsbk.c:28:17: note: expected 'uint32 *' {aka 'unsigned int *'} but argument is of type 'int32 *' {aka 'int *'} 28 | READDW (uint32 *vp, FILE * fd) | ~~~~~~~~^~ readsbk.c:153:21: warning: pointer targets in passing argument 1 of 'READDW' differ in signedness [-Wpointer-sign] 153 | READDW (&chunk.size, fd); | ^~~~~~~~~~~ | | | int32 * {aka int *} readsbk.c:28:17: note: expected 'uint32 *' {aka 'unsigned int *'} but argument is of type 'int32 *' {aka 'int *'} 28 | READDW (uint32 *vp, FILE * fd) | ~~~~~~~~^~ readsbk.c:64:25: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 64 | #define READID(var,fd) fread(var, 1, 4, fd) | ^~~~~~~~~~~~~~~~~~~~ readsbk.c:144:5: note: in expansion of macro 'READID' 144 | READID (sf->sbkh.riff, fd); | ^~~~~~ readsbk.c:64:25: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 64 | #define READID(var,fd) fread(var, 1, 4, fd) | ^~~~~~~~~~~~~~~~~~~~ readsbk.c:146:5: note: in expansion of macro 'READID' 146 | READID (sf->sbkh.sfbk, fd); | ^~~~~~ readsbk.c:64:25: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 64 | #define READID(var,fd) fread(var, 1, 4, fd) | ^~~~~~~~~~~~~~~~~~~~ readsbk.c:150:9: note: in expansion of macro 'READID' 150 | READID (chunk.id, fd); | ^~~~~~ readsbk.c:64:25: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 64 | #define READID(var,fd) fread(var, 1, 4, fd) | ^~~~~~~~~~~~~~~~~~~~ readsbk.c:154:13: note: in expansion of macro 'READID' 154 | READID (subchunk.id, fd); | ^~~~~~ readsbk.c: In function 'load_sample_names': readsbk.c:45:25: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 45 | #define READSTR(var,fd) fread(var, 20, 1, fd) | ^~~~~~~~~~~~~~~~~~~~~ readsbk.c:252:9: note: in expansion of macro 'READSTR' 252 | READSTR (sf->samplenames[i].name, fd); | ^~~~~~~ readsbk.c: In function 'load_preset_header': readsbk.c:45:25: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 45 | #define READSTR(var,fd) fread(var, 20, 1, fd) | ^~~~~~~~~~~~~~~~~~~~~ readsbk.c:264:9: note: in expansion of macro 'READSTR' 264 | READSTR (sf->presethdr[i].name, fd); | ^~~~~~~ readsbk.c:68:40: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 68 | #define SKIPDW(fd) {uint32 dummy; fread(&dummy, 4, 1, fd);} | ^~~~~~~~~~~~~~~~~~~~~~~ readsbk.c:270:9: note: in expansion of macro 'SKIPDW' 270 | SKIPDW (fd); /* lib */ | ^~~~~~ readsbk.c:68:40: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 68 | #define SKIPDW(fd) {uint32 dummy; fread(&dummy, 4, 1, fd);} | ^~~~~~~~~~~~~~~~~~~~~~~ readsbk.c:271:9: note: in expansion of macro 'SKIPDW' 271 | SKIPDW (fd); /* genre */ | ^~~~~~ readsbk.c:68:40: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 68 | #define SKIPDW(fd) {uint32 dummy; fread(&dummy, 4, 1, fd);} | ^~~~~~~~~~~~~~~~~~~~~~~ readsbk.c:272:9: note: in expansion of macro 'SKIPDW' 272 | SKIPDW (fd); /* morph */ | ^~~~~~ readsbk.c: In function 'load_inst_header': readsbk.c:45:25: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 45 | #define READSTR(var,fd) fread(var, 20, 1, fd) | ^~~~~~~~~~~~~~~~~~~~~ readsbk.c:284:9: note: in expansion of macro 'READSTR' 284 | READSTR (sf->insthdr[i].name, fd); | ^~~~~~~ readsbk.c: In function 'load_bag': readsbk.c:67:40: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 67 | #define SKIPW(fd) {uint16 dummy; fread(&dummy, 2, 1, fd);} | ^~~~~~~~~~~~~~~~~~~~~~~ readsbk.c:301:9: note: in expansion of macro 'SKIPW' 301 | SKIPW (fd); /* mod */ | ^~~~~ readsbk.c: In function 'load_sample_info': readsbk.c:45:25: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 45 | #define READSTR(var,fd) fread(var, 20, 1, fd) | ^~~~~~~~~~~~~~~~~~~~~ readsbk.c:344:13: note: in expansion of macro 'READSTR' 344 | READSTR (sf->samplenames[i].name, fd); | ^~~~~~~ readsbk.c:65:25: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 65 | #define READB(var,fd) fread(var, 1, 1, fd) | ^~~~~~~~~~~~~~~~~~~~ readsbk.c:351:13: note: in expansion of macro 'READB' 351 | READB (&sf->sampleinfo[i].originalPitch, fd); | ^~~~~ readsbk.c:65:25: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 65 | #define READB(var,fd) fread(var, 1, 1, fd) | ^~~~~~~~~~~~~~~~~~~~ readsbk.c:352:13: note: in expansion of macro 'READB' 352 | READB (&sf->sampleinfo[i].pitchCorrection, fd); | ^~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' gcc -DHAVE_CONFIG_H -I. -DDEFAULT_PATH=\"/usr/share/timidity\" -Wall -W -Wshadow -Wpointer-arith -Wcast-align -I/usr/include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fsigned-char -c -o timidity.o timidity.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' gcc -DHAVE_CONFIG_H -I. -DDEFAULT_PATH=\"/usr/share/timidity\" -Wall -W -Wshadow -Wpointer-arith -Wcast-align -I/usr/include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fsigned-char -c -o wav2pat.o wav2pat.c wav2pat.c: In function 'main': wav2pat.c:255:10: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 255 | strcpy(point, "Copyleft 1995 EWE&U Conductions and one Retreated Gravi\032"); | ^~~~~ | | | unsigned char * In file included from /usr/include/features.h:503, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:28, from wav2pat.c:26: /usr/include/bits/string_fortified.h:77:1: note: expected 'char *' but argument is of type 'unsigned char *' 77 | __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) | ^~~~~ wav2pat.c:267:10: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 267 | strcpy(point, "Bleahnoise"); /* instrument name */ | ^~~~~ | | | unsigned char * /usr/include/bits/string_fortified.h:77:1: note: expected 'char *' but argument is of type 'unsigned char *' 77 | __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) | ^~~~~ wav2pat.c:279:10: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 279 | strcpy(point, "bleah"); /* wave name */ | ^~~~~ | | | unsigned char * /usr/include/bits/string_fortified.h:77:1: note: expected 'char *' but argument is of type 'unsigned char *' 77 | __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) | ^~~~~ wav2pat.c:319:3: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 319 | write(STDOUT_FILENO, thing, 335); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ wav2pat.c:331:7: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 331 | write(STDOUT_FILENO, thing, c); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' gcc -DHAVE_CONFIG_H -I. -DDEFAULT_PATH=\"/usr/share/timidity\" -Wall -W -Wshadow -Wpointer-arith -Wcast-align -I/usr/include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fsigned-char -c -o sf2cfg.o sf2cfg.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' gcc -DHAVE_CONFIG_H -I. -DDEFAULT_PATH=\"/usr/share/timidity\" -Wall -W -Wshadow -Wpointer-arith -Wcast-align -I/usr/include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fsigned-char -c -o mix.o mix.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' gcc -DDEFAULT_PATH=\"/usr/share/timidity\" -Wall -W -Wshadow -Wpointer-arith -Wcast-align -I/usr/include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fsigned-char -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -o wav2pat wav2pat.o make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' gcc -DDEFAULT_PATH=\"/usr/share/timidity\" -Wall -W -Wshadow -Wpointer-arith -Wcast-align -I/usr/include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fsigned-char -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -o sf2cfg sf2cfg.o readsbk.o make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' gcc -DHAVE_CONFIG_H -I. -DDEFAULT_PATH=\"/usr/share/timidity\" -Wall -W -Wshadow -Wpointer-arith -Wcast-align -I/usr/include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fsigned-char -c -o alsa_a.o alsa_a.c alsa_a.c: In function 'open_output': alsa_a.c:441:40: warning: pointer targets in passing argument 2 of 'snd_pcm_hw_params_get_rate' differ in signedness [-Wpointer-sign] 441 | snd_pcm_hw_params_get_rate (pinfo, &tmp, &dir); | ^~~~ | | | int * In file included from /usr/include/alsa/asoundlib.h:56, from alsa_a.c:42: /usr/include/alsa/pcm.h:825:81: note: expected 'unsigned int *' but argument is of type 'int *' 825 | int snd_pcm_hw_params_get_rate(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir); | ~~~~~~~~~~~~~~^~~ alsa_a.c: In function 'output_pause': alsa_a.c:795:1: warning: control reaches end of non-void function [-Wreturn-type] 795 | } | ^ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' gcc -DHAVE_CONFIG_H -I. -DDEFAULT_PATH=\"/usr/share/timidity\" -Wall -W -Wshadow -Wpointer-arith -Wcast-align -I/usr/include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fsigned-char -c -o resample32.o resample32.c resample32.c: In function 'porta_resample_voice': resample32.c:1041:9: warning: variable 'loop' set but not used [-Wunused-but-set-variable] 1041 | int loop; | ^~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' gcc -DHAVE_CONFIG_H -I. -DDEFAULT_PATH=\"/usr/share/timidity\" -Wall -W -Wshadow -Wpointer-arith -Wcast-align -I/usr/include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fsigned-char -c -o resample_l.o resample_l.c resample_l.c: In function 'porta_resample_voice': resample_l.c:1018:9: warning: variable 'loop' set but not used [-Wunused-but-set-variable] 1018 | int loop; | ^~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' gcc -DHAVE_CONFIG_H -I. -DDEFAULT_PATH=\"/usr/share/timidity\" -Wall -W -Wshadow -Wpointer-arith -Wcast-align -I/usr/include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fsigned-char -c -o instrum.o instrum.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' gcc -DHAVE_CONFIG_H -I. -DDEFAULT_PATH=\"/usr/share/timidity\" -Wall -W -Wshadow -Wpointer-arith -Wcast-align -I/usr/include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fsigned-char -c -o resample.o resample.c resample.c: In function 'porta_resample_voice': resample.c:1141:9: warning: variable 'loop' set but not used [-Wunused-but-set-variable] 1141 | int loop; | ^~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' gcc -DHAVE_CONFIG_H -I. -DDEFAULT_PATH=\"/usr/share/timidity\" -Wall -W -Wshadow -Wpointer-arith -Wcast-align -I/usr/include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fsigned-char -c -o sndfont.o sndfont.c sndfont.c: In function 'load_one_side': sndfont.c:608:13: warning: variable 'samplerate_save' set but not used [-Wunused-but-set-variable] 608 | uint32 samplerate_save; | ^~~~~~~~~~~~~~~ sndfont.c: In function 'convert_volume_envelope': sndfont.c:1778:44: warning: parameter 'preset' set but not used [-Wunused-but-set-parameter] 1778 | int banknum , int preset) | ~~~~^~~~~~ sndfont.c: In function 'convert_modulation_envelope': sndfont.c:1897:34: warning: parameter 'banknum' set but not used [-Wunused-but-set-parameter] 1897 | int banknum, int preset) | ~~~~^~~~~~~ sndfont.c: At top level: sndfont.c:1098:1: warning: 'intersect_rvec' defined but not used [-Wunused-function] 1098 | intersect_rvec (int lr, int kr) | ^~~~~~~~~~~~~~ sndfont.c:1087:1: warning: 'subset_rvec' defined but not used [-Wunused-function] 1087 | subset_rvec (int lr, int kr) | ^~~~~~~~~~~ sndfont.c:1077:1: warning: 'union_rvec' defined but not used [-Wunused-function] 1077 | union_rvec (int lr, int kr) | ^~~~~~~~~~ sndfont.c:1069:1: warning: 'clear_rvec' defined but not used [-Wunused-function] 1069 | clear_rvec () | ^~~~~~~~~~ sndfont.c:1055:1: warning: 'intersect_vvec' defined but not used [-Wunused-function] 1055 | intersect_vvec (int lr, int vr) | ^~~~~~~~~~~~~~ sndfont.c:1044:1: warning: 'union_vvec' defined but not used [-Wunused-function] 1044 | union_vvec (int lr, int vr) | ^~~~~~~~~~ sndfont.c:1036:1: warning: 'clear_vvec' defined but not used [-Wunused-function] 1036 | clear_vvec () | ^~~~~~~~~~ sndfont.c:1022:1: warning: 'subset_kvec' defined but not used [-Wunused-function] 1022 | subset_kvec (int lr, int kr) | ^~~~~~~~~~~ sndfont.c:1011:1: warning: 'intersect_kvec' defined but not used [-Wunused-function] 1011 | intersect_kvec (int lr, int kr) | ^~~~~~~~~~~~~~ sndfont.c:1000:1: warning: 'union_kvec' defined but not used [-Wunused-function] 1000 | union_kvec (int lr, int kr) | ^~~~~~~~~~ sndfont.c:992:1: warning: 'new_kvec' defined but not used [-Wunused-function] 992 | new_kvec (int lr) | ^~~~~~~~ sndfont.c:984:1: warning: 'clear_kvec' defined but not used [-Wunused-function] 984 | clear_kvec () | ^~~~~~~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' gcc -DHAVE_CONFIG_H -I. -DDEFAULT_PATH=\"/usr/share/timidity\" -Wall -W -Wshadow -Wpointer-arith -Wcast-align -I/usr/include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fsigned-char -c -o readmidi.o readmidi.c readmidi.c: In function 'read_midi_file': readmidi.c:2386:9: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 2386 | fread (tmp, 1, 12, fp); | ^~~~~~~~~~~~~~~~~~~~~~ readmidi.c: In function 'read_midi_event': readmidi.c:1380:25: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 1380 | fread (&midi_port_number, 1, 1, fp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ readmidi.c: In function 'sysex': readmidi.c:517:15: warning: pointer 's' used after 'free' [-Wuse-after-free] 517 | *sysb = s[5]; | ~~~~~~^~~~~~ readmidi.c:515:9: note: call to 'free' here 515 | free (s); | ^~~~~~~~ readmidi.c:516:15: warning: pointer 's' used after 'free' [-Wuse-after-free] 516 | *sysa = s[4]; | ~~~~~~^~~~~~ readmidi.c:515:9: note: call to 'free' here 515 | free (s); | ^~~~~~~~ readmidi.c:527:19: warning: pointer 's' used after 'free' [-Wuse-after-free] 527 | *sysb = (s[0] == 0x7f); | ~^~~ readmidi.c:525:9: note: call to 'free' here 525 | free (s); | ^~~~~~~~ readmidi.c:526:32: warning: pointer 's' used after 'free' [-Wuse-after-free] 526 | *sysa = s[4] - 0x40 + s[5] * 16; | ^ readmidi.c:525:9: note: call to 'free' here 525 | free (s); | ^~~~~~~~ readmidi.c:526:18: warning: pointer 's' used after 'free' [-Wuse-after-free] 526 | *sysa = s[4] - 0x40 + s[5] * 16; | ^ readmidi.c:525:9: note: call to 'free' here 525 | free (s); | ^~~~~~~~ In function 'sysex', inlined from 'read_midi_event' at readmidi.c:1338:13, inlined from 'read_track' at readmidi.c:1809:16: readmidi.c:526:29: warning: pointer 's' used after 'free' [-Wuse-after-free] 526 | *sysa = s[4] - 0x40 + s[5] * 16; | ~~~~~~~~~~~~^~~~~~~~~~~ readmidi.c:525:9: note: call to 'free' here 525 | free (s); | ^~~~~~~~ readmidi.c:526:18: warning: pointer 's' used after 'free' [-Wuse-after-free] 526 | *sysa = s[4] - 0x40 + s[5] * 16; | ~^~~ readmidi.c:525:9: note: call to 'free' here 525 | free (s); | ^~~~~~~~ readmidi.c:682:61: warning: array subscript 69 is above array bounds of 'int[68]' [-Warray-bounds=] 682 | if (cd == 0||cd >= 0x30) xg_insertion2_parameter[cd+1] = dtb; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ In file included from readmidi.c:46: tables.h: In function 'read_track': tables.h:112:12: note: while referencing 'xg_insertion2_parameter' 112 | extern int xg_insertion2_parameter[MAX_INSERTION_PARAMETER]; | ^~~~~~~~~~~~~~~~~~~~~~~ In function 'sysex', inlined from 'read_midi_event' at readmidi.c:1338:13, inlined from 'read_track' at readmidi.c:1809:16: readmidi.c:648:61: warning: array subscript 69 is above array bounds of 'int[68]' [-Warray-bounds=] 648 | if (cd == 0||cd >= 0x30) xg_insertion1_parameter[cd+1] = dtb; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ tables.h: In function 'read_track': tables.h:111:12: note: while referencing 'xg_insertion1_parameter' 111 | extern int xg_insertion1_parameter[MAX_INSERTION_PARAMETER]; | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:980, from readmidi.c:23: In function 'fread', inlined from 'read_midi_file' at readmidi.c:2386:2: /usr/include/bits/stdio2.h:214:12: warning: call to '__fread_chk_warn' declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [-Wattribute-warning] 214 | return __fread_chk_warn (__ptr, sz, __size, __n, __stream); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' gcc -DHAVE_CONFIG_H -I. -DDEFAULT_PATH=\"/usr/share/timidity\" -Wall -W -Wshadow -Wpointer-arith -Wcast-align -I/usr/include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fsigned-char -c -o sfz2pat.o sfz2pat.c ./sfz2pat.l: In function 'read_sample': ./sfz2pat.l:1685:33: warning: pointer targets in passing argument 2 of 'ov_read' differ in signedness [-Wpointer-sign] 1685 | long ret = ov_read(&vf, sample_buf, datasize, 0, 2, 1, ¤t_section); | ^~~~~~~~~~ | | | unsigned char * In file included from ./sfz2pat.l:44: /usr/include/vorbis/vorbisfile.h:193:46: note: expected 'char *' but argument is of type 'unsigned char *' 193 | extern long ov_read(OggVorbis_File *vf,char *buffer,int length, | ~~~~~~^~~~~~ ./sfz2pat.l:1487:43: warning: variable 'all_length' set but not used [-Wunused-but-set-variable] 1487 | int32 samplerate=-1, datasize=-1, all_length, chunk_length, c, i; | ^~~~~~~~~~ ./sfz2pat.l: In function 'make_pat': ./sfz2pat.l:2253:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 2253 | write(stereofd, buf, sizeof (sample)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./sfz2pat.l:2257:17: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 2257 | write(stereofd, left_buf + data_width * region_start, region_bytes); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./sfz2pat.l:2259:17: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 2259 | write(stereofd, right_buf + data_width * region_start, region_bytes); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sfz2pat.c: At top level: sfz2pat.c:2435:16: warning: 'input' defined but not used [-Wunused-function] 2435 | #else | ^ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' gcc -DDEFAULT_PATH=\"/usr/share/timidity\" -Wall -W -Wshadow -Wpointer-arith -Wcast-align -I/usr/include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fsigned-char -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -o sfz2pat sfz2pat.o tables.o -lvorbisfile -L/usr/lib -lvorbis -lm /usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm /usr/bin/ld: skipping incompatible /usr/lib/libgcc_s.so when searching for -lgcc_s /usr/bin/ld: skipping incompatible /usr/lib/libgcc_s.so.1 when searching for libgcc_s.so.1 /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc /usr/bin/ld: skipping incompatible /usr/lib/libgcc_s.so when searching for -lgcc_s /usr/bin/ld: skipping incompatible /usr/lib/libgcc_s.so.1 when searching for libgcc_s.so.1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' gcc -DHAVE_CONFIG_H -I. -DDEFAULT_PATH=\"/usr/share/timidity\" -Wall -W -Wshadow -Wpointer-arith -Wcast-align -I/usr/include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fsigned-char -c -o sfz.o sfz.c In file included from sfz.c:2: ./sfz2pat.l: In function 'read_sample': ./sfz2pat.l:1685:33: warning: pointer targets in passing argument 2 of 'ov_read' differ in signedness [-Wpointer-sign] 1685 | long ret = ov_read(&vf, sample_buf, datasize, 0, 2, 1, ¤t_section); | ^~~~~~~~~~ | | | unsigned char * In file included from ./sfz2pat.l:44: /usr/include/vorbis/vorbisfile.h:193:46: note: expected 'char *' but argument is of type 'unsigned char *' 193 | extern long ov_read(OggVorbis_File *vf,char *buffer,int length, | ~~~~~~^~~~~~ ./sfz2pat.l:1487:43: warning: variable 'all_length' set but not used [-Wunused-but-set-variable] 1487 | int32 samplerate=-1, datasize=-1, all_length, chunk_length, c, i; | ^~~~~~~~~~ sfz2pat.c: At top level: sfz2pat.c:2435:16: warning: 'input' defined but not used [-Wunused-function] 2435 | #else | ^ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' gcc -DHAVE_CONFIG_H -I. -DDEFAULT_PATH=\"/usr/share/timidity\" -Wall -W -Wshadow -Wpointer-arith -Wcast-align -I/usr/include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fsigned-char -c -o cfg.o cfg.c cfg.c:2591:16: warning: 'input' defined but not used [-Wunused-function] 2591 | static int input (void) | ^~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' gcc -DHAVE_CONFIG_H -I. -DDEFAULT_PATH=\"/usr/share/timidity\" -Wall -W -Wshadow -Wpointer-arith -Wcast-align -I/usr/include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fsigned-char -c -o playmidi.o playmidi.c playmidi.c: In function 'select_sample': playmidi.c:284:29: warning: variable 'midfreq' set but not used [-Wunused-but-set-variable] 284 | int32 f, cdiff, diff, midfreq; | ^~~~~~~ playmidi.c: In function 'clone_voice': playmidi.c:1033:39: warning: variable 'chorus_feedback' set but not used [-Wunused-but-set-variable] 1033 | int lfo_frequency, lfo_depth, chorus_feedback; | ^~~~~~~~~~~~~~~ playmidi.c:1033:28: warning: variable 'lfo_depth' set but not used [-Wunused-but-set-variable] 1033 | int lfo_frequency, lfo_depth, chorus_feedback; | ^~~~~~~~~ playmidi.c:1033:13: warning: variable 'lfo_frequency' set but not used [-Wunused-but-set-variable] 1033 | int lfo_frequency, lfo_depth, chorus_feedback; | ^~~~~~~~~~~~~ playmidi.c:1026:48: warning: variable 'milli' set but not used [-Wunused-but-set-variable] 1026 | int w, k, played_note, chorus, reverb, milli; | ^~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' gcc -DHAVE_CONFIG_H -I. -DDEFAULT_PATH=\"/usr/share/timidity\" -Wall -W -Wshadow -Wpointer-arith -Wcast-align -I/usr/include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fsigned-char -c -o resample_f.o resample_f.c resample_f.c: In function 'porta_resample_voice': resample_f.c:4994:9: warning: variable 'loop' set but not used [-Wunused-but-set-variable] 4994 | int loop; | ^~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' gcc -DHAVE_CONFIG_H -I. -DDEFAULT_PATH=\"/usr/share/timidity\" -Wall -W -Wshadow -Wpointer-arith -Wcast-align -I/usr/include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fsigned-char -c -o resample_s.o resample_s.c resample_s.c: In function 'porta_resample_voice': resample_s.c:11549:9: warning: variable 'loop' set but not used [-Wunused-but-set-variable] 11549 | int loop; | ^~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' gcc -DHAVE_CONFIG_H -I. -DDEFAULT_PATH=\"/usr/share/timidity\" -Wall -W -Wshadow -Wpointer-arith -Wcast-align -I/usr/include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fsigned-char -c -o resample_m.o resample_m.c resample_m.c: In function 'porta_resample_voice': resample_m.c:11336:9: warning: variable 'loop' set but not used [-Wunused-but-set-variable] 11336 | int loop; | ^~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' gcc -DDEFAULT_PATH=\"/usr/share/timidity\" -Wall -W -Wshadow -Wpointer-arith -Wcast-align -I/usr/include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fsigned-char -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -o gt timidity.o common.o readmidi.o playmidi.o mix.o instrum.o tables.o controls.o output.o filter.o wave_a.o dumb_c.o sndfont.o readsbk.o sfz.o resample.o resample32.o resample_l.o resample_f.o resample_s.o resample_m.o cfg.o alsa_a.o -lasound -lm -ldl -lpthread -lvorbisfile -L/usr/lib -lvorbis -lm /usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm /usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm /usr/bin/ld: skipping incompatible /usr/lib/libgcc_s.so when searching for -lgcc_s /usr/bin/ld: skipping incompatible /usr/lib/libgcc_s.so.1 when searching for libgcc_s.so.1 /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc /usr/bin/ld: skipping incompatible /usr/lib/libgcc_s.so when searching for -lgcc_s /usr/bin/ld: skipping incompatible /usr/lib/libgcc_s.so.1 when searching for libgcc_s.so.1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/src' Making all in utils make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/utils' gcc -DHAVE_CONFIG_H -I. -I../src -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fsigned-char -c -o patcat.o patcat.c patcat.c: In function 'fix_sample_read': patcat.c:227:9: error: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration] 227 | memcpy(sample->envelope_rate, &buf[37], 6); | ^~~~~~ patcat.c:12:1: note: include '' or provide a declaration of 'memcpy' 11 | #include +++ |+#include 12 | patcat.c:227:9: warning: incompatible implicit declaration of built-in function 'memcpy' [-Wbuiltin-declaration-mismatch] 227 | memcpy(sample->envelope_rate, &buf[37], 6); | ^~~~~~ patcat.c:227:9: note: include '' or provide a declaration of 'memcpy' patcat.c: In function 'fix_sample_write': patcat.c:259:9: warning: incompatible implicit declaration of built-in function 'memcpy' [-Wbuiltin-declaration-mismatch] 259 | memcpy(&buf[37], sample->envelope_rate, 6); | ^~~~~~ patcat.c:259:9: note: include '' or provide a declaration of 'memcpy' patcat.c: At top level: patcat.c:303:1: error: return type defaults to 'int' [-Wimplicit-int] 303 | main(int argc, char **argv) | ^~~~ patcat.c: In function 'main': patcat.c:324:9: error: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] 324 | strcpy(outfile, argv[1]); | ^~~~~~ patcat.c:324:9: note: include '' or provide a declaration of 'strcpy' patcat.c:324:9: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] patcat.c:324:9: note: include '' or provide a declaration of 'strcpy' patcat.c:326:14: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 326 | if (!strcmp(leftinfile + strlen(leftinfile) - 4, ".pat")) | ^~~~~~ patcat.c:326:14: note: include '' or provide a declaration of 'strcmp' patcat.c:326:34: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 326 | if (!strcmp(leftinfile + strlen(leftinfile) - 4, ".pat")) | ^~~~~~ patcat.c:326:34: note: include '' or provide a declaration of 'strlen' patcat.c:326:34: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] patcat.c:326:34: note: include '' or provide a declaration of 'strlen' patcat.c:328:14: error: implicit declaration of function 'strcat' [-Wimplicit-function-declaration] 328 | else strcat(leftinfile, ".pat"); | ^~~~~~ patcat.c:328:14: note: include '' or provide a declaration of 'strcat' patcat.c:328:14: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] patcat.c:328:14: note: include '' or provide a declaration of 'strcat' patcat.c:330:34: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 330 | if (strcmp(rightinfile + strlen(rightinfile) - 4, ".pat")) | ^~~~~~ patcat.c:330:34: note: include '' or provide a declaration of 'strlen' patcat.c:331:17: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 331 | strcat(rightinfile, ".pat"); | ^~~~~~ patcat.c:331:17: note: include '' or provide a declaration of 'strcat' patcat.c:333:9: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 333 | strcat(outfile, "-stereo.pat"); | ^~~~~~ patcat.c:333:9: note: include '' or provide a declaration of 'strcat' patcat.c:360:9: warning: incompatible implicit declaration of built-in function 'memcpy' [-Wbuiltin-declaration-mismatch] 360 | memcpy ((char *) &header, buf, sizeof (header)); | ^~~~~~ patcat.c:360:9: note: include '' or provide a declaration of 'memcpy' patcat.c:366:13: error: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] 366 | if (strncmp (header.magic, "GF1PATCH110", 12)) { | ^~~~~~~ patcat.c:366:13: note: include '' or provide a declaration of 'strncmp' patcat.c:366:51: warning: 'strncmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 366 | if (strncmp (header.magic, "GF1PATCH110", 12)) { | ^~ : note: built-in 'strncmp' declared here patcat.c:372:57: warning: 'strncmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 372 | if (strncmp (right_header.magic, "GF1PATCH110", 12)) { | ^~ : note: built-in 'strncmp' declared here patcat.c:378:51: warning: 'strncmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 378 | if (strncmp (header.version, "ID#000002", 10)) { | ^~ : note: built-in 'strncmp' declared here patcat.c:384:57: warning: 'strncmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 384 | if (strncmp (right_header.version, "ID#000002", 10)) { | ^~ : note: built-in 'strncmp' declared here patcat.c:391:50: warning: 'strncmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 391 | if (!strncmp (header.sf2magic, "SF2EXT", 7)) { | ^ : note: built-in 'strncmp' declared here patcat.c:394:56: warning: 'strncmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 394 | if (!strncmp (right_header.sf2magic, "SF2EXT", 7)) { | ^ : note: built-in 'strncmp' declared here make[1]: *** [Makefile:442: patcat.o] Error 1 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/utils' make[1]: *** Waiting for unfinished jobs.... make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/utils' gcc -DHAVE_CONFIG_H -I. -I../src -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fsigned-char -c -o patinfo.o patinfo.c patinfo.c: In function 'fix_sample_read': patinfo.c:241:9: error: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration] 241 | memcpy(sample->envelope_rate, &buf[37], 6); | ^~~~~~ patinfo.c:11:1: note: include '' or provide a declaration of 'memcpy' 10 | #include +++ |+#include 11 | patinfo.c:241:9: warning: incompatible implicit declaration of built-in function 'memcpy' [-Wbuiltin-declaration-mismatch] 241 | memcpy(sample->envelope_rate, &buf[37], 6); | ^~~~~~ patinfo.c:241:9: note: include '' or provide a declaration of 'memcpy' patinfo.c: At top level: patinfo.c:265:1: error: return type defaults to 'int' [-Wimplicit-int] 265 | main(int argc, char **argv) | ^~~~ patinfo.c: In function 'main': patinfo.c:298:9: error: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] 298 | strcpy(outfile, argv[optind]); | ^~~~~~ patinfo.c:298:9: note: include '' or provide a declaration of 'strcpy' patinfo.c:298:9: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] patinfo.c:298:9: note: include '' or provide a declaration of 'strcpy' patinfo.c:300:9: error: implicit declaration of function 'strcat' [-Wimplicit-function-declaration] 300 | strcat(infile, argv[optind]); | ^~~~~~ patinfo.c:300:9: note: include '' or provide a declaration of 'strcat' patinfo.c:300:9: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] patinfo.c:300:9: note: include '' or provide a declaration of 'strcat' patinfo.c:301:14: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 301 | if (!strcmp(infile + strlen(infile) - 4, ".pat")) | ^~~~~~ patinfo.c:301:14: note: include '' or provide a declaration of 'strcmp' patinfo.c:301:30: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 301 | if (!strcmp(infile + strlen(infile) - 4, ".pat")) | ^~~~~~ patinfo.c:301:30: note: include '' or provide a declaration of 'strlen' patinfo.c:301:30: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] patinfo.c:301:30: note: include '' or provide a declaration of 'strlen' patinfo.c:309:37: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 309 | if (strcmp(infile + strlen(infile) - 4, ".pat")) | ^~~~~~ patinfo.c:309:37: note: include '' or provide a declaration of 'strlen' patinfo.c:322:9: warning: incompatible implicit declaration of built-in function 'memcpy' [-Wbuiltin-declaration-mismatch] 322 | memcpy ((char *) &header, buf, sizeof (header)); | ^~~~~~ patinfo.c:322:9: note: include '' or provide a declaration of 'memcpy' patinfo.c:326:13: error: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] 326 | if (strncmp (header.magic, "GF1PATCH110", 12)) { | ^~~~~~~ patinfo.c:326:13: note: include '' or provide a declaration of 'strncmp' patinfo.c:326:51: warning: 'strncmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 326 | if (strncmp (header.magic, "GF1PATCH110", 12)) { | ^~ : note: built-in 'strncmp' declared here patinfo.c:330:51: warning: 'strncmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 330 | if (strncmp (header.version, "ID#000002", 10)) { | ^~ : note: built-in 'strncmp' declared here patinfo.c:335:50: warning: 'strncmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 335 | if (!strncmp (header.sf2magic, "SF2EXT", 7)) { | ^ : note: built-in 'strncmp' declared here patinfo.c:471:47: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'int' [-Wformat=] 471 | if (opt_verbose) printf("\t\tdetune %ld, panning %u\n", | ~~^ | | | long int | %d 472 | sample.detune, sample.panning); | ~~~~~~~~~~~~~ | | | int make[1]: *** [Makefile:442: patinfo.o] Error 1 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/utils' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/utils' gcc -DHAVE_CONFIG_H -I. -I../src -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fsigned-char -c -o dim.o dim.c dim.c:323:1: error: return type defaults to 'int' [-Wimplicit-int] 323 | filegetc() | ^~~~~~~~ dim.c:329:1: error: return type defaults to 'int' [-Wimplicit-int] 329 | main(argc,argv) | ^~~~ dim.c: In function 'main': dim.c:329:1: error: type of 'argc' defaults to 'int' [-Wimplicit-int] dim.c:352:9: error: implicit declaration of function 'initfuncs' [-Wimplicit-function-declaration] 352 | initfuncs(); | ^~~~~~~~~ dim.c: In function 'txt_header': dim.c:397:1: error: type of 'format' defaults to 'int' [-Wimplicit-int] 397 | txt_header(format,ntrks,ldivision) | ^~~~~~~~~~ dim.c:397:1: error: type of 'ntrks' defaults to 'int' [-Wimplicit-int] dim.c:397:1: error: type of 'ldivision' defaults to 'int' [-Wimplicit-int] dim.c: In function 'txt_noteon': dim.c:422:1: error: type of 'chan' defaults to 'int' [-Wimplicit-int] 422 | txt_noteon(chan,pitch,vol) | ^~~~~~~~~~ dim.c:422:1: error: type of 'pitch' defaults to 'int' [-Wimplicit-int] dim.c:422:1: error: type of 'vol' defaults to 'int' [-Wimplicit-int] dim.c: In function 'txt_noteoff': dim.c:439:1: error: type of 'chan' defaults to 'int' [-Wimplicit-int] 439 | txt_noteoff(chan,pitch,vol) | ^~~~~~~~~~~ dim.c:439:1: error: type of 'pitch' defaults to 'int' [-Wimplicit-int] dim.c:439:1: error: type of 'vol' defaults to 'int' [-Wimplicit-int] dim.c: In function 'txt_pressure': dim.c:456:1: error: type of 'chan' defaults to 'int' [-Wimplicit-int] 456 | txt_pressure(chan,pitch,press) | ^~~~~~~~~~~~ dim.c:456:1: error: type of 'pitch' defaults to 'int' [-Wimplicit-int] dim.c:456:1: error: type of 'press' defaults to 'int' [-Wimplicit-int] dim.c: In function 'txt_parameter': dim.c:547:1: error: type of 'chan' defaults to 'int' [-Wimplicit-int] 547 | txt_parameter(chan,control,value) | ^~~~~~~~~~~~~ dim.c:547:1: error: type of 'control' defaults to 'int' [-Wimplicit-int] dim.c:547:1: error: type of 'value' defaults to 'int' [-Wimplicit-int] dim.c: In function 'txt_pitchbend': dim.c:662:1: error: type of 'chan' defaults to 'int' [-Wimplicit-int] 662 | txt_pitchbend(chan,msb,lsb) | ^~~~~~~~~~~~~ dim.c:662:1: error: type of 'msb' defaults to 'int' [-Wimplicit-int] dim.c:662:1: error: type of 'lsb' defaults to 'int' [-Wimplicit-int] dim.c: In function 'txt_program': dim.c:669:1: error: type of 'chan' defaults to 'int' [-Wimplicit-int] 669 | txt_program(chan,program) | ^~~~~~~~~~~ dim.c:669:1: error: type of 'program' defaults to 'int' [-Wimplicit-int] dim.c: In function 'txt_chanpressure': dim.c:678:1: error: type of 'chan' defaults to 'int' [-Wimplicit-int] 678 | txt_chanpressure(chan,press) | ^~~~~~~~~~~~~~~~ dim.c:678:1: error: type of 'press' defaults to 'int' [-Wimplicit-int] dim.c: In function 'txt_sysex': dim.c:853:1: error: type of 'leng' defaults to 'int' [-Wimplicit-int] 853 | txt_sysex(leng,mess) | ^~~~~~~~~ dim.c: In function 'txt_metamisc': dim.c:951:1: error: type of 'type' defaults to 'int' [-Wimplicit-int] 951 | txt_metamisc(type,leng,mess) | ^~~~~~~~~~~~ dim.c:951:1: error: type of 'leng' defaults to 'int' [-Wimplicit-int] dim.c: In function 'txt_metaspecial': dim.c:967:1: error: type of 'leng' defaults to 'int' [-Wimplicit-int] 967 | txt_metaspecial(leng,mess) | ^~~~~~~~~~~~~~~ dim.c: In function 'txt_metatext': dim.c:983:1: error: type of 'type' defaults to 'int' [-Wimplicit-int] 983 | txt_metatext(type,leng,mess) | ^~~~~~~~~~~~ dim.c:983:1: error: type of 'leng' defaults to 'int' [-Wimplicit-int] dim.c: In function 'txt_metaseq': dim.c:1014:1: error: type of 'num' defaults to 'int' [-Wimplicit-int] 1014 | txt_metaseq(num) | ^~~~~~~~~~~ dim.c: In function 'txt_keysig': dim.c:1028:1: error: type of 'sf' defaults to 'int' [-Wimplicit-int] 1028 | txt_keysig(sf,mi) | ^~~~~~~~~~ dim.c:1028:1: error: type of 'mi' defaults to 'int' [-Wimplicit-int] dim.c: In function 'txt_tempo': dim.c:1040:60: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=] 1040 | printf("Tempo, microseconds-per-MIDI-quarter-note=%d\n",tempo); | ~^ ~~~~~ | | | | int long int | %ld dim.c: In function 'txt_timesig': dim.c:1044:1: error: type of 'nn' defaults to 'int' [-Wimplicit-int] 1044 | txt_timesig(nn,dd,cc,bb) | ^~~~~~~~~~~ dim.c:1044:1: error: type of 'dd' defaults to 'int' [-Wimplicit-int] dim.c:1044:1: error: type of 'cc' defaults to 'int' [-Wimplicit-int] dim.c:1044:1: error: type of 'bb' defaults to 'int' [-Wimplicit-int] dim.c: In function 'txt_smpte': dim.c:1056:1: error: type of 'hr' defaults to 'int' [-Wimplicit-int] 1056 | txt_smpte(hr,mn,se,fr,ff) | ^~~~~~~~~ dim.c:1056:1: error: type of 'mn' defaults to 'int' [-Wimplicit-int] dim.c:1056:1: error: type of 'se' defaults to 'int' [-Wimplicit-int] dim.c:1056:1: error: type of 'fr' defaults to 'int' [-Wimplicit-int] dim.c:1056:1: error: type of 'ff' defaults to 'int' [-Wimplicit-int] dim.c: In function 'txt_arbitrary': dim.c:1064:1: error: type of 'leng' defaults to 'int' [-Wimplicit-int] 1064 | txt_arbitrary(leng,mess) | ^~~~~~~~~~~~~ dim.c: In function 'prtime': dim.c:1096:19: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=] 1096 | printf("%3d.%02d.%02d ", the_realtime / (100*16), | ~~^ ~~~~~~~~~~~~~~~~~~~~~~~ | | | | int long int | %3ld dim.c:1096:24: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=] 1096 | printf("%3d.%02d.%02d ", the_realtime / (100*16), | ~~~^ | | | int | %02ld 1097 | (the_realtime / 16) % 100, | ~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long int dim.c:1096:29: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat=] 1096 | printf("%3d.%02d.%02d ", the_realtime / (100*16), | ~~~^ | | | int | %02ld 1097 | (the_realtime / 16) % 100, 1098 | the_realtime % 16); | ~~~~~~~~~~~~~~~~~ | | | long int dim.c: At top level: dim.c:1103:1: error: return type defaults to 'int' [-Wimplicit-int] 1103 | initfuncs() | ^~~~~~~~~ make[1]: *** [Makefile:442: dim.o] Error 1 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/utils' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/utils' gcc -DHAVE_CONFIG_H -I. -I../src -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fsigned-char -c -o unsf.o unsf.c unsf.c: In function 'grab_soundfont': unsf.c:2131:30: error: implicit declaration of function 'isspace' [-Wimplicit-function-declaration] 2131 | while ((i >= 0) && (isspace(s[i]))) { | ^~~~~~~ unsf.c:69:1: note: include '' or provide a declaration of 'isspace' 68 | #include +++ |+#include 69 | #include unsf.c: In function 'add_soundfont_patches': unsf.c:3352:31: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 3352 | fread(sf_presets[i].achPresetName, 20, 1, f); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unsf.c:3405:31: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 3405 | fread(sf_instruments[i].achInstName, 20, 1, f); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unsf.c:3453:31: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 3453 | fread(sf_samples[i].achSampleName, 20, 1, f); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[1]: *** [Makefile:442: unsf.o] Error 1 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/utils' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/utils' gcc -DHAVE_CONFIG_H -I. -I../src -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fsigned-char -c -o midifile.o midifile.c make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/gt-0.4/utils' make: *** [Makefile:357: all-recursive] Error 1 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.gYugme (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.gYugme (%build) I: [iurt_root_command] ERROR: chroot