D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 Installing /home/pterjan/rpmbuild/SRPMS/abcmidi-2025.02.16-1.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.fPfTIP Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.Z2hQX0 + umask 022 + cd /home/pterjan/rpmbuild/BUILD/abcmidi-2025.02.16-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/abcmidi-2025.02.16-build + rm -rf abcmidi + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/abcMIDI-2025.02.16.zip + STATUS=0 + '[' 0 -ne 0 ']' + cd abcmidi + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.c6QGym + umask 022 + cd /home/pterjan/rpmbuild/BUILD/abcmidi-2025.02.16-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 abcmidi + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + 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 + /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 configure: WARNING: unrecognized options: --disable-dependency-tracking 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 we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for a BSD-compatible install... /usr/bin/install -c checking for main in -lm... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for size_t... yes checking for error_at_line... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking for strcasecmp... yes checking for strchr... yes configure: creating ./config.status config.status: creating Makefile config.status: creating config.h config.status: config.h is unchanged configure: WARNING: unrecognized options: --disable-dependency-tracking + /usr/bin/make -O -j16 V=1 VERBOSE=1 gcc -DANSILIBS -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 -O2 -DHAVE_CONFIG_H -I. -c -o queues.o queues.c queues.c: In function 'addtoQ': queues.c:90:6: warning: old-style function definition [-Wold-style-definition] 90 | void addtoQ(num, denom, pitch, chan, effect, d) | ^~~~~~ queues.c: In function 'removefromQ': queues.c:138:6: warning: old-style function definition [-Wold-style-definition] 138 | void removefromQ(i) | ^~~~~~~~~~~ queues.c: In function 'advanceQ': queues.c:195:6: warning: old-style function definition [-Wold-style-definition] 195 | void advanceQ(t) | ^~~~~~~~ queues.c: In function 'note_effect': queues.c:299:6: error: too many arguments to function 'mf_write_midi_event'; expected 0, have 5 299 | mf_write_midi_event(delta8,pitch_wheel,Q[Qhead].chan,data,2); | ^~~~~~~~~~~~~~~~~~~ ~~~~~~ In file included from queues.c:40: midifile.h:38:5: note: declared here 38 | int mf_write_midi_event(); | ^~~~~~~~~~~~~~~~~~~ queues.c:306:3: error: too many arguments to function 'mf_write_midi_event'; expected 0, have 5 306 | mf_write_midi_event(delta_time,pitch_wheel,Q[Qhead].chan,data,2); | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~ midifile.h:38:5: note: declared here 38 | int mf_write_midi_event(); | ^~~~~~~~~~~~~~~~~~~ queues.c: In function 'note_effect2': queues.c:330:8: error: too many arguments to function 'mf_write_midi_event'; expected 0, have 5 330 | mf_write_midi_event(0,pitch_wheel,Q[Qhead].chan,data,2); | ^~~~~~~~~~~~~~~~~~~ ~ midifile.h:38:5: note: declared here 38 | int mf_write_midi_event(); | ^~~~~~~~~~~~~~~~~~~ queues.c:332:8: error: too many arguments to function 'mf_write_midi_event'; expected 0, have 5 332 | mf_write_midi_event(delta,pitch_wheel,Q[Qhead].chan,data,2); | ^~~~~~~~~~~~~~~~~~~ ~~~~~ midifile.h:38:5: note: declared here 38 | int mf_write_midi_event(); | ^~~~~~~~~~~~~~~~~~~ queues.c:341:3: error: too many arguments to function 'mf_write_midi_event'; expected 0, have 5 341 | mf_write_midi_event(delta_time,pitch_wheel,Q[Qhead].chan,data,2); | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~ midifile.h:38:5: note: declared here 38 | int mf_write_midi_event(); | ^~~~~~~~~~~~~~~~~~~ queues.c: In function 'note_effect3': queues.c:359:3: error: too many arguments to function 'mf_write_midi_event'; expected 0, have 5 359 | mf_write_midi_event(delta,pitch_wheel,Q[Qhead].chan,data,2); | ^~~~~~~~~~~~~~~~~~~ ~~~~~ midifile.h:38:5: note: declared here 38 | int mf_write_midi_event(); | ^~~~~~~~~~~~~~~~~~~ queues.c:364:3: error: too many arguments to function 'mf_write_midi_event'; expected 0, have 5 364 | mf_write_midi_event(delta,pitch_wheel,Q[Qhead].chan,data,2); /* [SS] 2014-09-23 */ | ^~~~~~~~~~~~~~~~~~~ ~~~~~ midifile.h:38:5: note: declared here 38 | int mf_write_midi_event(); | ^~~~~~~~~~~~~~~~~~~ queues.c: In function 'note_effect4': queues.c:368:6: warning: old-style function definition [-Wold-style-definition] 368 | void note_effect4(chan) | ^~~~~~~~~~~~ queues.c: In function 'output_eventlist': queues.c:446:25: error: too many arguments to function 'mf_write_midi_event'; expected 0, have 5 446 | if (cmd == -32) mf_write_midi_event(delta,pitch_wheel,Q[Qhead].chan,data,2); | ^~~~~~~~~~~~~~~~~~~ ~~~~~ midifile.h:38:5: note: declared here 38 | int mf_write_midi_event(); | ^~~~~~~~~~~~~~~~~~~ queues.c: In function 'note_effect5': queues.c:451:6: warning: old-style function definition [-Wold-style-definition] 451 | void note_effect5(chan) | ^~~~~~~~~~~~ queues.c: In function 'timestep': queues.c:573:6: warning: old-style function definition [-Wold-style-definition] 573 | void timestep(t, atend) | ^~~~~~~~ make: *** [: queues.o] Error 1 make: *** Waiting for unfinished jobs.... gcc -DANSILIBS -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 -O2 -DHAVE_CONFIG_H -I. -c -o parseabc.o parseabc.c parseabc.c: In function 'checkmalloc': parseabc.c:142:1: warning: old-style function definition [-Wold-style-definition] 142 | checkmalloc (bytes) | ^~~~~~~~~~~ parseabc.c: In function 'addstring': parseabc.c:158:1: warning: old-style function definition [-Wold-style-definition] 158 | addstring (s) | ^~~~~~~~~ parseabc.c: In function 'concatenatestring': parseabc.c:170:8: warning: old-style function definition [-Wold-style-definition] 170 | char * concatenatestring(s1,s2) | ^~~~~~~~~~~~~~~~~ parseabc.c: In function 'initvstring': parseabc.c:186:1: warning: old-style function definition [-Wold-style-definition] 186 | initvstring (s) | ^~~~~~~~~~~ parseabc.c: In function 'extendvstring': parseabc.c:197:1: warning: old-style function definition [-Wold-style-definition] 197 | extendvstring (s) | ^~~~~~~~~~~~~ parseabc.c: In function 'addch': parseabc.c:218:1: warning: old-style function definition [-Wold-style-definition] 218 | addch (ch, s) | ^~~~~ parseabc.c: In function 'addtext': parseabc.c:233:1: warning: old-style function definition [-Wold-style-definition] 233 | addtext (text, s) | ^~~~~~~ parseabc.c: In function 'clearvstring': parseabc.c:250:1: warning: old-style function definition [-Wold-style-definition] 250 | clearvstring (s) | ^~~~~~~~~~~~ parseabc.c: In function 'freevstring': parseabc.c:260:1: warning: old-style function definition [-Wold-style-definition] 260 | freevstring (s) | ^~~~~~~~~~~ parseabc.c: In function 'handle_abc2midi_parser': parseabc.c:289:6: warning: old-style function definition [-Wold-style-definition] 289 | void handle_abc2midi_parser (line) | ^~~~~~~~~~~~~~~~~~~~~~ parseabc.c: In function 'getarg': parseabc.c:304:1: warning: old-style function definition [-Wold-style-definition] 304 | getarg (option, argc, argv) | ^~~~~~ parseabc.c: In function 'skipspace': parseabc.c:324:1: warning: old-style function definition [-Wold-style-definition] 324 | skipspace (p) | ^~~~~~~~~ parseabc.c: In function 'skiptospace': parseabc.c:333:1: warning: old-style function definition [-Wold-style-definition] 333 | skiptospace (p) | ^~~~~~~~~~~ parseabc.c: In function 'readnumf': parseabc.c:341:1: warning: old-style function definition [-Wold-style-definition] 341 | readnumf (num) | ^~~~~~~~ parseabc.c: In function 'readsnumf': parseabc.c:367:1: warning: old-style function definition [-Wold-style-definition] 367 | readsnumf (s) | ^~~~~~~~~ parseabc.c: In function 'readnump': parseabc.c:387:1: warning: old-style function definition [-Wold-style-definition] 387 | readnump (p) | ^~~~~~~~ parseabc.c: In function 'readsnump': parseabc.c:408:1: warning: old-style function definition [-Wold-style-definition] 408 | readsnump (p) | ^~~~~~~~~ parseabc.c: In function 'read_microtone_value': parseabc.c:615:1: warning: old-style function definition [-Wold-style-definition] 615 | read_microtone_value (a, b, p) | ^~~~~~~~~~~~~~~~~~~~ parseabc.c: In function 'ismicrotone': parseabc.c:661:1: warning: old-style function definition [-Wold-style-definition] 661 | ismicrotone (p, dir) | ^~~~~~~~~~~ parseabc.c: In function 'readword': parseabc.c:715:1: warning: old-style function definition [-Wold-style-definition] 715 | readword (word, s) | ^~~~~~~~ parseabc.c: In function 'readword_with_': parseabc.c:746:1: warning: old-style function definition [-Wold-style-definition] 746 | readword_with_ (word, s) | ^~~~~~~~~~~~~~ parseabc.c: In function 'lcase': parseabc.c:773:1: warning: old-style function definition [-Wold-style-definition] 773 | lcase (s) | ^~~~~ parseabc.c: In function 'parseclef': parseabc.c:984:1: warning: old-style function definition [-Wold-style-definition] 984 | parseclef (s, word, gotclef, clefstr, newclef, gotoctave, octave) | ^~~~~~~~~ parseabc.c: In function 'parsetranspose': parseabc.c:1027:1: warning: old-style function definition [-Wold-style-definition] 1027 | parsetranspose (s, word, gottranspose, transpose) | ^~~~~~~~~~~~~~ parseabc.c: In function 'parseoctave': parseabc.c:1152:1: warning: old-style function definition [-Wold-style-definition] 1152 | parseoctave (s, word, gotoctave, octave) | ^~~~~~~~~~~ parseabc.c: In function 'parsename': parseabc.c:1230:1: warning: old-style function definition [-Wold-style-definition] 1230 | parsename (s, gotname, namestring, maxsize) | ^~~~~~~~~ parseabc.c: In function 'parsemiddle': parseabc.c:1268:1: warning: old-style function definition [-Wold-style-definition] 1268 | parsemiddle (s, word, gotmiddle, middlestring, maxsize) | ^~~~~~~~~~~ parseabc.c: In function 'parseother': parseabc.c:1306:1: warning: old-style function definition [-Wold-style-definition] 1306 | parseother (s, word, gotother, other, maxsize) /* [SS] 2011-04-18 */ | ^~~~~~~~~~ parseabc.c: In function 'parsekey': parseabc.c:1398:1: warning: old-style function definition [-Wold-style-definition] 1398 | parsekey (str) | ^~~~~~~~ parseabc.c: In function 'parsevoice': parseabc.c:1688:1: warning: old-style function definition [-Wold-style-definition] 1688 | parsevoice (s) | ^~~~~~~~~~ parseabc.c: In function 'parsenote': parseabc.c:1778:1: warning: old-style function definition [-Wold-style-definition] 1778 | parsenote (s) | ^~~~~~~~~ parseabc.c: In function 'getrep': parseabc.c:1973:1: warning: old-style function definition [-Wold-style-definition] 1973 | getrep (p, out) | ^~~~~~ parseabc.c: In function 'checkend': parseabc.c:2029:1: warning: old-style function definition [-Wold-style-definition] 2029 | checkend (s) | ^~~~~~~~ parseabc.c: In function 'readstr': parseabc.c:2051:1: warning: old-style function definition [-Wold-style-definition] 2051 | readstr (out, in, limit) | ^~~~~~~ parseabc.c: In function 'readaln': parseabc.c:2071:5: warning: old-style function definition [-Wold-style-definition] 2071 | int readaln (out, in, limit) | ^~~~~~~ parseabc.c: In function 'parse_precomment': parseabc.c:2091:1: warning: old-style function definition [-Wold-style-definition] 2091 | parse_precomment (s) | ^~~~~~~~~~~~~~~~ parseabc.c: In function 'parse_abc_include': parseabc.c:2113:8: warning: old-style function definition [-Wold-style-definition] 2113 | FILE * parse_abc_include (s) | ^~~~~~~~~~~~~~~~~ parseabc.c: In function 'parse_tempo': parseabc.c:2134:1: warning: old-style function definition [-Wold-style-definition] 2134 | parse_tempo (place) | ^~~~~~~~~~~ parseabc.c: In function 'append_fieldcmd': parseabc.c:2208:6: warning: old-style function definition [-Wold-style-definition] 2208 | void append_fieldcmd (key, s) /* [SS] 2014-08-15 */ | ^~~~~~~~~~~~~~~ parseabc.c: In function 'parsefield': parseabc.c:2382:1: warning: old-style function definition [-Wold-style-definition] 2382 | parsefield (key, field) | ^~~~~~~~~~ parseabc.c: In function 'parseinlinefield': parseabc.c:2641:1: warning: old-style function definition [-Wold-style-definition] 2641 | parseinlinefield (p) | ^~~~~~~~~~~~~~~~ parseabc.c: In function 'pitch2midi': parseabc.c:2797:12: warning: old-style function definition [-Wold-style-definition] 2797 | static int pitch2midi(note, accidental, mult, octave ) | ^~~~~~~~~~ parseabc.c: In function 'parsemusic': parseabc.c:2954:1: warning: old-style function definition [-Wold-style-definition] 2954 | parsemusic (field) | ^~~~~~~~~~ parseabc.c: In function 'parseline': parseabc.c:3450:1: warning: old-style function definition [-Wold-style-definition] 3450 | parseline (line) | ^~~~~~~~~ parseabc.c:3472:11: error: too many arguments to function 'event_temperament'; expected 0, have 1 3472 | event_temperament(line); | ^~~~~~~~~~~~~~~~~ ~~~~ In file included from parseabc.c:34: parseabc.h:174:13: note: declared here 174 | extern void event_temperament(); | ^~~~~~~~~~~~~~~~~ parseabc.c: In function 'parsefile': parseabc.c:3583:1: warning: old-style function definition [-Wold-style-definition] 3583 | parsefile (name) | ^~~~~~~~~ parseabc.c:3593:1: error: number of arguments doesn't match prototype 3593 | { | ^ parseabc.h:178:13: error: prototype declaration 178 | extern void parsefile(); | ^~~~~~~~~ parseabc.c: At top level: parseabc.c:3713:1: error: conflicting types for 'parsetune'; have 'int(FILE *)' 3713 | parsetune (FILE * fp) | ^~~~~~~~~ parseabc.h:179:12: note: previous declaration of 'parsetune' with type 'int(void)' 179 | extern int parsetune(); | ^~~~~~~~~ make: *** [: parseabc.o] Error 1 gcc -DANSILIBS -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 -O2 -DHAVE_CONFIG_H -I. -c -o genmidi.o genmidi.c genmidi.c: In function 'reduce': genmidi.c:298:6: warning: old-style function definition [-Wold-style-definition] 298 | void reduce(a, b) | ^~~~~~ genmidi.c: In function 'gtfract': genmidi.c:328:5: warning: old-style function definition [-Wold-style-definition] 328 | int gtfract(anum,adenom, bnum,bdenom) | ^~~~~~~ genmidi.c: In function 'addunits': genmidi.c:342:6: warning: old-style function definition [-Wold-style-definition] 342 | void addunits(a, b) | ^~~~~~~~ genmidi.c: In function 'set_gchords': genmidi.c:392:6: warning: old-style function definition [-Wold-style-definition] 392 | void set_gchords(s) | ^~~~~~~~~~~ genmidi.c: In function 'set_drums': genmidi.c:435:6: warning: old-style function definition [-Wold-style-definition] 435 | void set_drums(s) | ^~~~~~~~~ genmidi.c: In function 'checkbar': genmidi.c:520:13: warning: old-style function definition [-Wold-style-definition] 520 | static void checkbar(pass) | ^~~~~~~~ genmidi.c: In function 'softcheckbar': genmidi.c:568:13: warning: old-style function definition [-Wold-style-definition] 568 | static void softcheckbar(pass) | ^~~~~~~~~~~~ genmidi.c: In function 'save_state': genmidi.c:579:13: warning: old-style function definition [-Wold-style-definition] 579 | static void save_state(vec, a, b, c, d, e, f) | ^~~~~~~~~~ genmidi.c: In function 'restore_state': genmidi.c:592:13: warning: old-style function definition [-Wold-style-definition] 592 | static void restore_state(vec, a, b, c, d, e, f) | ^~~~~~~~~~~~~ genmidi.c: In function 'findpart': genmidi.c:625:12: warning: old-style function definition [-Wold-style-definition] 625 | static int findpart(j) | ^~~~~~~~ genmidi.c: In function 'partbreak': genmidi.c:659:12: warning: old-style function definition [-Wold-style-definition] 659 | static int partbreak(xtrack, voice, place) | ^~~~~~~~~ genmidi.c: In function 'findvoice': genmidi.c:676:12: warning: old-style function definition [-Wold-style-definition] 676 | static int findvoice(initplace, voice, xtrack) | ^~~~~~~~~ genmidi.c: In function 'text_data': genmidi.c:708:13: warning: old-style function definition [-Wold-style-definition] 708 | static void text_data(s) | ^~~~~~~~~ genmidi.c:712:3: error: too many arguments to function 'mf_write_meta_event'; expected 0, have 4 712 | mf_write_meta_event(delta_time, text_event, s, strlen(s)); | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~ In file included from genmidi.c:43: midifile.h:37:5: note: declared here 37 | int mf_write_meta_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c: In function 'karaokestarttrack': genmidi.c:717:13: warning: old-style function definition [-Wold-style-definition] 717 | static void karaokestarttrack (track) | ^~~~~~~~~~~~~~~~~ genmidi.c:743:7: error: too many arguments to function 'mf_write_meta_event'; expected 0, have 4 743 | mf_write_meta_event(0L, sequence_name, "Words", 5); | ^~~~~~~~~~~~~~~~~~~ ~~ midifile.h:37:5: note: declared here 37 | int mf_write_meta_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c:763:12: error: too many arguments to function 'mf_write_meta_event'; expected 0, have 4 763 | mf_write_meta_event(0L, sequence_name, atext[pitch[j]], strlen (atext[pitch[j]])); | ^~~~~~~~~~~~~~~~~~~ ~~ midifile.h:37:5: note: declared here 37 | int mf_write_meta_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c: In function 'findwline': genmidi.c:807:12: warning: old-style function definition [-Wold-style-definition] 807 | static int findwline(startline) | ^~~~~~~~~ genmidi.c: In function 'getword': genmidi.c:905:12: warning: old-style function definition [-Wold-style-definition] 905 | static int getword(place, w) | ^~~~~~~ genmidi.c: In function 'write_syllable': genmidi.c:1120:13: warning: old-style function definition [-Wold-style-definition] 1120 | static void write_syllable(place) | ^~~~~~~~~~~~~~ genmidi.c: In function 'inlist': genmidi.c:1220:12: warning: old-style function definition [-Wold-style-definition] 1220 | static int inlist(place, passno) | ^~~~~~ genmidi.c: In function 'set_meter': genmidi.c:1269:6: warning: old-style function definition [-Wold-style-definition] 1269 | void set_meter(n, m) | ^~~~~~~~~ genmidi.c: In function 'write_meter': genmidi.c:1298:13: warning: old-style function definition [-Wold-style-definition] 1298 | static void write_meter(n, m) | ^~~~~~~~~~~ genmidi.c:1326:3: error: too many arguments to function 'mf_write_meta_event'; expected 0, have 4 1326 | mf_write_meta_event(0L, time_signature, data, 4); /* [SS] 2010-04-15 2010-07-06*/ | ^~~~~~~~~~~~~~~~~~~ ~~ midifile.h:37:5: note: declared here 37 | int mf_write_meta_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c: In function 'write_keysig': genmidi.c:1329:13: warning: old-style function definition [-Wold-style-definition] 1329 | static void write_keysig(sf, mi) | ^~~~~~~~~~~~ genmidi.c:1337:3: error: too many arguments to function 'mf_write_meta_event'; expected 0, have 4 1337 | mf_write_meta_event(0L, key_signature, data, 2); | ^~~~~~~~~~~~~~~~~~~ ~~ midifile.h:37:5: note: declared here 37 | int mf_write_meta_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c: In function 'midi_noteon': genmidi.c:1340:13: warning: old-style function definition [-Wold-style-definition] 1340 | static void midi_noteon(delta_time, pitch, pitchbend, chan, vel) | ^~~~~~~~~~~ genmidi.c:1360:7: error: too many arguments to function 'mf_write_midi_event'; expected 0, have 5 1360 | mf_write_midi_event(delta_time,pitch_wheel,chan,data,2); | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~ midifile.h:38:5: note: declared here 38 | int mf_write_midi_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c:1370:5: error: too many arguments to function 'mf_write_midi_event'; expected 0, have 5 1370 | mf_write_midi_event(delta_time, note_on, chan, data, 2); | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~ midifile.h:38:5: note: declared here 38 | int mf_write_midi_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c: In function 'midi_noteoff': genmidi.c:1374:6: warning: old-style function definition [-Wold-style-definition] 1374 | void midi_noteoff(delta_time, pitch, chan) | ^~~~~~~~~~~~ genmidi.c:1387:5: error: too many arguments to function 'mf_write_midi_event'; expected 0, have 5 1387 | mf_write_midi_event(delta_time, note_off, chan, data, 2); | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~ midifile.h:38:5: note: declared here 38 | int mf_write_midi_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c: In function 'noteon_data': genmidi.c:1391:13: warning: old-style function definition [-Wold-style-definition] 1391 | static void noteon_data(pitch, pitchbend, channel, vel) | ^~~~~~~~~~~ genmidi.c: In function 'apply_velocity_increment_for_one_note': genmidi.c:1616:5: warning: old-style function definition [-Wold-style-definition] 1616 | int apply_velocity_increment_for_one_note (velocity) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ genmidi.c: In function 'noteon': genmidi.c:1636:13: warning: old-style function definition [-Wold-style-definition] 1636 | static void noteon(n) | ^~~~~~ genmidi.c: In function 'write_program': genmidi.c:1657:13: warning: old-style function definition [-Wold-style-definition] 1657 | static void write_program(p, channel) | ^~~~~~~~~~~~~ genmidi.c:1669:5: error: too many arguments to function 'mf_write_midi_event'; expected 0, have 5 1669 | mf_write_midi_event(delta_time, program_chng, channel, data, 1); | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~ midifile.h:38:5: note: declared here 38 | int mf_write_midi_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c: In function 'write_event_with_delay': genmidi.c:1676:6: warning: old-style function definition [-Wold-style-definition] 1676 | void write_event_with_delay(delta,event_type, channel, data, n) | ^~~~~~~~~~~~~~~~~~~~~~ genmidi.c:1686:5: error: too many arguments to function 'mf_write_midi_event'; expected 0, have 5 1686 | mf_write_midi_event(delta, event_type, channel, data, n); | ^~~~~~~~~~~~~~~~~~~ ~~~~~ midifile.h:38:5: note: declared here 38 | int mf_write_midi_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c: In function 'write_event': genmidi.c:1690:6: warning: old-style function definition [-Wold-style-definition] 1690 | void write_event(event_type, channel, data, n) | ^~~~~~~~~~~ genmidi.c:1700:5: error: too many arguments to function 'mf_write_midi_event'; expected 0, have 5 1700 | mf_write_midi_event(0, event_type, channel, data, n); | ^~~~~~~~~~~~~~~~~~~ ~ midifile.h:38:5: note: declared here 38 | int mf_write_midi_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c: In function 'select_channel': genmidi.c:1704:14: warning: old-style function definition [-Wold-style-definition] 1704 | static char *select_channel(chan, s) | ^~~~~~~~~~~~~~ genmidi.c: In function 'makechordchannels': genmidi.c:1729:12: warning: old-style function definition [-Wold-style-definition] 1729 | static int makechordchannels (n) | ^~~~~~~~~~~~~~~~~ genmidi.c: In function 'expand_array': genmidi.c:1892:13: warning: old-style function definition [-Wold-style-definition] 1892 | static void expand_array (shortarray, size, longarray, factor) | ^~~~~~~~~~~~ genmidi.c: In function 'dodeferred': genmidi.c:1925:13: warning: old-style function definition [-Wold-style-definition] 1925 | static void dodeferred(s,noteson) | ^~~~~~~~~~ genmidi.c: In function 'delay': genmidi.c:2370:13: warning: old-style function definition [-Wold-style-definition] 2370 | static void delay(a, b, c) | ^~~~~ genmidi.c: In function 'save_note': genmidi.c:2385:13: warning: old-style function definition [-Wold-style-definition] 2385 | static void save_note(num, denom, pitch, pitchbend, chan, vel) | ^~~~~~~~~ genmidi.c: In function 'dogchords': genmidi.c:2400:6: warning: old-style function definition [-Wold-style-definition] 2400 | void dogchords(i) | ^~~~~~~~~ genmidi.c: In function 'dodrums': genmidi.c:2537:6: warning: old-style function definition [-Wold-style-definition] 2537 | void dodrums(i) | ^~~~~~~ genmidi.c: In function 'progress_sequence': genmidi.c:2589:6: warning: old-style function definition [-Wold-style-definition] 2589 | void progress_sequence(i) | ^~~~~~~~~~~~~~~~~ genmidi.c: In function 'writetrack': genmidi.c:2856:6: warning: old-style function definition [-Wold-style-definition] 2856 | long writetrack(xtrack) | ^~~~~~~~~~ genmidi.c:2925:5: error: too many arguments to function 'mf_write_meta_event'; expected 0, have 4 2925 | mf_write_meta_event(0L, text_event, annotation, strlen(annotation)); | ^~~~~~~~~~~~~~~~~~~ ~~ midifile.h:37:5: note: declared here 37 | int mf_write_meta_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c:2940:5: error: too many arguments to function 'mf_write_meta_event'; expected 0, have 4 2940 | mf_write_meta_event(0L, text_event, annotation, strlen(annotation)); | ^~~~~~~~~~~~~~~~~~~ ~~ midifile.h:37:5: note: declared here 37 | int mf_write_meta_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c:2949:5: error: too many arguments to function 'mf_write_meta_event'; expected 0, have 4 2949 | mf_write_meta_event(0L, text_event, annotation, strlen(annotation)); | ^~~~~~~~~~~~~~~~~~~ ~~ midifile.h:37:5: note: declared here 37 | int mf_write_meta_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c:2961:5: error: too many arguments to function 'mf_write_meta_event'; expected 0, have 4 2961 | mf_write_meta_event(0L, text_event, annotation, strlen(annotation)); | ^~~~~~~~~~~~~~~~~~~ ~~ midifile.h:37:5: note: declared here 37 | int mf_write_meta_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c:2978:5: error: too many arguments to function 'mf_write_meta_event'; expected 0, have 4 2978 | mf_write_meta_event(0L, text_event, annotation, strlen(annotation)); | ^~~~~~~~~~~~~~~~~~~ ~~ midifile.h:37:5: note: declared here 37 | int mf_write_meta_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c:2990:5: error: too many arguments to function 'mf_write_meta_event'; expected 0, have 4 2990 | mf_write_meta_event(0L, text_event, annotation, strlen(annotation)); | ^~~~~~~~~~~~~~~~~~~ ~~ midifile.h:37:5: note: declared here 37 | int mf_write_meta_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c:2995:5: error: too many arguments to function 'mf_write_tempo'; expected 0, have 1 2995 | mf_write_tempo(tempo); | ^~~~~~~~~~~~~~ ~~~~~ midifile.h:39:6: note: declared here 39 | void mf_write_tempo(); | ^~~~~~~~~~~~~~ genmidi.c:3191:9: error: too many arguments to function 'mf_write_meta_event'; expected 0, have 4 3191 | mf_write_meta_event(0L, marker, msg, 1); | ^~~~~~~~~~~~~~~~~~~ ~~ midifile.h:37:5: note: declared here 37 | int mf_write_meta_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c:3206:9: error: too many arguments to function 'mf_write_meta_event'; expected 0, have 4 3206 | mf_write_meta_event(0L, text_event, atext[pitch[j]], | ^~~~~~~~~~~~~~~~~~~ ~~ midifile.h:37:5: note: declared here 37 | int mf_write_meta_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c:3215:15: error: too many arguments to function 'mf_write_meta_event'; expected 0, have 4 3215 | mf_write_meta_event(0L, sequence_name, atext[pitch[j]], | ^~~~~~~~~~~~~~~~~~~ ~~ midifile.h:37:5: note: declared here 37 | int mf_write_meta_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c:3439:15: error: too many arguments to function 'mf_write_meta_event'; expected 0, have 4 3439 | mf_write_meta_event(delta_time_track0, set_tempo, data, 3); | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~ midifile.h:37:5: note: declared here 37 | int mf_write_meta_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c:3443:15: error: too many arguments to function 'mf_write_meta_event'; expected 0, have 4 3443 | mf_write_meta_event(delta_time, set_tempo, data, 3); | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~ midifile.h:37:5: note: declared here 37 | int mf_write_meta_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c:3486:11: error: too many arguments to function 'mf_write_meta_event'; expected 0, have 4 3486 | mf_write_meta_event(delta_time, copyright_notice, atext[pitch[j]], strlen (atext[pitch[j]])); | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~ midifile.h:37:5: note: declared here 37 | int mf_write_meta_event(); | ^~~~~~~~~~~~~~~~~~~ make: *** [: genmidi.o] Error 1 gcc -DANSILIBS -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 -O2 -DHAVE_CONFIG_H -I. -c -o midifile.o midifile.c midifile.c: In function 'mfread': midifile.c:155:5: error: too many arguments to function 'mferror'; expected 0, have 1 155 | mferror("mfread() called without setting Mf_getc"); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from midifile.c:60: midifile.h:40:6: note: declared here 40 | void mferror(); | ^~~~~~~ midifile.c: In function 'mfreadtrk': midifile.c:166:6: warning: old-style function definition [-Wold-style-definition] 166 | void mfreadtrk(itrack) /* The only non-static function in this file. */ | ^~~~~~~~~ midifile.c:171:5: error: too many arguments to function 'mferror'; expected 0, have 1 171 | mferror("mfprocess() called without setting Mf_getc"); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ midifile.h:40:6: note: declared here 40 | void mferror(); | ^~~~~~~ midifile.c: In function 'readmt': midifile.c:193:1: warning: old-style function definition [-Wold-style-definition] 193 | readmt(s) /* read through the "MThd" or "MTrk" header string */ | ^~~~~~ midifile.c:206:7: error: too many arguments to function 'mferror'; expected 0, have 1 206 | mferror(buff); | ^~~~~~~ ~~~~ midifile.h:40:6: note: declared here 40 | void mferror(); | ^~~~~~~ midifile.c: In function 'egetc': midifile.c:218:5: error: too many arguments to function 'mferror'; expected 0, have 1 218 | mferror("premature EOF"); | ^~~~~~~ ~~~~~~~~~~~~~~~ midifile.h:40:6: note: declared here 40 | void mferror(); | ^~~~~~~ midifile.c: In function 'readheader': midifile.c:239:6: error: too many arguments to function 'Mf_header'; expected 0, have 3 239 | (*Mf_header)(format,ntrks,division); | ~^~~~~~~~~~~ ~~~~~~ midifile.c: In function 'skiptrack': midifile.c:254:19: error: too many arguments to function 'mferror'; expected 0, have 1 254 | if (byte == EOF) {mferror("premature EOF\n"); return(0);} | ^~~~~~~ ~~~~~~~~~~~~~~~~~ midifile.h:40:6: note: declared here 40 | void mferror(); | ^~~~~~~ midifile.c: In function 'readtrack': midifile.c:294:30: error: too many arguments to function 'mferror'; expected 0, have 1 294 | mferror("bad time increment"); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~ midifile.h:40:6: note: declared here 40 | void mferror(); | ^~~~~~~ midifile.c:301:7: error: too many arguments to function 'mferror'; expected 0, have 1 301 | mferror("didn't find expected continuation of a sysex"); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ midifile.h:40:6: note: declared here 40 | void mferror(); | ^~~~~~~ midifile.c:308:9: error: too many arguments to function 'mferror'; expected 0, have 1 308 | mferror("unexpected running status"); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ midifile.h:40:6: note: declared here 40 | void mferror(); | ^~~~~~~ midifile.c:327:9: error: too many arguments to function 'chanmessage'; expected 0, have 3 327 | chanmessage( laststatus, c1, (needed>1) ? egetc() : 0 ); | ^~~~~~~~~~~ ~~~~~~~~~~ midifile.c:131:13: note: declared here 131 | static void chanmessage(); | ^~~~~~~~~~~ midifile.c:331:9: error: too many arguments to function 'chanmessage'; expected 0, have 3 331 | chanmessage( status, c1, (needed>1) ? egetc() : 0 ); | ^~~~~~~~~~~ ~~~~~~ midifile.c:131:13: note: declared here 131 | static void chanmessage(); | ^~~~~~~~~~~ midifile.c:346:9: error: too many arguments to function 'msgadd'; expected 0, have 1 346 | msgadd(egetc()); | ^~~~~~ ~~~~~~~ midifile.c:133:13: note: declared here 133 | static void msgadd(); | ^~~~~~ midifile.c:348:7: error: too many arguments to function 'metaevent'; expected 0, have 1 348 | metaevent(type); | ^~~~~~~~~ ~~~~ midifile.c:129:13: note: declared here 129 | static void metaevent(); | ^~~~~~~~~ midifile.c:356:7: error: too many arguments to function 'msgadd'; expected 0, have 1 356 | msgadd(0xf0); | ^~~~~~ ~~~~ midifile.c:133:13: note: declared here 133 | static void msgadd(); | ^~~~~~ midifile.c:359:9: error: too many arguments to function 'msgadd'; expected 0, have 1 359 | msgadd(c=egetc()); | ^~~~~~ ~~~~~~~~~ midifile.c:133:13: note: declared here 133 | static void msgadd(); | ^~~~~~ midifile.c:376:9: error: too many arguments to function 'msgadd'; expected 0, have 1 376 | msgadd(c=egetc()); | ^~~~~~ ~~~~~~~~~ midifile.c:133:13: note: declared here 133 | static void msgadd(); | ^~~~~~ midifile.c:380:12: error: too many arguments to function 'Mf_arbitrary'; expected 0, have 2 380 | (*Mf_arbitrary)(msgleng(),msg()); | ~^~~~~~~~~~~~~~ ~~~~~~~~~ midifile.c:388:7: error: too many arguments to function 'badbyte'; expected 0, have 1 388 | badbyte(c); | ^~~~~~~ ~ midifile.c:128:13: note: declared here 128 | static void badbyte(); | ^~~~~~~ midifile.c: In function 'badbyte': midifile.c:398:1: warning: old-style function definition [-Wold-style-definition] 398 | badbyte(c) | ^~~~~~~ midifile.c:404:3: error: too many arguments to function 'mferror'; expected 0, have 1 404 | mferror(buff); | ^~~~~~~ ~~~~ midifile.h:40:6: note: declared here 40 | void mferror(); | ^~~~~~~ midifile.c: In function 'metaevent': midifile.c:408:1: warning: old-style function definition [-Wold-style-definition] 408 | metaevent(type) | ^~~~~~~~~ midifile.c:422:20: error: too many arguments to function 'to16bit'; expected 0, have 2 422 | (*Mf_seqnum)(to16bit(m[0],m[1])); | ^~~~~~~ ~~~~ midifile.c:121:12: note: declared here 121 | static int to16bit(); | ^~~~~~~ midifile.c:422:8: error: too many arguments to function 'Mf_seqnum'; expected 0, have 1 422 | (*Mf_seqnum)(to16bit(m[0],m[1])); | ~^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ midifile.c:442:8: error: too many arguments to function 'Mf_text'; expected 0, have 3 442 | (*Mf_text)(type,leng,m); | ~^~~~~~~~~ ~~~~ midifile.c:450:19: error: too many arguments to function 'to32bit'; expected 0, have 4 450 | (*Mf_tempo)(to32bit(0,m[0],m[1],m[2])); | ^~~~~~~ ~ midifile.c:119:13: note: declared here 119 | static long to32bit(); | ^~~~~~~ midifile.c:450:8: error: too many arguments to function 'Mf_tempo'; expected 0, have 1 450 | (*Mf_tempo)(to32bit(0,m[0],m[1],m[2])); | ~^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~ midifile.c:454:8: error: too many arguments to function 'Mf_smpte'; expected 0, have 5 454 | (*Mf_smpte)(m[0],m[1],m[2],m[3],m[4]); | ~^~~~~~~~~~ ~~~~ midifile.c:458:8: error: too many arguments to function 'Mf_timesig'; expected 0, have 4 458 | (*Mf_timesig)(m[0],m[1],m[2],m[3]); | ~^~~~~~~~~~~~ ~~~~ midifile.c:462:8: error: too many arguments to function 'Mf_keysig'; expected 0, have 2 462 | (*Mf_keysig)(m[0],m[1]); | ~^~~~~~~~~~~ ~~~~ midifile.c:466:8: error: too many arguments to function 'Mf_seqspecific'; expected 0, have 2 466 | (*Mf_seqspecific)(leng,m); | ~^~~~~~~~~~~~~~~~ ~~~~ midifile.c:470:8: error: too many arguments to function 'Mf_metamisc'; expected 0, have 3 470 | (*Mf_metamisc)(type,leng,m); | ~^~~~~~~~~~~~~ ~~~~ midifile.c: In function 'sysex': midifile.c:478:6: error: too many arguments to function 'Mf_sysex'; expected 0, have 2 478 | (*Mf_sysex)(msgleng(),msg()); | ~^~~~~~~~~~ ~~~~~~~~~ midifile.c: In function 'chanmessage': midifile.c:482:1: warning: old-style function definition [-Wold-style-definition] 482 | chanmessage(status,c1,c2) | ^~~~~~~~~~~ midifile.c:491:8: error: too many arguments to function 'Mf_noteoff'; expected 0, have 3 491 | (*Mf_noteoff)(chan,c1,c2); | ~^~~~~~~~~~~~ ~~~~ midifile.c:495:8: error: too many arguments to function 'Mf_noteon'; expected 0, have 3 495 | (*Mf_noteon)(chan,c1,c2); | ~^~~~~~~~~~~ ~~~~ midifile.c:499:8: error: too many arguments to function 'Mf_pressure'; expected 0, have 3 499 | (*Mf_pressure)(chan,c1,c2); | ~^~~~~~~~~~~~~ ~~~~ midifile.c:503:8: error: too many arguments to function 'Mf_parameter'; expected 0, have 3 503 | (*Mf_parameter)(chan,c1,c2); | ~^~~~~~~~~~~~~~ ~~~~ midifile.c:507:8: error: too many arguments to function 'Mf_pitchbend'; expected 0, have 3 507 | (*Mf_pitchbend)(chan,c1,c2); | ~^~~~~~~~~~~~~~ ~~~~ midifile.c:511:8: error: too many arguments to function 'Mf_program'; expected 0, have 2 511 | (*Mf_program)(chan,c1); | ~^~~~~~~~~~~~ ~~~~ midifile.c:515:8: error: too many arguments to function 'Mf_chanpressure'; expected 0, have 2 515 | (*Mf_chanpressure)(chan,c1); | ~^~~~~~~~~~~~~~~~~ ~~~~ midifile.c: In function 'to32bit': midifile.c:542:1: warning: old-style function definition [-Wold-style-definition] 542 | to32bit(c1,c2,c3,c4) | ^~~~~~~ midifile.c: In function 'to16bit': midifile.c:555:1: warning: old-style function definition [-Wold-style-definition] 555 | to16bit(c1,c2) | ^~~~~~~ midifile.c: In function 'read32bit': midifile.c:570:10: error: too many arguments to function 'to32bit'; expected 0, have 4 570 | return to32bit(c1,c2,c3,c4); | ^~~~~~~ ~~ midifile.c:542:1: note: declared here 542 | to32bit(c1,c2,c3,c4) | ^~~~~~~ midifile.c: In function 'read16bit': midifile.c:579:10: error: too many arguments to function 'to16bit'; expected 0, have 2 579 | return to16bit(c1,c2); | ^~~~~~~ ~~ midifile.c:555:1: note: declared here 555 | to16bit(c1,c2) | ^~~~~~~ midifile.c: In function 'mferror': midifile.c:583:6: warning: old-style function definition [-Wold-style-definition] 583 | void mferror(s) | ^~~~~~~ midifile.c:585:1: error: number of arguments doesn't match prototype 585 | { | ^ midifile.h:40:6: error: prototype declaration 40 | void mferror(); | ^~~~~~~ midifile.c:587:6: error: too many arguments to function 'Mf_error'; expected 0, have 1 587 | (*Mf_error)(s); | ~^~~~~~~~~~ ~ midifile.c: In function 'msgadd': midifile.c:623:1: warning: old-style function definition [-Wold-style-definition] 623 | msgadd(c) | ^~~~~~ midifile.c: In function 'biggermsg': midifile.c:646:5: error: too many arguments to function 'mferror'; expected 0, have 1 646 | mferror("malloc error!"); | ^~~~~~~ ~~~~~~~~~~~~~~~ midifile.c:583:6: note: declared here 583 | void mferror(s) | ^~~~~~~ midifile.c: In function 'mfwrite': midifile.c:690:1: warning: old-style function definition [-Wold-style-definition] 690 | mfwrite(format,ntracks,division,fp) | ^~~~~~~ midifile.c:693:1: error: number of arguments doesn't match prototype 693 | { | ^ midifile.h:35:6: error: prototype declaration 35 | void mfwrite(); | ^~~~~~~ midifile.c:697:7: error: too many arguments to function 'mferror'; expected 0, have 1 697 | mferror("mf_write() called without setting Mf_putc"); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ midifile.c:583:6: note: declared here 583 | void mferror(s) | ^~~~~~~ midifile.c:700:7: error: too many arguments to function 'mferror'; expected 0, have 1 700 | mferror("mf_write() called without setting Mf_writetrack"); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ midifile.c:583:6: note: declared here 583 | void mferror(s) | ^~~~~~~ midifile.c:703:5: error: too many arguments to function 'mf_write_header_chunk'; expected 0, have 3 703 | mf_write_header_chunk(format,ntracks,division); | ^~~~~~~~~~~~~~~~~~~~~ ~~~~~~ midifile.c:136:13: note: declared here 136 | static void mf_write_header_chunk(); | ^~~~~~~~~~~~~~~~~~~~~ midifile.c:713:9: error: too many arguments to function 'mf_write_track_chunk'; expected 0, have 2 713 | mf_write_track_chunk(i,fp); | ^~~~~~~~~~~~~~~~~~~~ ~ midifile.c:135:13: note: declared here 135 | static void mf_write_track_chunk(); | ^~~~~~~~~~~~~~~~~~~~ midifile.c: In function 'nullputc': midifile.c:720:5: warning: old-style function definition [-Wold-style-definition] 720 | int nullputc(c) | ^~~~~~~~ midifile.c: In function 'mf_write_track_chunk': midifile.c:732:1: warning: old-style function definition [-Wold-style-definition] 732 | mf_write_track_chunk(which_track,fp) | ^~~~~~~~~~~~~~~~~~~~ midifile.c:798:3: error: too many arguments to function 'write32bit'; expected 0, have 1 798 | write32bit(trkhdr); | ^~~~~~~~~~ ~~~~~~ midifile.c:138:13: note: declared here 138 | static void write32bit(); | ^~~~~~~~~~ midifile.c:799:3: error: too many arguments to function 'write32bit'; expected 0, have 1 799 | write32bit(trklength); | ^~~~~~~~~~ ~~~~~~~~~ midifile.c:138:13: note: declared here 138 | static void write32bit(); | ^~~~~~~~~~ midifile.c:805:19: error: too many arguments to function 'Mf_writetrack'; expected 0, have 1 805 | endspace = (*Mf_writetrack)(which_track); | ~^~~~~~~~~~~~~~~ ~~~~~~~~~~~ midifile.c:809:3: error: too many arguments to function 'WriteVarLen'; expected 0, have 1 809 | WriteVarLen(endspace); | ^~~~~~~~~~~ ~~~~~~~~ midifile.c:137:13: note: declared here 137 | static void WriteVarLen(); | ^~~~~~~~~~~ midifile.c:811:3: error: too many arguments to function 'eputc'; expected 0, have 1 811 | eputc(meta_event); | ^~~~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:812:3: error: too many arguments to function 'eputc'; expected 0, have 1 812 | eputc(end_of_track); | ^~~~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:814:4: error: too many arguments to function 'eputc'; expected 0, have 1 814 | eputc(0); | ^~~~~ ~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:831:7: error: too many arguments to function 'mferror'; expected 0, have 1 831 | mferror("error seeking during final stage of write"); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ midifile.c:583:6: note: declared here 583 | void mferror(s) | ^~~~~~~ midifile.c:836:3: error: too many arguments to function 'write32bit'; expected 0, have 1 836 | write32bit(trkhdr); | ^~~~~~~~~~ ~~~~~~ midifile.c:138:13: note: declared here 138 | static void write32bit(); | ^~~~~~~~~~ midifile.c:837:3: error: too many arguments to function 'write32bit'; expected 0, have 1 837 | write32bit(trklength); | ^~~~~~~~~~ ~~~~~~~~~ midifile.c:138:13: note: declared here 138 | static void write32bit(); | ^~~~~~~~~~ midifile.c: In function 'mf_write_header_chunk': midifile.c:845:1: warning: old-style function definition [-Wold-style-definition] 845 | mf_write_header_chunk(format,ntracks,division) | ^~~~~~~~~~~~~~~~~~~~~ midifile.c:855:5: error: too many arguments to function 'write32bit'; expected 0, have 1 855 | write32bit(ident); | ^~~~~~~~~~ ~~~~~ midifile.c:138:13: note: declared here 138 | static void write32bit(); | ^~~~~~~~~~ midifile.c:856:5: error: too many arguments to function 'write32bit'; expected 0, have 1 856 | write32bit(length); | ^~~~~~~~~~ ~~~~~~ midifile.c:138:13: note: declared here 138 | static void write32bit(); | ^~~~~~~~~~ midifile.c:857:5: error: too many arguments to function 'write16bit'; expected 0, have 1 857 | write16bit(format); | ^~~~~~~~~~ ~~~~~~ midifile.c:139:13: note: declared here 139 | static void write16bit(); | ^~~~~~~~~~ midifile.c:858:5: error: too many arguments to function 'write16bit'; expected 0, have 1 858 | write16bit(ntracks); | ^~~~~~~~~~ ~~~~~~~ midifile.c:139:13: note: declared here 139 | static void write16bit(); | ^~~~~~~~~~ midifile.c:859:5: error: too many arguments to function 'write16bit'; expected 0, have 1 859 | write16bit(division); | ^~~~~~~~~~ ~~~~~~~~ midifile.c:139:13: note: declared here 139 | static void write16bit(); | ^~~~~~~~~~ midifile.c: In function 'mf_write_midi_event': midifile.c:882:1: warning: old-style function definition [-Wold-style-definition] 882 | mf_write_midi_event(delta_time, type, chan, data, size) | ^~~~~~~~~~~~~~~~~~~ midifile.c:887:1: error: number of arguments doesn't match prototype 887 | { | ^ midifile.h:38:5: error: prototype declaration 38 | int mf_write_midi_event(); | ^~~~~~~~~~~~~~~~~~~ midifile.c:891:5: error: too many arguments to function 'WriteVarLen'; expected 0, have 1 891 | WriteVarLen(delta_time); | ^~~~~~~~~~~ ~~~~~~~~~~ midifile.c:137:13: note: declared here 137 | static void WriteVarLen(); | ^~~~~~~~~~~ midifile.c:898:7: error: too many arguments to function 'mferror'; expected 0, have 1 898 | mferror("error: MIDI channel greater than 16"); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ midifile.c:583:6: note: declared here 583 | void mferror(s) | ^~~~~~~ midifile.c:901:5: error: too many arguments to function 'eputc'; expected 0, have 1 901 | eputc(c); | ^~~~~ ~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:905:3: error: too many arguments to function 'eputc'; expected 0, have 1 905 | eputc(data[i]); | ^~~~~ ~~~~~~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c: In function 'mf_write_meta_event': midifile.c:925:1: warning: old-style function definition [-Wold-style-definition] 925 | mf_write_meta_event(delta_time, type, data, size) | ^~~~~~~~~~~~~~~~~~~ midifile.c:930:1: error: number of arguments doesn't match prototype 930 | { | ^ midifile.h:37:5: error: prototype declaration 37 | int mf_write_meta_event(); | ^~~~~~~~~~~~~~~~~~~ midifile.c:933:5: error: too many arguments to function 'WriteVarLen'; expected 0, have 1 933 | WriteVarLen(delta_time); | ^~~~~~~~~~~ ~~~~~~~~~~ midifile.c:137:13: note: declared here 137 | static void WriteVarLen(); | ^~~~~~~~~~~ midifile.c:936:5: error: too many arguments to function 'eputc'; expected 0, have 1 936 | eputc(meta_event); | ^~~~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:939:5: error: too many arguments to function 'eputc'; expected 0, have 1 939 | eputc(type); | ^~~~~ ~~~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:942:5: error: too many arguments to function 'WriteVarLen'; expected 0, have 1 942 | WriteVarLen((long)size); | ^~~~~~~~~~~ ~~~~~~~~~~ midifile.c:137:13: note: declared here 137 | static void WriteVarLen(); | ^~~~~~~~~~~ midifile.c:946:6: error: too many arguments to function 'eputc'; expected 0, have 1 946 | if(eputc((data[i] & 0xff)) != (data[i] & 0xff)) | ^~~~~ ~~~~~~~~~~~~~~~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c: In function 'mf_write_tempo': midifile.c:953:1: warning: old-style function definition [-Wold-style-definition] 953 | mf_write_tempo(tempo) | ^~~~~~~~~~~~~~ midifile.c:955:1: error: number of arguments doesn't match prototype 955 | { | ^ midifile.h:39:6: error: prototype declaration 39 | void mf_write_tempo(); | ^~~~~~~~~~~~~~ midifile.c:959:5: error: too many arguments to function 'eputc'; expected 0, have 1 959 | eputc(0); | ^~~~~ ~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:960:5: error: too many arguments to function 'eputc'; expected 0, have 1 960 | eputc(meta_event); | ^~~~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:961:5: error: too many arguments to function 'eputc'; expected 0, have 1 961 | eputc(set_tempo); | ^~~~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:963:5: error: too many arguments to function 'eputc'; expected 0, have 1 963 | eputc(3); | ^~~~~ ~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:964:5: error: too many arguments to function 'eputc'; expected 0, have 1 964 | eputc((char)(0xff & (tempo >> 16))); | ^~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:965:5: error: too many arguments to function 'eputc'; expected 0, have 1 965 | eputc((char)(0xff & (tempo >> 8))); | ^~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:966:5: error: too many arguments to function 'eputc'; expected 0, have 1 966 | eputc((char)(0xff & tempo)); | ^~~~~ ~~~~~~~~~~~~~~~~~~~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c: In function 'mf_sec2ticks': midifile.c:978:1: warning: old-style function definition [-Wold-style-definition] 978 | mf_sec2ticks(secs,division,tempo) | ^~~~~~~~~~~~ midifile.c:982:1: error: number of arguments doesn't match prototype 982 | { | ^ midifile.h:34:6: error: prototype declaration 34 | long mf_sec2ticks(); | ^~~~~~~~~~~~ midifile.c: In function 'WriteVarLen': midifile.c:1001:1: warning: old-style function definition [-Wold-style-definition] 1001 | WriteVarLen(value) | ^~~~~~~~~~~ midifile.c:1014:8: error: too many arguments to function 'eputc'; expected 0, have 1 1014 | eputc((char)(buffer & 0xff)); | ^~~~~ ~~~~~~~~~~~~~~~~~~~~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c: In function 'single_note_tuning_change': midifile.c:1029:1: error: too many arguments to function 'eputc'; expected 0, have 1 1029 | eputc(0); /* varinum delta_t (time to next event) */ | ^~~~~ ~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:1030:1: error: too many arguments to function 'eputc'; expected 0, have 1 1030 | eputc(0xf0); /* sysex initiation */ | ^~~~~ ~~~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:1031:1: error: too many arguments to function 'eputc'; expected 0, have 1 1031 | eputc(11); /* 11 bytes included in sysex */ | ^~~~~ ~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:1032:1: error: too many arguments to function 'eputc'; expected 0, have 1 1032 | eputc(127); /* universal sysex command (0x7f) */ | ^~~~~ ~~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:1033:1: error: too many arguments to function 'eputc'; expected 0, have 1 1033 | eputc(0); /* device id */ | ^~~~~ ~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:1034:1: error: too many arguments to function 'eputc'; expected 0, have 1 1034 | eputc(8); /* midi tuning */ | ^~~~~ ~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:1035:1: error: too many arguments to function 'eputc'; expected 0, have 1 1035 | eputc(2); /* note change */ | ^~~~~ ~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:1036:1: error: too many arguments to function 'eputc'; expected 0, have 1 1036 | eputc(0); /* program number 0 - 127 */ | ^~~~~ ~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:1037:1: error: too many arguments to function 'eputc'; expected 0, have 1 1037 | eputc(1); /* only one change */ | ^~~~~ ~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:1039:1: error: too many arguments to function 'eputc'; expected 0, have 1 1039 | eputc(kk); /* MIDI key 0 - 127 */ | ^~~~~ ~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:1049:1: error: too many arguments to function 'eputc'; expected 0, have 1 1049 | eputc(xx); | ^~~~~ ~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:1050:1: error: too many arguments to function 'eputc'; expected 0, have 1 1050 | eputc(yy); | ^~~~~ ~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:1051:1: error: too many arguments to function 'eputc'; expected 0, have 1 1051 | eputc(zz); | ^~~~~ ~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:1052:1: error: too many arguments to function 'eputc'; expected 0, have 1 1052 | eputc(247); /* 0xf7 terminates sysex command */ | ^~~~~ ~~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c: In function 'mf_ticks2sec': midifile.c:1062:1: warning: old-style function definition [-Wold-style-definition] 1062 | mf_ticks2sec(ticks,division,tempo) | ^~~~~~~~~~~~ midifile.c:1066:1: error: number of arguments doesn't match prototype 1066 | { | ^ midifile.h:33:7: error: prototype declaration 33 | float mf_ticks2sec(); | ^~~~~~~~~~~~ midifile.c: In function 'write32bit': midifile.c:1093:1: warning: old-style function definition [-Wold-style-definition] 1093 | write32bit(data) | ^~~~~~~~~~ midifile.c:1096:5: error: too many arguments to function 'eputc'; expected 0, have 1 1096 | eputc((char)((data >> 24) & 0xff)); | ^~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:1097:5: error: too many arguments to function 'eputc'; expected 0, have 1 1097 | eputc((char)((data >> 16) & 0xff)); | ^~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:1098:5: error: too many arguments to function 'eputc'; expected 0, have 1 1098 | eputc((char)((data >> 8 ) & 0xff)); | ^~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:1099:5: error: too many arguments to function 'eputc'; expected 0, have 1 1099 | eputc((char)(data & 0xff)); | ^~~~~ ~~~~~~~~~~~~~~~~~~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c: In function 'write16bit': midifile.c:1103:1: warning: old-style function definition [-Wold-style-definition] 1103 | write16bit(data) | ^~~~~~~~~~ midifile.c:1106:5: error: too many arguments to function 'eputc'; expected 0, have 1 1106 | eputc((char)((data & 0xff00) >> 8)); | ^~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:1107:5: error: too many arguments to function 'eputc'; expected 0, have 1 1107 | eputc((char)(data & 0xff)); | ^~~~~ ~~~~~~~~~~~~~~~~~~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c: In function 'eputc': midifile.c:1111:12: warning: old-style function definition [-Wold-style-definition] 1111 | static int eputc(c) | ^~~~~ midifile.c:1118:5: error: too many arguments to function 'mferror'; expected 0, have 1 1118 | mferror("Mf_putc undefined"); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~ midifile.c:583:6: note: declared here 583 | void mferror(s) | ^~~~~~~ midifile.c:1122:17: error: too many arguments to function 'Mf_putc'; expected 0, have 1 1122 | return_val = (*Mf_putc)(c); | ~^~~~~~~~~ ~ midifile.c:1125:5: error: too many arguments to function 'mferror'; expected 0, have 1 1125 | mferror("error writing"); | ^~~~~~~ ~~~~~~~~~~~~~~~ midifile.c:583:6: note: declared here 583 | void mferror(s) | ^~~~~~~ make: *** [: midifile.o] Error 1 gcc -DANSILIBS -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 -O2 -DHAVE_CONFIG_H -I. -c -o parser2.o parser2.c parser2.c: In function 'splitstring': parser2.c:30:13: warning: old-style function definition [-Wold-style-definition] 30 | static void splitstring(s, sep, handler) | ^~~~~~~~~~~ parser2.c:52:6: error: too many arguments to function 'handler'; expected 0, have 1 52 | (*handler)(out); | ~^~~~~~~~~ ~~~ parser2.c: In function 'event_gchord': parser2.c:56:6: warning: old-style function definition [-Wold-style-definition] 56 | void event_gchord(s) | ^~~~~~~~~~~~ parser2.c: In function 'event_instruction': parser2.c:63:6: warning: old-style function definition [-Wold-style-definition] 63 | void event_instruction(s) | ^~~~~~~~~~~~~~~~~ parser2.c: In function 'event_slur': parser2.c:70:6: warning: old-style function definition [-Wold-style-definition] 70 | void event_slur(t) | ^~~~~~~~~~ make: *** [: parser2.o] Error 1 gcc -DANSILIBS -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 -O2 -DHAVE_CONFIG_H -I. -c -o store.o store.c store.c: In function 'newvoice': store.c:530:29: warning: old-style function definition [-Wold-style-definition] 530 | static struct voicecontext* newvoice(n) | ^~~~~~~~ store.c: In function 'getvoicecontext': store.c:589:29: warning: old-style function definition [-Wold-style-definition] 589 | static struct voicecontext* getvoicecontext(n) | ^~~~~~~~~~~~~~~ store.c: In function 'getchordnumber': store.c:750:12: warning: old-style function definition [-Wold-style-definition] 750 | static int getchordnumber(s) | ^~~~~~~~~~~~~~ store.c: In function 'addchordname': store.c:769:13: warning: old-style function definition [-Wold-style-definition] 769 | static void addchordname(s, len, notes) | ^~~~~~~~~~~~ store.c: In function 'event_init': store.c:883:6: warning: old-style function definition [-Wold-style-definition] 883 | void event_init(argc, argv, filename) | ^~~~~~~~~~ store.c:892:10: error: conflicting types for 'log10'; have 'double(void)' 892 | double log10(); | ^~~~~ In file included from /usr/include/features.h:524, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:28, from midifile.h:2, from store.c:209: /usr/include/bits/mathcalls.h:125:1: note: previous declaration of 'log10' with type 'double(double)' 125 | __MATHCALL_VEC (log10,, (_Mdouble_ __x)); | ^~~~~~~~~~~~~~ store.c:996:49: error: too many arguments to function 'log10'; expected 0, have 1 996 | semitone_shift = (float) (12.0 * log10(afreq/440.0f)/log10(2.0f)); /* [SS] 2015-10-08 extra parentheses */ | ^~~~~ ~~~~~~~~~~~~ store.c:892:10: note: declared here 892 | double log10(); | ^~~~~ store.c:996:69: error: too many arguments to function 'log10'; expected 0, have 1 996 | semitone_shift = (float) (12.0 * log10(afreq/440.0f)/log10(2.0f)); /* [SS] 2015-10-08 extra parentheses */ | ^~~~~ ~~~~ store.c:892:10: note: declared here 892 | double log10(); | ^~~~~ store.c: In function 'event_text': store.c:1161:6: warning: old-style function definition [-Wold-style-definition] 1161 | void event_text(s) | ^~~~~~~~~~ store.c: In function 'event_x_reserved': store.c:1177:6: warning: old-style function definition [-Wold-style-definition] 1177 | void event_x_reserved(p) | ^~~~~~~~~~~~~~~~ store.c: In function 'event_abbreviation': store.c:1187:6: warning: old-style function definition [-Wold-style-definition] 1187 | void event_abbreviation(symbol, string, container) | ^~~~~~~~~~~~~~~~~~ store.c: In function 'event_tex': store.c:1529:6: warning: old-style function definition [-Wold-style-definition] 1529 | void event_tex(s) | ^~~~~~~~~ store.c: In function 'event_fatal_error': store.c:1535:6: warning: old-style function definition [-Wold-style-definition] 1535 | void event_fatal_error(s) | ^~~~~~~~~~~~~~~~~ store.c: In function 'event_error': store.c:1543:6: warning: old-style function definition [-Wold-style-definition] 1543 | void event_error(s) | ^~~~~~~~~~~ store.c: In function 'event_warning': store.c:1558:6: warning: old-style function definition [-Wold-style-definition] 1558 | void event_warning(s) | ^~~~~~~~~~~~~ store.c: In function 'autoextend': store.c:1573:12: warning: old-style function definition [-Wold-style-definition] 1573 | static int autoextend(maxnotes) | ^~~~~~~~~~ store.c: In function 'textextend': store.c:1642:12: warning: old-style function definition [-Wold-style-definition] 1642 | static int textextend(maxstrings, stringarray) | ^~~~~~~~~~ store.c: In function 'addfeature': store.c:1664:13: warning: old-style function definition [-Wold-style-definition] 1664 | static void addfeature(f, p, n, d) | ^~~~~~~~~~ store.c: In function 'replacefeature': store.c:1682:13: warning: old-style function definition [-Wold-style-definition] 1682 | static void replacefeature(f, p, n, d, loc) | ^~~~~~~~~~~~~~ store.c: In function 'insertfeature': store.c:1692:6: warning: old-style function definition [-Wold-style-definition] 1692 | void insertfeature(f, p, n, d, loc) | ^~~~~~~~~~~~~ store.c: In function 'removefeature': store.c:1720:13: warning: old-style function definition [-Wold-style-definition] 1720 | static void removefeature(loc) | ^~~~~~~~~~~~~ store.c: In function 'interchange_features': store.c:1740:13: warning: old-style function definition [-Wold-style-definition] 1740 | static void interchange_features(loc1,loc2) | ^~~~~~~~~~~~~~~~~~~~ store.c: In function 'removefeatures': store.c:1772:13: warning: old-style function definition [-Wold-style-definition] 1772 | static void removefeatures(locfrom,locto) | ^~~~~~~~~~~~~~ store.c: In function 'event_endmusicline': store.c:1809:6: warning: old-style function definition [-Wold-style-definition] 1809 | void event_endmusicline(endchar) | ^~~~~~~~~~~~~~~~~~ store.c: In function 'event_comment': store.c:1828:6: warning: old-style function definition [-Wold-style-definition] 1828 | void event_comment(s) | ^~~~~~~~~~~~~ store.c: In function 'parse_mididef': store.c:1845:6: warning: old-style function definition [-Wold-style-definition] 1845 | void parse_mididef(s) | ^~~~~~~~~~~~~ store.c:1856:5: error: too many arguments to function 'readaln'; expected 0, have 3 1856 | i = readaln(midicmdname[nmidicmd], &p, 31); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ store.c:1842:5: note: declared here 1842 | int readaln(); /* links to parseabc.c */ | ^~~~~~~ store.c: In function 'process_midix': store.c:1869:6: warning: old-style function definition [-Wold-style-definition] 1869 | void process_midix(s) | ^~~~~~~~~~~~~ store.c:1887:9: error: too many arguments to function 'readaln'; expected 0, have 3 1887 | j = readaln(&name,&p,31); | ^~~~~~~ ~~~~~ store.c:1842:5: note: declared here 1842 | int readaln(); /* links to parseabc.c */ | ^~~~~~~ store.c: In function 'compute_fifth_size': store.c:1906:7: warning: old-style function definition [-Wold-style-definition] 1906 | float compute_fifth_size (octave_size, ndiv) | ^~~~~~~~~~~~~~~~~~ store.c: In function 'event_midi': store.c:1929:6: warning: old-style function definition [-Wold-style-definition] 1929 | void event_midi(s) | ^~~~~~~~~~ store.c:2363:10: error: too many arguments to function 'parse_stress_params'; expected 0, have 1 2363 | if (parse_stress_params (inputfile) == -1) readstressfile (inputfile); | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~ store.c:514:5: note: declared here 514 | int parse_stress_params(); | ^~~~~~~~~~~~~~~~~~~ store.c: In function 'event_specific_in_header': store.c:2534:6: warning: old-style function definition [-Wold-style-definition] 2534 | void event_specific_in_header(package, s) | ^~~~~~~~~~~~~~~~~~~~~~~~ store.c: In function 'event_field': store.c:2692:6: warning: old-style function definition [-Wold-style-definition] 2692 | void event_field(k, f) | ^~~~~~~~~~~ store.c: In function 'event_words': store.c:2743:6: warning: old-style function definition [-Wold-style-definition] 2743 | void event_words(p, append, continuation) | ^~~~~~~~~~~ store.c: In function 'append_words': store.c:2772:6: warning: old-style function definition [-Wold-style-definition] 2772 | void append_words (morewords) | ^~~~~~~~~~~~ store.c: In function 'appendfield': store.c:2781:6: warning: old-style function definition [-Wold-style-definition] 2781 | void appendfield (morewords) | ^~~~~~~~~~~ store.c: In function 'char_out': store.c:2807:13: warning: old-style function definition [-Wold-style-definition] 2807 | static void char_out(part, ch) | ^~~~~~~~ store.c: In function 'read_spec': store.c:2825:13: warning: old-style function definition [-Wold-style-definition] 2825 | static void read_spec(spec, part) | ^~~~~~~~~ store.c: In function 'event_part': store.c:2931:6: warning: old-style function definition [-Wold-style-definition] 2931 | void event_part(s) | ^~~~~~~~~~ store.c: In function 'event_voice': store.c:2972:6: warning: old-style function definition [-Wold-style-definition] 2972 | void event_voice(n, s, vp) | ^~~~~~~~~~~ store.c: In function 'event_length': store.c:3005:6: warning: old-style function definition [-Wold-style-definition] 3005 | void event_length(n) | ^~~~~~~~~~~~ store.c: In function 'event_default_length': store.c:3016:6: warning: old-style function definition [-Wold-style-definition] 3016 | void event_default_length (n) | ^~~~~~~~~~~~~~~~~~~~ store.c: In function 'tempounits': store.c:3022:13: warning: old-style function definition [-Wold-style-definition] 3022 | static void tempounits(t_num, t_denom) | ^~~~~~~~~~ store.c: In function 'get_tempo_from_name': store.c:3041:5: warning: old-style function definition [-Wold-style-definition] 3041 | int get_tempo_from_name (s) /* [SS] 2010-12-07 */ | ^~~~~~~~~~~~~~~~~~~ store.c: In function 'is_abcm2ps_option': store.c:3055:5: warning: old-style function definition [-Wold-style-definition] 3055 | int is_abcm2ps_option (s) /* [SS] 2018-12-17 */ | ^~~~~~~~~~~~~~~~~ store.c: In function 'event_tempo': store.c:3068:6: warning: old-style function definition [-Wold-style-definition] 3068 | void event_tempo(n, a, b, rel, pre, post) | ^~~~~~~~~~~ store.c: In function 'event_timesig': store.c:3108:6: warning: old-style function definition [-Wold-style-definition] 3108 | void event_timesig (timesig) | ^~~~~~~~~~~~~ store.c: In function 'event_octave': store.c:3146:6: warning: old-style function definition [-Wold-style-definition] 3146 | void event_octave(num, local) | ^~~~~~~~~~~~ store.c: In function 'stack_broken': store.c:3163:13: warning: old-style function definition [-Wold-style-definition] 3163 | static void stack_broken(v) | ^~~~~~~~~~~~ store.c: In function 'restore_broken': store.c:3181:13: warning: old-style function definition [-Wold-style-definition] 3181 | static void restore_broken(v) | ^~~~~~~~~~~~~~ store.c: In function 'event_playonrep': store.c:3228:6: warning: old-style function definition [-Wold-style-definition] 3228 | void event_playonrep(s) | ^~~~~~~~~~~~~~~ store.c: In function 'event_sluron': store.c:3249:6: warning: old-style function definition [-Wold-style-definition] 3249 | void event_sluron(t) | ^~~~~~~~~~~~ store.c: In function 'event_sluroff': store.c:3260:6: warning: old-style function definition [-Wold-style-definition] 3260 | void event_sluroff(t) | ^~~~~~~~~~~~~ store.c: In function 'event_lineend': store.c:3291:6: warning: old-style function definition [-Wold-style-definition] 3291 | void event_lineend(ch, n) | ^~~~~~~~~~~~~ store.c: In function 'event_broken': store.c:3299:6: warning: old-style function definition [-Wold-style-definition] 3299 | void event_broken(type, mult) | ^~~~~~~~~~~~ store.c: In function 'event_tuple': store.c:3321:6: warning: old-style function definition [-Wold-style-definition] 3321 | void event_tuple(n, q, r) | ^~~~~~~~~~~ store.c: In function 'lenmul': store.c:3376:13: warning: old-style function definition [-Wold-style-definition] 3376 | static void lenmul(n, a, b) | ^~~~~~ store.c: In function 'event_spacing': store.c:3482:6: warning: old-style function definition [-Wold-style-definition] 3482 | void event_spacing(n, m) | ^~~~~~~~~~~~~ store.c: In function 'event_rest': store.c:3487:6: warning: old-style function definition [-Wold-style-definition] 3487 | void event_rest(decorators,n,m,type) | ^~~~~~~~~~ store.c: In function 'event_mrest': store.c:3535:6: warning: old-style function definition [-Wold-style-definition] 3535 | void event_mrest(n,m,c) | ^~~~~~~~~~~ store.c: In function 'event_finger': store.c:3628:6: warning: old-style function definition [-Wold-style-definition] 3628 | void event_finger(p) | ^~~~~~~~~~~~ store.c: In function 'pitchof': store.c:3635:12: warning: old-style function definition [-Wold-style-definition] 3635 | static int pitchof(note, accidental, mult, octave, propagate_accs) | ^~~~~~~ store.c: In function 'barepitch': store.c:3673:12: warning: old-style function definition [-Wold-style-definition] 3673 | static int barepitch(note, accidental, mult, octave) | ^~~~~~~~~ store.c: In function 'pitchof_b': store.c:3692:12: warning: old-style function definition [-Wold-style-definition] 3692 | static int pitchof_b(note, accidental, mult, octave, propagate_accs,pitchbend) | ^~~~~~~~~ store.c: In function 'doroll': store.c:3890:13: warning: old-style function definition [-Wold-style-definition] 3890 | static void doroll(note, octave, n, m, pitch) | ^~~~~~ store.c: In function 'doroll_setup': store.c:3928:13: warning: old-style function definition [-Wold-style-definition] 3928 | static void doroll_setup(note,octave,n,m,pitch) | ^~~~~~~~~~~~ store.c: In function 'doroll_output': store.c:3965:13: warning: old-style function definition [-Wold-style-definition] 3965 | static void doroll_output(i) | ^~~~~~~~~~~~~ store.c: In function 'dotrill_setup': store.c:4051:13: warning: old-style function definition [-Wold-style-definition] 4051 | static void dotrill_setup(note, octave, n, m, pitch) | ^~~~~~~~~~~~~ store.c: In function 'dotrill_output': store.c:4083:13: warning: old-style function definition [-Wold-style-definition] 4083 | static void dotrill_output(i) | ^~~~~~~~~~~~~~ store.c: In function 'makecut': store.c:4156:6: warning: old-style function definition [-Wold-style-definition] 4156 | void makecut (mainpitch, shortpitch,mainbend,shortbend, n,m) | ^~~~~~~ store.c: In function 'makeharproll': store.c:4167:6: warning: old-style function definition [-Wold-style-definition] 4167 | void makeharproll (pitch, bend,n,m) /* [JS] 2011-04-29 */ | ^~~~~~~~~~~~ store.c: In function 'makeharproll3': store.c:4178:6: warning: old-style function definition [-Wold-style-definition] 4178 | void makeharproll3 (pitch, bend,n,m) /* [JS] 2011-04-29 */ | ^~~~~~~~~~~~~ store.c: In function 'doornament': store.c:4191:13: warning: old-style function definition [-Wold-style-definition] 4191 | static void doornament(note, octave, n, m, pitch) | ^~~~~~~~~~ store.c: In function 'hornp': store.c:4261:13: warning: old-style function definition [-Wold-style-definition] 4261 | static void hornp(num, denom) | ^~~~~ store.c: In function 'event_note': store.c:4282:6: warning: old-style function definition [-Wold-style-definition] 4282 | void event_note(decorators, clef, accidental, mult, note, xoctave, n, m) | ^~~~~~~~~~ store.c: At top level: store.c:4421:6: error: conflicting types for 'event_temperament'; have 'void(char *)' 4421 | void event_temperament(char* line) | ^~~~~~~~~~~~~~~~~ In file included from store.c:207: parseabc.h:174:13: note: previous declaration of 'event_temperament' with type 'void(void)' 174 | extern void event_temperament(); | ^~~~~~~~~~~~~~~~~ store.c: In function 'get_accidental': store.c:4477:7: warning: old-style function definition [-Wold-style-definition] 4477 | char *get_accidental(place, accidental) | ^~~~~~~~~~~~~~ store.c: In function 'event_handle_gchord': store.c:4497:6: warning: old-style function definition [-Wold-style-definition] 4497 | void event_handle_gchord(s) | ^~~~~~~~~~~~~~~~~~~ store.c: In function 'event_handle_instruction': store.c:4589:6: warning: old-style function definition [-Wold-style-definition] 4589 | void event_handle_instruction(s) | ^~~~~~~~~~~~~~~~~~~~~~~~ store.c: In function 'setmap': store.c:4774:13: warning: old-style function definition [-Wold-style-definition] 4774 | static void setmap(sf, map, mult) | ^~~~~~ store.c: In function 'altermap': store.c:4802:13: warning: old-style function definition [-Wold-style-definition] 4802 | static void altermap(v, modmap, modmul,modmic) | ^~~~~~~~ store.c: In function 'copymap': store.c:4821:13: warning: old-style function definition [-Wold-style-definition] 4821 | static void copymap(v) | ^~~~~~~ store.c: In function 'myputc': store.c:4841:5: warning: old-style function definition [-Wold-style-definition] 4841 | int myputc(c) | ^~~~~~ store.c: In function 'nondestructive_readstr': store.c:4856:6: warning: old-style function definition [-Wold-style-definition] 4856 | void nondestructive_readstr(out, in, limit) | ^~~~~~~~~~~~~~~~~~~~~~ store.c: In function 'dotie': store.c:4872:13: warning: old-style function definition [-Wold-style-definition] 4872 | static void dotie(j, xinchord,voiceno) | ^~~~~ store.c: In function 'applygrace': store.c:5137:13: warning: old-style function definition [-Wold-style-definition] 5137 | static void applygrace(place) | ^~~~~~~~~~ store.c: In function 'applygrace_orig': store.c:5149:13: warning: old-style function definition [-Wold-style-definition] 5149 | static void applygrace_orig(place) | ^~~~~~~~~~~~~~~ store.c: In function 'applygrace_new': store.c:5260:13: warning: old-style function definition [-Wold-style-definition] 5260 | static void applygrace_new(place) | ^~~~~~~~~~~~~~ store.c: In function 'event_bar': store.c:5441:6: warning: old-style function definition [-Wold-style-definition] 5441 | void event_bar(type, replist) | ^~~~~~~~~ store.c: In function 'placeendrep': store.c:5497:13: warning: old-style function definition [-Wold-style-definition] 5497 | static void placeendrep(j) | ^~~~~~~~~~~ store.c: In function 'placestartrep': store.c:5519:13: warning: old-style function definition [-Wold-style-definition] 5519 | static void placestartrep(j) | ^~~~~~~~~~~~~ store.c: In function 'apply_bf_stress_factors': store.c:5774:15: error: too many arguments to function 'parse_stress_params'; expected 0, have 1 5774 | if (parse_stress_params (inputfile) == -1) readstressfile (inputfile); | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~ store.c:514:5: note: declared here 514 | int parse_stress_params(); | ^~~~~~~~~~~~~~~~~~~ store.c: In function 'event_key': store.c:5949:6: warning: old-style function definition [-Wold-style-definition] 5949 | void event_key(sharps, s, modeindex, modmap, modmul, modmicrotone, gotkey, gotclef, clefname, clef, | ^~~~~~~~~ store.c: In function 'finishfile': store.c:6233:9: error: too many arguments to function 'writetrack'; expected 0, have 1 6233 | writetrack(0); | ^~~~~~~~~~ ~ store.c:506:13: note: declared here 506 | extern long writetrack(); | ^~~~~~~~~~ store.c:6238:16: error: too many arguments to function 'writetrack'; expected 0, have 1 6238 | writetrack(i); | ^~~~~~~~~~ ~ store.c:506:13: note: declared here 506 | extern long writetrack(); | ^~~~~~~~~~ store.c:6245:16: error: too many arguments to function 'writetrack'; expected 0, have 1 6245 | writetrack(i); | ^~~~~~~~~~ ~ store.c:506:13: note: declared here 506 | extern long writetrack(); | ^~~~~~~~~~ store.c:6259:9: error: too many arguments to function 'mfwrite'; expected 0, have 4 6259 | mfwrite(0, 1, division, fp); | ^~~~~~~ ~ midifile.h:35:6: note: declared here 35 | void mfwrite(); | ^~~~~~~ store.c:6261:9: error: too many arguments to function 'mfwrite'; expected 0, have 4 6261 | mfwrite(1, ntracks, division, fp); | ^~~~~~~ ~ midifile.h:35:6: note: declared here 35 | void mfwrite(); | ^~~~~~~ store.c: In function 'event_refno': store.c:6292:6: warning: old-style function definition [-Wold-style-definition] 6292 | void event_refno(n) | ^~~~~~~~~~~ store.c: In function 'main': store.c:6368:5: warning: old-style function definition [-Wold-style-definition] 6368 | int main(argc,argv) | ^~~~ store.c:6388:5: error: too many arguments to function 'parsefile'; expected 0, have 1 6388 | parsefile(filename); | ^~~~~~~~~ ~~~~~~~~ parseabc.h:178:13: note: declared here 178 | extern void parsefile(); | ^~~~~~~~~ make: *** [: store.o] Error 1 gcc -DANSILIBS -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 -O2 -DHAVE_CONFIG_H -I. -c -o music_utils.o music_utils.c gcc -DANSILIBS -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 -O2 -DHAVE_CONFIG_H -I. -c -o stresspat.o stresspat.c error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.c6QGym (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.c6QGym (%build) I: [iurt_root_command] ERROR: chroot