Mock Version: 1.4.21 Mock Version: 1.4.21 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/libtpcmisc.spec'], chrootPath='/var/lib/mock/f33-build-127983-40338/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=432000uid=987gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/libtpcmisc.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1564012800 Wrote: /builddir/build/SRPMS/libtpcmisc-1.4.8-20.fc33.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/libtpcmisc.spec'], chrootPath='/var/lib/mock/f33-build-127983-40338/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=432000uid=987gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/libtpcmisc.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1564012800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.hWegIV + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf libtpcmisc + /usr/bin/unzip -qq /builddir/build/SOURCES/libtpcmisc_1_4_8_src.zip + STATUS=0 + '[' 0 -ne 0 ']' + cd libtpcmisc + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #0 (libtpcmisc-shared.patch): + echo 'Patch #0 (libtpcmisc-shared.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .shared --fuzz=0 patching file include/memory_handler.h patching file Makefile patching file memory_handler.c + sed -i '/^CFLAGS/d' Makefile + dos2unix -k History Readme dos2unix: converting file History to Unix format... dos2unix: converting file Readme to Unix format... + iconv -f ISO_8859-1 -t utf8 -o History.new History + mv -f History.new History + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.gvVNnZ + umask 022 + cd /builddir/build/BUILD + cd libtpcmisc + export 'CFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -std=c99 -fPIC -DPIC -D_POSIX_C_SOURCE=200112L' + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -std=c99 -fPIC -DPIC -D_POSIX_C_SOURCE=200112L' + export 'CXXFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DPIC' + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DPIC' + make -j8 gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -std=c99 -fPIC -DPIC -D_POSIX_C_SOURCE=200112L -c -o substitutions.o substitutions.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -std=c99 -fPIC -DPIC -D_POSIX_C_SOURCE=200112L -c -o backup.o backup.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -std=c99 -fPIC -DPIC -D_POSIX_C_SOURCE=200112L -c -o idcrypt.o idcrypt.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -std=c99 -fPIC -DPIC -D_POSIX_C_SOURCE=200112L -c -o intex.o intex.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -std=c99 -fPIC -DPIC -D_POSIX_C_SOURCE=200112L -c -o petc99.o petc99.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -std=c99 -fPIC -DPIC -D_POSIX_C_SOURCE=200112L -c -o studynr.o studynr.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -std=c99 -fPIC -DPIC -D_POSIX_C_SOURCE=200112L -c -o swap.o swap.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -std=c99 -fPIC -DPIC -D_POSIX_C_SOURCE=200112L -c -o halflife.o halflife.c intex.c: In function 'intExpand': intex.c:51:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 51 | if(list->nr>0 && list->i!=NULL) free((char*)list->i); list->nr=0; | ^~ intex.c:51:57: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 51 | if(list->nr>0 && list->i!=NULL) free((char*)list->i); list->nr=0; | ^~~~ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -std=c99 -fPIC -DPIC -D_POSIX_C_SOURCE=200112L -c -o ift.o ift.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -std=c99 -fPIC -DPIC -D_POSIX_C_SOURCE=200112L -c -o iftfile.o iftfile.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -std=c99 -fPIC -DPIC -D_POSIX_C_SOURCE=200112L -c -o iftsrch.o iftsrch.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -std=c99 -fPIC -DPIC -D_POSIX_C_SOURCE=200112L -c -o decpoint.o decpoint.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -std=c99 -fPIC -DPIC -D_POSIX_C_SOURCE=200112L -c -o quots.o quots.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -std=c99 -fPIC -DPIC -D_POSIX_C_SOURCE=200112L -c -o petunits.o petunits.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -std=c99 -fPIC -DPIC -D_POSIX_C_SOURCE=200112L -c -o datetime.o datetime.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -std=c99 -fPIC -DPIC -D_POSIX_C_SOURCE=200112L -c -o memory_handler.o memory_handler.c petunits.c: In function 'petCunitId': petunits.c:102:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 102 | else if(strcasecmp(unit, "unknown")==0) return CUNIT_UNKNOWN; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:103:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 103 | else if(strcasecmp(unit, "cnts/sec")==0) return CUNIT_CPS; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:104:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 104 | else if(strcasecmp(unit, "counts/sec")==0) return CUNIT_CPS; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:105:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 105 | else if(strcasecmp(unit, "ECAT counts/sec")==0) return CUNIT_CPS; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:106:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 106 | else if(strcasecmp(unit, "cps")==0) return CUNIT_CPS; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:107:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 107 | else if(strcasecmp(unit, "counts")==0) return CUNIT_COUNTS; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -std=c99 -fPIC -DPIC -D_POSIX_C_SOURCE=200112L -c -o libtpcmiscv.o libtpcmiscv.c petunits.c:108:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 108 | else if(strcasecmp(unit, "cnts")==0) return CUNIT_COUNTS; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:109:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 109 | else if(strcasecmp(unit, "kBq/cc")==0) return CUNIT_KBQ_PER_ML; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:110:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 110 | else if(strcasecmp(unit, "kBq/mL")==0) return CUNIT_KBQ_PER_ML; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:111:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 111 | else if(strcasecmp(unit, "sec*kBq/cc")==0) return CUNIT_SEC_KBQ_PER_ML; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:112:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 112 | else if(strcasecmp(unit, "sec*kBq/mL")==0) return CUNIT_SEC_KBQ_PER_ML; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:113:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 113 | else if(strcasecmp(unit, "integral")==0) return CUNIT_SEC_KBQ_PER_ML; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:114:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 114 | else if(strcasecmp(unit, "1/sec")==0) return CUNIT_PER_SEC; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:115:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 115 | else if(strcasecmp(unit, "1/s")==0) return CUNIT_PER_SEC; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:116:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 116 | else if(strcasecmp(unit, "s-1")==0) return CUNIT_PER_SEC; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:117:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 117 | else if(strcasecmp(unit, "1/min")==0) return CUNIT_PER_MIN; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:118:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 118 | else if(strcasecmp(unit, "min-1")==0) return CUNIT_PER_MIN; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:119:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 119 | else if(strcasecmp(unit, "mL/mL")==0) return CUNIT_ML_PER_ML; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:120:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 120 | else if(strcasecmp(unit, "mL/cc")==0) return CUNIT_ML_PER_ML; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:121:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 121 | else if(strcasecmp(unit, "mL/dL")==0) return CUNIT_ML_PER_DL; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:122:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 122 | else if(strcasecmp(unit, "mL/100mL")==0) return CUNIT_ML_PER_DL; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:123:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 123 | else if(strcasecmp(unit, "mL/(mL*min)")==0) return CUNIT_ML_PER_ML_PER_MIN; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:124:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 124 | else if(strcasecmp(unit, "mL/(min*mL)")==0) return CUNIT_ML_PER_ML_PER_MIN; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:125:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 125 | else if(strcasecmp(unit, "mL/(cc*min)")==0) return CUNIT_ML_PER_ML_PER_MIN; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:126:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 126 | else if(strcasecmp(unit, "mL/(min*cc)")==0) return CUNIT_ML_PER_ML_PER_MIN; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:127:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 127 | else if(strcasecmp(unit, "mL/mL/min")==0) return CUNIT_ML_PER_ML_PER_MIN; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:128:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 128 | else if(strcasecmp(unit, "mL/min/mL")==0) return CUNIT_ML_PER_ML_PER_MIN; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:129:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 129 | else if(strcasecmp(unit, "mL/cc/min")==0) return CUNIT_ML_PER_ML_PER_MIN; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:130:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 130 | else if(strcasecmp(unit, "mL/min/cc")==0) return CUNIT_ML_PER_ML_PER_MIN; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:131:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 131 | else if(strcasecmp(unit, "mL/(dL*min)")==0) return CUNIT_ML_PER_DL_PER_MIN; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:132:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 132 | else if(strcasecmp(unit, "mL/(min*dL)")==0) return CUNIT_ML_PER_DL_PER_MIN; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:133:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 133 | else if(strcasecmp(unit, "mL/(100mL*min)")==0) return CUNIT_ML_PER_DL_PER_MIN; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:134:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 134 | else if(strcasecmp(unit, "mL/(min*100mL)")==0) return CUNIT_ML_PER_DL_PER_MIN; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:135:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 135 | else if(strcasecmp(unit, "mL/dL/min")==0) return CUNIT_ML_PER_DL_PER_MIN; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:136:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 136 | else if(strcasecmp(unit, "mL/min/dL")==0) return CUNIT_ML_PER_DL_PER_MIN; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:137:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 137 | else if(strcasecmp(unit, "mL/100mL/min")==0) return CUNIT_ML_PER_DL_PER_MIN; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:138:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 138 | else if(strcasecmp(unit, "mL/min/100mL")==0) return CUNIT_ML_PER_DL_PER_MIN; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:139:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 139 | else if(strcasecmp(unit, "unitless")==0) return CUNIT_UNITLESS; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:140:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 140 | else if(strcasecmp(unit, "nCi/cc")==0) return CUNIT_NCI_PER_ML; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:141:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 141 | else if(strcasecmp(unit, "nCi/mL")==0) return CUNIT_NCI_PER_ML; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:142:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 142 | else if(strcasecmp(unit, "MBq/cc")==0) return CUNIT_MBQ_PER_ML; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:143:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 143 | else if(strcasecmp(unit, "MBq/mL")==0) return CUNIT_MBQ_PER_ML; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:144:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 144 | else if(strcasecmp(unit, "Bq/cc")==0) return CUNIT_BQ_PER_ML; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:145:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 145 | else if(strcasecmp(unit, "Bq/mL")==0) return CUNIT_BQ_PER_ML; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:146:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 146 | else if(strcasecmp(unit, "uCi/cc")==0) return CUNIT_UCI_PER_ML; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:147:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 147 | else if(strcasecmp(unit, "uCi/mL")==0) return CUNIT_UCI_PER_ML; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:148:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 148 | else if(strcasecmp(unit, "umol/(100g*min)")==0) return CUNIT_UMOL_PER_MIN_PER_100G; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:149:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 149 | else if(strcasecmp(unit, "umol/(min*100g)")==0) return CUNIT_UMOL_PER_MIN_PER_100G; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:150:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 150 | else if(strcasecmp(unit, "umol/100g/min")==0) return CUNIT_UMOL_PER_MIN_PER_100G; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:151:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 151 | else if(strcasecmp(unit, "umol/min/100g")==0) return CUNIT_UMOL_PER_MIN_PER_100G; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:152:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 152 | else if(strcasecmp(unit, "umol/(dL*min)")==0) return CUNIT_UMOL_PER_MIN_PER_100G; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:153:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 153 | else if(strcasecmp(unit, "umol/(min*dL)")==0) return CUNIT_UMOL_PER_MIN_PER_100G; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:154:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 154 | else if(strcasecmp(unit, "umol/dL/min")==0) return CUNIT_UMOL_PER_MIN_PER_100G; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:155:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 155 | else if(strcasecmp(unit, "umol/min/dL")==0) return CUNIT_UMOL_PER_MIN_PER_100G; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:156:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 156 | else if(strcasecmp(unit, "mg/(100g*min)")==0) return CUNIT_MG_PER_MIN_PER_100G; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:157:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 157 | else if(strcasecmp(unit, "mg/(min*100g)")==0) return CUNIT_MG_PER_MIN_PER_100G; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:158:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 158 | else if(strcasecmp(unit, "mg/100g/min")==0) return CUNIT_MG_PER_MIN_PER_100G; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:159:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 159 | else if(strcasecmp(unit, "mg/min/100g")==0) return CUNIT_MG_PER_MIN_PER_100G; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:160:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 160 | else if(strcasecmp(unit, "mg/(dL*min)")==0) return CUNIT_MG_PER_MIN_PER_100G; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:161:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 161 | else if(strcasecmp(unit, "mg/(min*dL)")==0) return CUNIT_MG_PER_MIN_PER_100G; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:162:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 162 | else if(strcasecmp(unit, "mg/dL/min")==0) return CUNIT_MG_PER_MIN_PER_100G; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:163:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 163 | else if(strcasecmp(unit, "mg/min/dL")==0) return CUNIT_MG_PER_MIN_PER_100G; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:164:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 164 | else if(strcasecmp(unit, "%")==0) return CUNIT_PERCENTAGE; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:165:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 165 | else if(strcasecmp(unit, "kcps")==0) return CUNIT_KCPS; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:166:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 166 | else if(strcasecmp(unit, "min*kBq/cc")==0) return CUNIT_MIN_KBQ_PER_ML; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:167:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 167 | else if(strcasecmp(unit, "min*kBq/mL")==0) return CUNIT_MIN_KBQ_PER_ML; | ^~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c: In function 'petTunitId': petunits.c:181:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 181 | else if(strcasecmp(timeunit, "unknown")==0) return TUNIT_UNKNOWN; | ^~~~~~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:182:11: warning: implicit declaration of function 'strncasecmp'; did you mean 'strcasecmp'? [-Wimplicit-function-declaration] 182 | else if(strncasecmp(timeunit, "seconds", 3)==0) return TUNIT_SEC; | ^~~~~~~~~~~ | strcasecmp petunits.c:185:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 185 | else if(strcasecmp(timeunit, "um")==0) return TUNIT_UM; | ^~~~~~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:186:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 186 | else if(strcasecmp(timeunit, "mm")==0) return TUNIT_MM; | ^~~~~~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:187:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 187 | else if(strcasecmp(timeunit, "cm")==0) return TUNIT_CM; | ^~~~~~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:188:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 188 | else if(strcasecmp(timeunit, "m")==0) return TUNIT_M; | ^~~~~~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:189:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 189 | else if(strcasecmp(timeunit, "h")==0) return TUNIT_HOUR; | ^~~~~~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:190:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 190 | else if(strcasecmp(timeunit, "months")==0) return TUNIT_MONTH; | ^~~~~~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:191:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 191 | else if(strcasecmp(timeunit, "y")==0) return TUNIT_YEAR; | ^~~~~~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ petunits.c:192:22: warning: passing argument 1 of 'strcasecmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 192 | else if(strcasecmp(timeunit, "msec")==0) return TUNIT_MSEC; | ^~~~~~~~ In file included from petunits.c:44: include/substitutions.h:16:22: note: expected 'char *' but argument is of type 'const char *' 16 | int strcasecmp(char *s1, char *s2); | ~~~~~~^~ In file included from /usr/include/string.h:495, from studynr.c:59: In function 'strncpy', inlined from 'studynr_in_fname.part.0' at studynr.c:90:3: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin___strncpy_chk' specified bound depends on the length of the source argument [-Wstringop-overflow=] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ studynr.c: In function 'studynr_in_fname.part.0': studynr.c:89:5: note: length computed here 89 | i=strlen(cptr); if(i>FILENAME_MAX) i=FILENAME_MAX; | ^~~~~~~~~~~~ memory_handler.c: In function 'check_memory': memory_handler.c:139:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 139 | (unsigned int) mem ); | ^ memory_handler.c:146:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 146 | (unsigned int)mem, loop ); | ^ memory_handler.c: In function 'allocate_memory': memory_handler.c:226:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 226 | (unsigned int)best, waste ); | ^ memory_handler.c: In function '_free_memory': memory_handler.c:281:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 281 | (unsigned int) loop, loop->size, true_f ); | ^ memory_handler.c: In function 'debug_print_memory': memory_handler.c:370:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 370 | (unsigned int) loop, (unsigned int) loop->mem, loop->size, | ^ memory_handler.c:370:39: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 370 | (unsigned int) loop, (unsigned int) loop->mem, loop->size, | ^ memory_handler.c:371:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 371 | (unsigned int)loop->next, loop->used); | ^ datetime.c: In function 'isdate': datetime.c:73:6: warning: implicit declaration of function 'strncasecmp'; did you mean 'strcasecmp'? [-Wimplicit-function-declaration] 73 | if(strncasecmp(str, "YYYY-MM-DD", 10)==0) return -1; | ^~~~~~~~~~~ | strcasecmp In file included from /usr/include/string.h:495, from studynr.c:59: In function 'strncpy', inlined from 'studynr_from_fname2' at studynr.c:136:3, inlined from 'studynr_from_fname2' at studynr.c:114:5: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ studynr.c: In function 'studynr_from_fname2': studynr.c:135:5: note: length computed here 135 | i=strlen(cptr); if(i>MAX_STUDYNR_LEN) i=MAX_STUDYNR_LEN; | ^~~~~~~~~~~~ ar -rvs libtpcmisc.a substitutions.o backup.o idcrypt.o intex.o petc99.o studynr.o swap.o halflife.o ift.o iftfile.o iftsrch.o decpoint.o quots.o petunits.o datetime.o memory_handler.o libtpcmiscv.o gcc -shared -o libtpcmisc.so.0.0.0 substitutions.o backup.o idcrypt.o intex.o petc99.o studynr.o swap.o halflife.o ift.o iftfile.o iftsrch.o decpoint.o quots.o petunits.o datetime.o memory_handler.o libtpcmiscv.o -Wl,-soname=libtpcmisc.so.0 -lm ar: creating libtpcmisc.a a - substitutions.o a - backup.o a - idcrypt.o a - intex.o a - petc99.o a - studynr.o a - swap.o a - halflife.o a - ift.o a - iftfile.o a - iftsrch.o a - decpoint.o a - quots.o a - petunits.o a - datetime.o a - memory_handler.o a - libtpcmiscv.o /usr/bin/ld: iftfile.o:/builddir/build/BUILD/libtpcmisc/include/ift.h:55: multiple definition of `IFT_TEST'; ift.o:/builddir/build/BUILD/libtpcmisc/include/ift.h:55: first defined here /usr/bin/ld: iftsrch.o:/builddir/build/BUILD/libtpcmisc/include/ift.h:55: multiple definition of `IFT_TEST'; ift.o:/builddir/build/BUILD/libtpcmisc/include/ift.h:55: first defined here collect2: error: ld returned 1 exit status make: *** [Makefile:74: libtpcmisc.so.0.0.0] Error 1 error: RPM build errors: Bad exit status from /var/tmp/rpm-tmp.gvVNnZ (%build) Bad exit status from /var/tmp/rpm-tmp.gvVNnZ (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py", line 95, in trace result = func(*args, **kw) File "/usr/lib/python3.8/site-packages/mockbuild/util.py", line 746, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/libtpcmisc.spec