rsglue.c gcc -c -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -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 -Wall -DUSE_TCL -g random.c gcc -c -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -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 -Wall -DUSE_TCL -g scan.c random.c: In function ‘hp_rand_init’: random.c:32:17: warning: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 32 | read(fd, rc4_sbox, 256); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from ars.h:20, from arsglue.c:7: bytesex.h:28:3: error: #error can not find the byte order for this architecture, fix bytesex.h 28 | # error can not find the byte order for this architecture, fix bytesex.h | ^~~~~ ars.h:190:2: error: #error "Please, edit Makefile and add -DBYTE_ORDER_(BIG|LITTLE)_ENDIAN" 190 | #error "Please, edit Makefile and add -DBYTE_ORDER_(BIG|LITTLE)_ENDIAN" | ^~~~~ ars.h:254:2: error: #error "Please, edit Makefile and add -DBYTE_ORDER_(BIG|LITTLE)_ENDIAN" 254 | #error "Please, edit Makefile and add -DBYTE_ORDER_(BIG|LITTLE)_ENDIAN" | ^~~~~ ars.h:323:2: error: #error "Please, edit Makefile and add -DBYTE_ORDER_(BIG|LITTLE)_ENDIAN" 323 | #error "Please, edit Makefile and add -DBYTE_ORDER_(BIG|LITTLE)_ENDIAN" | ^~~~~ make: *** [Makefile:66: arsglue.o] Error 1 make: *** Waiting for unfinished jobs.... scan.c: In function ‘receiver’: scan.c:458:27: warning: pointer targets in assignment from ‘char *’ to ‘unsigned char *’ differ in signedness [-Wpointer-sign] 458 | p = packet+linkhdr_size+iphdrlen; | ^ In file included from /usr/include/string.h:548, from scan.c:17: In function ‘memcpy’, inlined from ‘receiver’ at scan.c:459:4, inlined from ‘scanmain’ at scan.c:545:3: /usr/include/bits/string_fortified.h:29:10: warning: ‘__builtin___memcpy_chk’ forming offset [8, 19] is out of the bounds [0, 8] of object ‘icmp’ with type ‘struct myicmphdr’ [-Warray-bounds=] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ scan.c: In function ‘scanmain’: scan.c:445:42: note: ‘icmp’ declared here 445 | struct myicmphdr icmp; | ^~~~ error: Bad exit status from /var/tmp/rpm-tmp.XAQxRx (%build) line 20: It's not recommended to have unversioned Obsoletes: Obsoletes: hping2 %patchN is deprecated (7 usages found), use %patch N (or %patch -P N) Bad exit status from /var/tmp/rpm-tmp.XAQxRx (%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/hping3.spec