rgument 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); | ~~~~~~^~ 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); | ^ 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 /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: 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 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: Bad exit status from /var/tmp/rpm-tmp.FLbgeo (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.FLbgeo (%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