€˜long int *’ 775 | int fread4 ( unsigned long *p, IFILE *f ) | ~~~~~~~~~~~~~~~^ efaxlib.c: In function ‘tiff_first’: efaxlib.c:937:12: warning: pointer targets in passing argument 1 of ‘fread2’ differ in signedness [-Wpointer-sign] 937 | fread2 ( &version, f ) ; | ^~~~~~~~ | | | short int * efaxlib.c:761:30: note: expected ‘short unsigned int *’ but argument is of type ‘short int *’ 761 | int fread2 ( unsigned short *p, IFILE *f ) | ~~~~~~~~~~~~~~~~^ efaxlib.c:938:12: warning: pointer targets in passing argument 1 of ‘fread4’ differ in signedness [-Wpointer-sign] 938 | fread4 ( &(f->next), f ) ; | ^~~~~~~~~~ | | | long int * efaxlib.c:775:29: note: expected ‘long unsigned int *’ but argument is of type ‘long int *’ 775 | int fread4 ( unsigned long *p, IFILE *f ) | ~~~~~~~~~~~~~~~^ efaxlib.c: In function ‘dcx_next’: efaxlib.c:1086:12: warning: pointer targets in passing argument 1 of ‘fread4’ differ in signedness [-Wpointer-sign] 1086 | fread4 ( &thisp, f ) ; | ^~~~~~ | | | long int * efaxlib.c:775:29: note: expected ‘long unsigned int *’ but argument is of type ‘long int *’ 775 | int fread4 ( unsigned long *p, IFILE *f ) | ~~~~~~~~~~~~~~~^ efaxlib.c:1087:12: warning: pointer targets in passing argument 1 of ‘fread4’ differ in signedness [-Wpointer-sign] 1087 | fread4 ( &nextp, f ) ; | ^~~~~~ | | | long int * efaxlib.c:775:29: note: expected ‘long unsigned int *’ but argument is of type ‘long int *’ 775 | int fread4 ( unsigned long *p, IFILE *f ) | ~~~~~~~~~~~~~~~^ efaxlib.c: In function ‘tiff_first’: efaxlib.c:935:3: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 935 | fread ( (uchar*) &magic, 1, 2, f->f ) ; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors gcc -ansi -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -fno-strict-aliasing -c efaxmsg.c make: *** [Makefile:22: efaxos.o] Error 1 make: *** Waiting for unfinished jobs.... efaxlib.c: In function ‘tiff_next’: efaxlib.c:819:10: warning: ‘a’ may be used uninitialized [-Wmaybe-uninitialized] 819 | tv = a ; | ~~~^~~ efaxlib.c:816:22: note: ‘a’ declared here 816 | unsigned short a, b ; | ^ efaxlib.c:819:10: warning: ‘a’ may be used uninitialized [-Wmaybe-uninitialized] 819 | tv = a ; | ~~~^~~ efaxlib.c:816:22: note: ‘a’ declared here 816 | unsigned short a, b ; | ^ error: Bad exit status from /var/tmp/rpm-tmp.il9JkT (%build) %patchN is deprecated (13 usages found), use %patch N (or %patch -P N) Bad exit status from /var/tmp/rpm-tmp.il9JkT (%build) RPM build warnings: RPM build errors: Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 600, 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/efax.spec