Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/disasm.spec'], chrootPath='/var/lib/mock/fedora-38-x86_64-1681900039.100898/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': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.eyiplc53:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.eyiplc53:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '8c7b9f07f53d46ef88e3a6b1791a7e01', '-D', '/var/lib/mock/fedora-38-x86_64-1681900039.100898/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.eyiplc53:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/disasm.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': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1528502400 Wrote: /builddir/build/SRPMS/disasm-0.8.4-1.fc38.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/disasm.spec'], chrootPath='/var/lib/mock/fedora-38-x86_64-1681900039.100898/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': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.eyiplc53:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.eyiplc53:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'e7d067ce8ef44299830c89ae467016e3', '-D', '/var/lib/mock/fedora-38-x86_64-1681900039.100898/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.eyiplc53:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/disasm.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': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1528502400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.k31Aft + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf disasm + /usr/bin/mkdir -p disasm + cd disasm + /usr/lib/rpm/rpmuncompress -x -v /builddir/build/SOURCES/disasm-0.8.4.tar.bz2 /usr/bin/bzip2 -dc '/builddir/build/SOURCES/disasm-0.8.4.tar.bz2' | /usr/bin/tar -xvvof - drwxr-xr-x rulezz/rulezz 0 2022-11-20 07:59 disasm-0.8.4/ -rw-r--r-- rulezz/rulezz 4197 2022-03-19 15:36 disasm-0.8.4/gdbclient.cc -rw-r--r-- rulezz/rulezz 13466 2022-03-19 15:36 disasm-0.8.4/view_elf32.cc -rw-r--r-- rulezz/rulezz 18713 2022-03-19 15:36 disasm-0.8.4/c166dis.cc -rw-r--r-- rulezz/rulezz 1193 2022-03-19 15:36 disasm-0.8.4/prstatus.h -rw-r--r-- rulezz/rulezz 11964 2022-03-19 15:36 disasm-0.8.4/view_elf64.cc -rw-r--r-- rulezz/rulezz 10568 2022-03-19 15:36 disasm-0.8.4/or32dis.cc -rw-r--r-- rulezz/rulezz 227 2022-03-19 15:36 disasm-0.8.4/gdbclient.h -rw-r--r-- rulezz/rulezz 1270 2022-03-19 15:36 disasm-0.8.4/pe_file.h -rw-r--r-- rulezz/rulezz 262 2022-03-19 15:36 disasm-0.8.4/Makefile -rw-r--r-- rulezz/rulezz 66004 2022-11-20 07:59 disasm-0.8.4/disasm.cc + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.weU1IP + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd disasm + cd disasm-0.8.4 + make disasm g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -std=c++17 -DKEYSTONE -c -o c166dis.o c166dis.cc g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -std=c++17 -DKEYSTONE -c -o or32dis.o or32dis.cc or32dis.cc: In function 'int or1k_disasm(unsigned int, unsigned char*, int, const char**, const char**)': or32dis.cc:143:22: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 143 | for ( int i = 0; i < sizeof(dis_tbl) / sizeof(*dis_tbl); i++ ) { | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ or32dis.cc:145:42: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 145 | if ( (f & CMD6 ) && (code >> 26) != dis_tbl[i].cmd || | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ or32dis.cc:146:42: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 146 | (f & CMD8 ) && (code >> 24) != dis_tbl[i].cmd || | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ or32dis.cc:145:26: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 145 | if ( (f & CMD6 ) && (code >> 26) != dis_tbl[i].cmd || | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ or32dis.cc:147:42: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 147 | (f & CMD11) && (code >> 21) != dis_tbl[i].cmd || | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ or32dis.cc:147:26: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 147 | (f & CMD11) && (code >> 21) != dis_tbl[i].cmd || | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ or32dis.cc:148:42: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 148 | (f & CMD16) && (code >> 16) != dis_tbl[i].cmd || | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ or32dis.cc:148:26: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 148 | (f & CMD16) && (code >> 16) != dis_tbl[i].cmd || | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ or32dis.cc:149:42: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 149 | (f & CMD32) && code != dis_tbl[i].cmd || | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ or32dis.cc:149:26: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 149 | (f & CMD32) && code != dis_tbl[i].cmd || | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ or32dis.cc:150:59: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 150 | (f & ECMD) && (code & dis_tbl[i].ecmd_mask) != dis_tbl[i].ecmd ) continue; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ or32dis.cc:150:26: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 150 | (f & ECMD) && (code & dis_tbl[i].ecmd_mask) != dis_tbl[i].ecmd ) continue; | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ or32dis.cc:172:32: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 172 | int imm = code & 0x3ffffff | (code & 0x2000000? 0xfc000000: 0); | ~~~~~^~~~~~~~~~~ or32dis.cc: In function 'int or1k_asm(const char*, unsigned char*, unsigned int)': or32dis.cc:254:22: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 254 | for ( int i = 0; i < sizeof(dis_tbl) / sizeof(*dis_tbl); i++ ) { | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ or32dis.cc: In function 'or1k_disasm(unsigned int, unsigned char*, int, char const**, char const**)': or32dis.cc:181:47: warning: ', ' directive writing 2 bytes into a region of size between 1 and 30 [-Wformat-overflow=] 181 | else if ( argn == 3 ) sprintf( op, "%s, %s, %s", arg[0], arg[1], arg[2] ); | ^~ In file included from /usr/include/stdio.h:906, from or32dis.cc:2: In function 'sprintf', inlined from 'or1k_disasm(unsigned int, unsigned char*, int, char const**, char const**)' at or32dis.cc:181:31, inlined from 'or1k_disasm(unsigned int, unsigned char*, int, char const**, char const**)' at or32dis.cc:132:5: /usr/include/bits/stdio2.h:30:34: note: '__sprintf_chk' output between 5 and 92 bytes into a destination of size 30 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ or32dis.cc: In function 'or1k_disasm(unsigned int, unsigned char*, int, char const**, char const**)': or32dis.cc:180:47: warning: ', ' directive writing 2 bytes into a region of size between 1 and 30 [-Wformat-overflow=] 180 | else if ( argn == 2 ) sprintf( op, "%s, %s", arg[0], arg[1] ); | ^~ In function 'sprintf', inlined from 'or1k_disasm(unsigned int, unsigned char*, int, char const**, char const**)' at or32dis.cc:180:31, inlined from 'or1k_disasm(unsigned int, unsigned char*, int, char const**, char const**)' at or32dis.cc:132:5: /usr/include/bits/stdio2.h:30:34: note: '__sprintf_chk' output between 3 and 61 bytes into a destination of size 30 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ or32dis.cc: In function 'or1k_asm(char const*, unsigned char*, unsigned int)': or32dis.cc:268:22: warning: 'code' may be used uninitialized [-Wmaybe-uninitialized] 268 | code |= dis_tbl[i].ecmd; | ~~~~~^~~~~~~~~~~~~~~~~~ or32dis.cc:248:16: note: 'code' was declared here 248 | unsigned int code, flags, offs; | ^~~~ g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -std=c++17 -DKEYSTONE -c -o gdbclient.o gdbclient.cc gdbclient.cc: In function 'int gdb_readmem(unsigned char*, int, int)': gdbclient.cc:139:22: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 139 | for ( int i = 1; i < strlen(cmd) - 1; i++ ) | ~~^~~~~~~~~~~~~~~~~ gdbclient.cc: In function 'int gdb_writemem(unsigned char*, int, int)': gdbclient.cc:173:22: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 173 | for ( int i = 1; i < strlen(cmd); i++ ) | ~~^~~~~~~~~~~~~ gdbclient.cc:179:19: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 179 | for ( ; j < sizeof(xbuf) && i + j/2 < count; j += 2 ) { | ~~^~~~~~~~~~~~~~ gdbclient.cc: In function 'int gdb_readmem(unsigned char*, int, int)': gdbclient.cc:144:8: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result] 144 | write( gdb_sk, cmd, strlen(cmd) ); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ gdbclient.cc: In function 'int gdb_getreply(unsigned char*, int)': gdbclient.cc:114:8: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result] 114 | write( gdb_sk, &c, 1 ); | ~~~~~^~~~~~~~~~~~~~~~~ gdbclient.cc: In function 'int gdb_writemem(unsigned char*, int, int)': gdbclient.cc:175:8: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result] 175 | write( gdb_sk, cmd, strlen(cmd) ); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ gdbclient.cc:185:14: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result] 185 | write( gdb_sk, xbuf, j ); | ~~~~~^~~~~~~~~~~~~~~~~~~ gdbclient.cc:190:8: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result] 190 | write( gdb_sk, cmd, strlen(cmd) ); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -std=c++17 -DKEYSTONE disasm.cc c166dis.o or32dis.o gdbclient.o -o disasm -lncursesw -lcapstone -lelf -L. -lkeystone disasm.cc: In function 'void load_hiew_vmm()': disasm.cc:352:36: warning: format '%a' expects argument of type 'float*', but argument 4 has type 'char**' [-Wformat=] 352 | rc = sscanf( buf, " [%04X.%a[^]]] ", &serv_num, &serv_desc ); | ~^ ~~~~~~~~~~ | | | | float* char** disasm.cc: In function 'bool load_pe_objtbl()': disasm.cc:518:18: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 518 | for ( i = 0; i < sizeof hdr; i++ ) { | ~~^~~~~~~~~~~~ disasm.cc:528:24: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 528 | for ( j = 0; j < sizeof(pe_obj_entry); j++ ) { | ~~^~~~~~~~~~~~~~~~~~~~~~ disasm.cc: In function 'void display_sel_list(sel_list_state*)': disasm.cc:596:46: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 596 | for ( int i = 0; i < vsize && lst_offs + i < lst.size(); i++ ) { | ~~~~~~~~~~~~~^~~~~~~~~~~~ disasm.cc:603:19: warning: comparison of integer expressions of different signedness: 'std::vector::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 603 | if ( lst.size() > vsize ) { | ~~~~~~~~~~~^~~~~~~ disasm.cc: In function 'int do_list_selection(WINDOW*, int, int, sel_list_persist*, std::vector&, std::optional >)': disasm.cc:665:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 665 | if ( s.ce < lst.size()-1 ) { | ~~~~~^~~~~~~~~~~~~~ disasm.cc:690:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 690 | if ( last_ent > s.lst.size() - 1 ) last_ent = s.lst.size()-1; | ~~~~~~~~~^~~~~~~~~~~~~~~~~~ disasm.cc:698:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 698 | if ( s.ce > s.lst.size() - 1 ) s.ce = s.lst.size()-1; | ~~~~~^~~~~~~~~~~~~~~~~~ disasm.cc:625:7: warning: unused variable 'i' [-Wunused-variable] 625 | int i, c, rc = -1; | ^ disasm.cc: In function 'int view_le_objtbl()': disasm.cc:811:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 811 | for ( i = 0; i < obj_table.size(); i++ ) { | ~~^~~~~~~~~~~~~~~~~~ disasm.cc:795:10: warning: unused variable 'c' [-Wunused-variable] 795 | int i, c, rc, offs; | ^ disasm.cc: In function 'int view_pe_objtbl()': disasm.cc:861:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 861 | for ( i = 0; i < obj_table.size(); i++ ) { | ~~^~~~~~~~~~~~~~~~~~ disasm.cc:845:10: warning: unused variable 'c' [-Wunused-variable] 845 | int i, c, rc, offs; | ^ disasm.cc:846:18: warning: unused variable 'p' [-Wunused-variable] 846 | unsigned char *p; | ^ disasm.cc: In function 'void sel_list_sort(std::vector&, int, int, int)': disasm.cc:930:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 930 | for ( int i = 0; i < lst.size(); i++ ) | ~~^~~~~~~~~~~~ In file included from disasm.cc:948: view_elf32.cc: In function 'void view_elf32::objtbl_view_dyntab()': view_elf32.cc:53:42: warning: comparison of integer expressions of different signedness: 'int' and 'Elf32_Word' {aka 'unsigned int'} [-Wsign-compare] 53 | for ( int offs = 0; offs < shdr->sh_size; ) { | ~~~~~^~~~~~~~~~~~~~~ view_elf32.cc:67:42: warning: comparison of integer expressions of different signedness: 'int' and 'Elf32_Word' {aka 'unsigned int'} [-Wsign-compare] 67 | for ( int offs = 0; offs < shdr->sh_size; ) { | ~~~~~^~~~~~~~~~~~~~~ view_elf32.cc: In function 'void view_elf32::objtbl_view_verobj()': view_elf32.cc:228:34: warning: comparison of integer expressions of different signedness: 'int' and 'Elf32_Word' {aka 'unsigned int'} [-Wsign-compare] 228 | for ( int offs = 0; offs < shdr->sh_size; ) { | ~~~~~^~~~~~~~~~~~~~~ view_elf32.cc:246:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 246 | for ( int i = 0; i < lst.size(); i++ ) | ~~^~~~~~~~~~~~ view_elf32.cc: In function 'void view_elf32::objtbl_view_verdobj()': view_elf32.cc:351:34: warning: comparison of integer expressions of different signedness: 'int' and 'Elf32_Word' {aka 'unsigned int'} [-Wsign-compare] 351 | for ( int offs = 0; offs < shdr->sh_size; ) { | ~~~~~^~~~~~~~~~~~~~~ view_elf32.cc:375:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 375 | for ( int i = 0; i < lst.size(); i++ ) | ~~^~~~~~~~~~~~ view_elf32.cc: In function 'int view_elf32::view_elf_objtbl()': view_elf32.cc:390:10: warning: unused variable 'c' [-Wunused-variable] 390 | int i, c, rc, offs; | ^ view_elf32.cc:391:18: warning: unused variable 'p' [-Wunused-variable] 391 | unsigned char *p; | ^ view_elf32.cc: In function 'int view_elf32::view_elf_sections()': view_elf32.cc:474:22: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 474 | for ( int i = 0; i < n; i++ ) { | ~~^~~ In file included from disasm.cc:952: view_elf64.cc: In function 'void view_elf64::objtbl_view_dyntab()': view_elf64.cc:53:42: warning: comparison of integer expressions of different signedness: 'int' and 'Elf64_Xword' {aka 'long unsigned int'} [-Wsign-compare] 53 | for ( int offs = 0; offs < shdr->sh_size; ) { | ~~~~~^~~~~~~~~~~~~~~ view_elf64.cc:67:42: warning: comparison of integer expressions of different signedness: 'int' and 'Elf64_Xword' {aka 'long unsigned int'} [-Wsign-compare] 67 | for ( int offs = 0; offs < shdr->sh_size; ) { | ~~~~~^~~~~~~~~~~~~~~ view_elf64.cc: In function 'void view_elf64::objtbl_view_verobj()': view_elf64.cc:228:34: warning: comparison of integer expressions of different signedness: 'int' and 'Elf64_Xword' {aka 'long unsigned int'} [-Wsign-compare] 228 | for ( int offs = 0; offs < shdr->sh_size; ) { | ~~~~~^~~~~~~~~~~~~~~ view_elf64.cc:246:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 246 | for ( int i = 0; i < lst.size(); i++ ) | ~~^~~~~~~~~~~~ view_elf64.cc: In function 'void view_elf64::objtbl_view_verdobj()': view_elf64.cc:351:34: warning: comparison of integer expressions of different signedness: 'int' and 'Elf64_Xword' {aka 'long unsigned int'} [-Wsign-compare] 351 | for ( int offs = 0; offs < shdr->sh_size; ) { | ~~~~~^~~~~~~~~~~~~~~ view_elf64.cc:375:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 375 | for ( int i = 0; i < lst.size(); i++ ) | ~~^~~~~~~~~~~~ view_elf64.cc: In function 'int view_elf64::view_elf_objtbl()': view_elf64.cc:389:10: warning: unused variable 'c' [-Wunused-variable] 389 | int i, c, rc, offs; | ^ view_elf64.cc:390:18: warning: unused variable 'p' [-Wunused-variable] 390 | unsigned char *p; | ^ disasm.cc: In function 'void view_elf_note(Elf32_Phdr*)': disasm.cc:1109:16: warning: comparison of integer expressions of different signedness: 'int' and 'Elf32_Word' {aka 'unsigned int'} [-Wsign-compare] 1109 | while ( offs < phdr->p_filesz ) { | ~~~~~^~~~~~~~~~~~~~~~ disasm.cc: In function 'void do_showtext(int)': disasm.cc:1313:13: warning: unused variable 'rc' [-Wunused-variable] 1313 | int i, j, rc; | ^~ disasm.cc: In function 'void edit_hexcode(int)': disasm.cc:1568:51: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1568 | buf[coffs] = val2 & 0xf | val & 0xf0; | ~~~~~^~~~~ disasm.cc:1572:51: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1572 | buf[coffs] = val2 & 0xf0 | val & 0xf; | ~~~~~^~~~~~ disasm.cc: In function 'void update_bview(edit_disasm_state&)': disasm.cc:1744:30: warning: variable 'y' set but not used [-Wunused-but-set-variable] 1744 | int i, j, offs, val, val2, y, x, sz; | ^ disasm.cc:1745:22: warning: unused variable 'p2' [-Wunused-variable] 1745 | unsigned char *p, *p2; | ^~ disasm.cc: In function 'void edit_disasm(int)': disasm.cc:1893:45: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1893 | st.buf[coffs] = val & 0xf | val2 & 0xf0; | ~~~~^~~~~ disasm.cc:1895:45: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1895 | st.buf[coffs] = val & 0xf0 | val2 & 0xf; | ~~~~^~~~~~ disasm.cc:1795:8: warning: unused variable 'change' [-Wunused-variable] 1795 | bool change; | ^~~~~~ disasm.cc: In function 'void do_disasm(int)': disasm.cc:1960:20: warning: variable 'y' set but not used [-Wunused-but-set-variable] 1960 | int sz, i, j, x, y; | ^ disasm.cc: In function 'bool do_enter_search(int, unsigned char**, int*, bool&)': disasm.cc:2188:7: warning: unused variable 'n' [-Wunused-variable] 2188 | int n, c, done, rc; | ^ disasm.cc: In function 'void hex_loop(int&)': disasm.cc:2475:31: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses] 2475 | offs = (fsize - (LINES-2) * hex_row_bytes & ~(hex_row_bytes - 1)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ disasm.cc: In function 'void interactive_asm(int)': disasm.cc:2827:1: warning: label 'leave_mode' defined but not used [-Wunused-label] 2827 | leave_mode: | ^~~~~~~~~~ disasm.cc: In function 'int main(int, char**)': disasm.cc:2914:1: warning: label 'do_exit' defined but not used [-Wunused-label] 2914 | do_exit: | ^~~~~~~ disasm.cc: In function 'unsigned char* get_data(int)': disasm.cc:325:21: warning: ignoring return value of 'ssize_t read(int, void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result] 325 | read( fd, buf, sizeof buf ); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~ disasm.cc: In function 'int view_le_objtbl()': disasm.cc:814:17: warning: ignoring return value of 'int asprintf(char**, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 814 | asprintf( &sle.str, "%4.4s %08x %08x %08x %08x %08x", | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 815 | obj_table[i].le.name, obj_table[i].le.rel_base, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 816 | obj_table[i].le.vseg_size, obj_table[i].le.pm_index, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 817 | obj_table[i].le.pm_num, obj_table[i].le.flags ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ disasm.cc: In function 'int view_pe_objtbl()': disasm.cc:864:17: warning: ignoring return value of 'int asprintf(char**, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 864 | asprintf( &sle.str, "%-8.8s %08x %08x %08x %08x %08x", | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 865 | obj_table[i].pe.name, obj_table[i].pe.virtual_size, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 866 | obj_table[i].pe.rva, obj_table[i].pe.physical_size, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 867 | obj_table[i].pe.physical_offset, obj_table[i].pe.object_flags ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ view_elf32.cc: In function 'void view_elf32::objtbl_view_dyntab()': view_elf32.cc:116:25: warning: ignoring return value of 'int asprintf(char**, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 116 | asprintf( &sle.str, "%-27.27s %-14.14s %-16.16s", | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 117 | symname[0]? symname: "", ver, file? file: "" ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ view_elf32.cc: In function 'void view_elf32::objtbl_view_vertags(Elf*, int, Elf32_Verneed*)': view_elf32.cc:158:17: warning: ignoring return value of 'int asprintf(char**, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 158 | asprintf( &sle.str, "%08x %08x %04x %04x %08x %-14.14s %08x", | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 159 | (uint32_t)(v_offs - (char*)vn), v->vna_hash, v->vna_flags, v->vna_other, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 160 | v->vna_name, name, v->vna_next ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ view_elf32.cc: In function 'void view_elf32::objtbl_view_verobj()': view_elf32.cc:234:25: warning: ignoring return value of 'int asprintf(char**, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 234 | asprintf( &sle.str, "%08x %04x %04x %08x %-20.20s %08x %08x", | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 235 | offs, vn->vn_version, vn->vn_cnt, vn->vn_file, file, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 236 | vn->vn_aux, vn->vn_next ); | ~~~~~~~~~~~~~~~~~~~~~~~~~ view_elf32.cc: In function 'void view_elf32::objtbl_view_verdtags(Elf*, int, Elf32_Verdef*)': view_elf32.cc:282:17: warning: ignoring return value of 'int asprintf(char**, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 282 | asprintf( &sle.str, "%08x %08x %-14.14s %08x", | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 283 | (uint32_t)(v_offs - (char*)vd), v->vda_name, name, v->vda_next ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ view_elf32.cc: In function 'void view_elf32::objtbl_view_verdobj()': view_elf32.cc:362:25: warning: ignoring return value of 'int asprintf(char**, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 362 | asprintf( &sle.str, "%08x %04x %04x %04x %04x %08x %08x %-14.14s %08x", | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 363 | offs, vd->vd_version, vd->vd_flags, vd->vd_ndx, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 364 | vd->vd_cnt, vd->vd_hash, vd->vd_aux, name? name: "", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 365 | vd->vd_next ); | ~~~~~~~~~~~~~ view_elf32.cc: In function 'int view_elf32::view_elf_objtbl()': view_elf32.cc:429:17: warning: ignoring return value of 'int asprintf(char**, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 429 | asprintf( &sle.str, "%-14.14s %04x %08x %08x %08x %08x %04x %08x", | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 430 | str, (i + 1) & 0xffff, shdr->sh_type, shdr->sh_addr, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 431 | shdr->sh_offset, shdr->sh_size, shdr->sh_link & 0xffff, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 432 | shdr->sh_flags ); | ~~~~~~~~~~~~~~~~ view_elf32.cc: In function 'int view_elf32::view_elf_sections()': view_elf32.cc:490:17: warning: ignoring return value of 'int asprintf(char**, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 490 | asprintf( &sle.str, "%-12.12s %08x %08x %08x %08x %08x %08x %08x", | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 491 | type, phdr->p_offset, phdr->p_vaddr, phdr->p_paddr, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 492 | phdr->p_filesz, phdr->p_memsz, phdr->p_flags, phdr->p_align ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ view_elf64.cc: In function 'void view_elf64::objtbl_view_dyntab()': view_elf64.cc:116:25: warning: ignoring return value of 'int asprintf(char**, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 116 | asprintf( &sle.str, "%-27.27s %-14.14s %-16.16s", | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 117 | symname[0]? symname: "", ver, file? file: "" ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ view_elf64.cc: In function 'void view_elf64::objtbl_view_vertags(Elf*, int, Elf64_Verneed*)': view_elf64.cc:158:17: warning: ignoring return value of 'int asprintf(char**, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 158 | asprintf( &sle.str, "%08x %08x %04x %04x %08x %-14.14s %08x", | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 159 | (uint32_t)(v_offs - (char*)vn), v->vna_hash, v->vna_flags, v->vna_other, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 160 | v->vna_name, name, v->vna_next ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ view_elf64.cc: In function 'void view_elf64::objtbl_view_verobj()': view_elf64.cc:234:25: warning: ignoring return value of 'int asprintf(char**, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 234 | asprintf( &sle.str, "%08x %04x %04x %08x %-20.20s %08x %08x", | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 235 | offs, vn->vn_version, vn->vn_cnt, vn->vn_file, file, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 236 | vn->vn_aux, vn->vn_next ); | ~~~~~~~~~~~~~~~~~~~~~~~~~ view_elf64.cc: In function 'void view_elf64::objtbl_view_verdtags(Elf*, int, Elf64_Verdef*)': view_elf64.cc:282:17: warning: ignoring return value of 'int asprintf(char**, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 282 | asprintf( &sle.str, "%08x %08x %-14.14s %08x", | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 283 | (uint32_t)(v_offs - (char*)vd), v->vda_name, name, v->vda_next ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ view_elf64.cc: In function 'void view_elf64::objtbl_view_verdobj()': view_elf64.cc:362:25: warning: ignoring return value of 'int asprintf(char**, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 362 | asprintf( &sle.str, "%08x %04x %04x %04x %04x %08x %08x %-14.14s %08x", | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 363 | offs, vd->vd_version, vd->vd_flags, vd->vd_ndx, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 364 | vd->vd_cnt, vd->vd_hash, vd->vd_aux, name? name: "", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 365 | vd->vd_next ); | ~~~~~~~~~~~~~ view_elf64.cc: In function 'int view_elf64::view_elf_objtbl()': view_elf64.cc:428:17: warning: ignoring return value of 'int asprintf(char**, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 428 | asprintf( &sle.str, "%-14.14s %04x %08x %08x %08x %08x %04x %08x", | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 429 | str, (i + 1) & 0xffff, shdr->sh_type, (uint32_t)shdr->sh_addr, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 430 | (uint32_t)shdr->sh_offset, (uint32_t)shdr->sh_size, shdr->sh_link & 0xffff, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 431 | (uint32_t)shdr->sh_flags ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ disasm.cc: In function 'void view_elf_prstatus(DisElf32_Nhdr*)': disasm.cc:1072:17: warning: ignoring return value of 'int asprintf(char**, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 1072 | asprintf( &sle.str, " r%-2d %08x ", i, te32(pr->pr_reg.gpr[i]) ); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ disasm.cc:1078:11: warning: ignoring return value of 'int asprintf(char**, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 1078 | asprintf( &sle.str, " pc %08x ", te32(pr->pr_reg.pc) ); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ disasm.cc:1084:11: warning: ignoring return value of 'int asprintf(char**, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 1084 | asprintf( &sle.str, " sr %08x ", te32(pr->pr_reg.sr) ); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ disasm.cc: In function 'void view_elf_note(Elf32_Phdr*)': disasm.cc:1126:17: warning: ignoring return value of 'int asprintf(char**, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 1126 | asprintf( &sle.str, "%-11.11s %-10.10s %08x %08x", | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1127 | elf_note_type( n_type ), name.c_str(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1128 | nhdr.data_offs - phdr->p_offset, n_descsz ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ disasm.cc: In function 'int main(int, char**)': disasm.cc:2859:13: warning: ignoring return value of 'ssize_t read(int, void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result] 2859 | read( fd, buf, sizeof buf ); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~ disasm.cc: In function 'disassemble_capstone(int, char*, int, instr*)': disasm.cc:410:34: warning: '%s' directive writing up to 159 bytes into a region of size between 68 and 91 [-Wformat-overflow=] 410 | sprintf( insn->mnemonic, "%-8s %s", instr[0].mnemonic, instr[0].op_str ); | ^~ In file included from /usr/include/stdio.h:906, from disasm.cc:4: In function 'sprintf', inlined from 'disassemble_capstone(int, char*, int, instr*)' at disasm.cc:410:10: /usr/include/bits/stdio2.h:30:34: note: '__sprintf_chk' output between 10 and 192 bytes into a destination of size 100 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ disasm.cc: In function 'edit_disasm(int)': disasm.cc:1820:35: warning: argument 1 range [18446744071562067968, 18446744073709551615] exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=] 1820 | st.buf = (unsigned char*) malloc( st.bufsz ); | ~~~~~~^~~~~~~~~~~~ In file included from /usr/include/c++/13/cstdlib:79, from /usr/include/c++/13/stdlib.h:36, from disasm.cc:5: /usr/include/stdlib.h:553:14: note: in a call to allocation function 'malloc' declared here 553 | extern void *malloc (size_t __size) __THROW __attribute_malloc__ | ^~~~~~ + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.xvr4MI + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/disasm-0.8.4-1.fc38.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/disasm-0.8.4-1.fc38.x86_64 ++ dirname /builddir/build/BUILDROOT/disasm-0.8.4-1.fc38.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/disasm-0.8.4-1.fc38.x86_64 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd disasm + install -D disasm-0.8.4/disasm /builddir/build/BUILDROOT/disasm-0.8.4-1.fc38.x86_64/usr/bin/disasm + ln -s /usr/bin/disasm /builddir/build/BUILDROOT/disasm-0.8.4-1.fc38.x86_64/usr/bin/diso + ln -s /usr/bin/disasm /builddir/build/BUILDROOT/disasm-0.8.4-1.fc38.x86_64/usr/bin/dis16 + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j2 + /usr/lib/rpm/redhat/brp-python-hardlink Processing files: disasm-0.8.4-1.fc38.x86_64 warning: absolute symlink: /usr/bin/dis16 -> /usr/bin/disasm warning: absolute symlink: /usr/bin/diso -> /usr/bin/disasm Provides: disasm = 0.8.4-1.fc38 disasm(x86-64) = 0.8.4-1.fc38 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.34)(64bit) libc.so.6(GLIBC_2.4)(64bit) libc.so.6(GLIBC_2.7)(64bit) libc.so.6(GLIBC_2.8)(64bit) libcapstone.so.4()(64bit) libelf.so.1()(64bit) libelf.so.1(ELFUTILS_1.0)(64bit) libelf.so.1(ELFUTILS_1.6)(64bit) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libgcc_s.so.1(GCC_3.3.1)(64bit) libkeystone.so.0()(64bit) libm.so.6()(64bit) libncursesw.so.6()(64bit) libstdc++.so.6()(64bit) libstdc++.so.6(CXXABI_1.3)(64bit) libstdc++.so.6(CXXABI_1.3.9)(64bit) libstdc++.so.6(GLIBCXX_3.4)(64bit) libstdc++.so.6(GLIBCXX_3.4.14)(64bit) libstdc++.so.6(GLIBCXX_3.4.15)(64bit) libstdc++.so.6(GLIBCXX_3.4.29)(64bit) libstdc++.so.6(GLIBCXX_3.4.30)(64bit) libtinfo.so.6()(64bit) rtld(GNU_HASH) Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/disasm-0.8.4-1.fc38.x86_64 Wrote: /builddir/build/RPMS/disasm-0.8.4-1.fc38.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.Oi7iGW + umask 022 + cd /builddir/build/BUILD + cd disasm + rm -rf /builddir/build/BUILDROOT/disasm-0.8.4-1.fc38.x86_64 + RPM_EC=0 ++ jobs -p + exit 0 Executing(rmbuild): /bin/sh -e /var/tmp/rpm-tmp.OI3rCt + umask 022 + cd /builddir/build/BUILD + rm -rf disasm disasm.gemspec + RPM_EC=0 ++ jobs -p + exit 0 RPM build warnings: absolute symlink: /usr/bin/dis16 -> /usr/bin/disasm absolute symlink: /usr/bin/diso -> /usr/bin/disasm Child return code was: 0