D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/chntpw-1.0-6.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.M4k2ZZ + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf chntpw-140201 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/chntpw-source-140201.zip + STATUS=0 + '[' 0 -ne 0 ']' + cd chntpw-140201 + rm -rf /home/pterjan/rpmbuild/BUILD/chntpw-140201-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/chntpw-140201-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cp -p /home/pterjan/rpmbuild/SOURCES/chntpw-README.Dist README.Dist + sed -e 's/\r$//' WinReg.txt + touch -c -r WinReg.txt WinReg.txt.eol + mv WinReg.txt.eol WinReg.txt + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/chntpw-140201-debian-port_to_gcrypt.patch + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/chntpw-140201-debian-get_abs_path.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/chntpw-140201-debian-correct_test_open_syscall.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/chntpw-140201-debian-detect_failure_to_write_key.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/chntpw-140201-debian-no_deref_null.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/chntpw-140201-debian-improve_robustness.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.vsxmOP + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd chntpw-140201 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + make CC=gcc 'EXTRA_CFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' chntpw cpnt reged gcc -c -DUSELIBGCRYPT -g -I. -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full chntpw.c chntpw.c: In function 'handle_syskey': chntpw.c:872:31: warning: iteration 11 invokes undefined behavior [-Waggressive-loop-optimizations] 872 | ff->syskeyflags1[i] = 0; | ~~~~~~~~~~~~~~~~~~~~^~~ chntpw.c:871:23: note: within this loop 871 | for (i = 0; i < 0x3b; i++) { | ~~^~~~~~ gcc -c -DUSELIBGCRYPT -g -I. -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ntreg.c ntreg.c: In function 'parse_nk': ntreg.c:546:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] 546 | printf("%04x type = 0x%02x %s\n", D_OFFS(type) ,key->type, | ~~~^ | | | unsigned int | %04lx ntreg.c:548:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] 548 | printf("%04x timestamp skipped\n", D_OFFS(timestamp) ); | ~~~^ | | | unsigned int | %04lx ntreg.c:549:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] 549 | printf("%04x parent key offset = 0x%0x\n", D_OFFS(ofs_parent) ,key->ofs_parent + 0x1000); | ~~~^ | | | unsigned int | %04lx ntreg.c:550:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] 550 | printf("%04x number of subkeys = %d\n", D_OFFS(no_subkeys),key->no_subkeys); | ~~~^ | | | unsigned int | %04lx ntreg.c:551:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] 551 | printf("%04x lf-record offset = 0x%0x\n",D_OFFS(ofs_lf),key->ofs_lf + 0x1000); | ~~~^ | | | unsigned int | %04lx ntreg.c:552:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] 552 | printf("%04x number of values = %d\n", D_OFFS(no_values),key->no_values); | ~~~^ | | | unsigned int | %04lx ntreg.c:553:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] 553 | printf("%04x val-list offset = 0x%0x\n",D_OFFS(ofs_vallist),key->ofs_vallist + 0x1000); | ~~~^ | | | unsigned int | %04lx ntreg.c:554:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] 554 | printf("%04x sk-record offset = 0x%0x\n",D_OFFS(ofs_sk),key->ofs_sk + 0x1000); | ~~~^ | | | unsigned int | %04lx ntreg.c:555:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] 555 | printf("%04x classname offset = 0x%0x\n",D_OFFS(ofs_classnam),key->ofs_classnam + 0x1000); | ~~~^ | | | unsigned int | %04lx ntreg.c:557:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] 557 | printf("%04x dummy3 = 0x%0x (%d)\n",D_OFFS(dummy3),key->dummy3,key->dummy3); | ~~~^ | | | unsigned int | %04lx ntreg.c:558:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] 558 | printf("%04x dummy4 = 0x%0x (%d)\n",D_OFFS(dummy4),key->dummy4,key->dummy4); | ~~~^ | | | unsigned int | %04lx ntreg.c:559:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] 559 | printf("%04x dummy5 = 0x%0x (%d)\n",D_OFFS(dummy5),key->dummy5,key->dummy5); | ~~~^ | | | unsigned int | %04lx ntreg.c:560:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] 560 | printf("%04x dummy6 = 0x%0x (%d)\n",D_OFFS(dummy6),key->dummy6,key->dummy6); | ~~~^ | | | unsigned int | %04lx ntreg.c:561:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] 561 | printf("%04x dummy7 = 0x%0x (%d)\n",D_OFFS(dummy7),key->dummy7,key->dummy7); | ~~~^ | | | unsigned int | %04lx ntreg.c:563:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] 563 | printf("%04x name length = %d\n", D_OFFS(len_name),key->len_name); | ~~~^ | | | unsigned int | %04lx ntreg.c:564:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] 564 | printf("%04x classname length = %d\n", D_OFFS(len_classnam),key->len_classnam); | ~~~^ | | | unsigned int | %04lx ntreg.c:566:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] 566 | printf("%04x Key name: <",D_OFFS(keyname) ); | ~~~^ | | | unsigned int | %04lx ntreg.c: In function 'parse_vk': ntreg.c:584:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] 584 | printf("%04x name length = %d (0x%0x)\n", D_OFFS(len_name), | ~~~^ | | | unsigned int | %04lx ntreg.c:586:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] 586 | printf("%04x length of data = %d (0x%0x)\n", D_OFFS(len_data), | ~~~^ | | | unsigned int | %04lx ntreg.c:588:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] 588 | printf("%04x data offset = 0x%0x\n",D_OFFS(ofs_data),key->ofs_data + 0x1000); | ~~~^ | | | unsigned int | %04lx ntreg.c:589:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] 589 | printf("%04x value type = 0x%0x %s\n", D_OFFS(val_type), key->val_type, | ~~~^ | | | unsigned int | %04lx ntreg.c:592:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] 592 | printf("%04x flag = 0x%0x\n",D_OFFS(flag),key->flag); | ~~~^ | | | unsigned int | %04lx ntreg.c:593:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] 593 | printf("%04x *unused?* = 0x%0x\n",D_OFFS(dummy1),key->dummy1); | ~~~^ | | | unsigned int | %04lx ntreg.c:595:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] 595 | printf("%04x Key name: <",D_OFFS(keyname) ); | ~~~^ | | | unsigned int | %04lx ntreg.c: In function 'parse_sk': ntreg.c:613:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] 613 | printf("%04x *unused?* = %d\n" , D_OFFS(dummy1), key->dummy1 ); | ~~~^ | | | unsigned int | %04lx ntreg.c:614:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] 614 | printf("%04x Offset to prev sk = 0x%0x\n", D_OFFS(ofs_prevsk), key->ofs_prevsk + 0x1000); | ~~~^ | | | unsigned int | %04lx ntreg.c:615:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] 615 | printf("%04x Offset to next sk = 0x%0x\n", D_OFFS(ofs_nextsk), key->ofs_nextsk + 0x1000); | ~~~^ | | | unsigned int | %04lx ntreg.c:616:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] 616 | printf("%04x Usage counter = %d (0x%0x)\n", D_OFFS(no_usage), | ~~~^ | | | unsigned int | %04lx ntreg.c:618:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] 618 | printf("%04x Security data len = %d (0x%0x)\n", D_OFFS(len_sk), | ~~~^ | | | unsigned int | %04lx ntreg.c: In function 'parse_lf': ntreg.c:637:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] 637 | printf("%04x number of keys = %d\n", D_OFFS(no_keys), key->no_keys ); | ~~~^ | | | unsigned int | %04lx ntreg.c:640:16: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] 640 | printf("%04x %3d Offset: 0x%0x - <%c%c%c%c>\n", | ~~~^ | | | unsigned int | %04lx ntreg.c: In function 'parse_lh': ntreg.c:665:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] 665 | printf("%04x number of keys = %d\n", D_OFFS(no_keys), key->no_keys ); | ~~~^ | | | unsigned int | %04lx ntreg.c:668:16: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] 668 | printf("%04x %3d Offset: 0x%0x - \n", | ~~~^ | | | unsigned int | %04lx ntreg.c: In function 'parse_li': ntreg.c:692:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] 692 | printf("%04x number of keys = %d\n", D_OFFS(no_keys), key->no_keys ); | ~~~^ | | | unsigned int | %04lx ntreg.c:695:16: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] 695 | printf("%04x %3d Offset: 0x%0x\n", | ~~~^ | | | unsigned int | %04lx ntreg.c: In function 'parse_ri': ntreg.c:717:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] 717 | printf("%04x number of subindices = %d\n", D_OFFS(no_lis), key->no_lis ); | ~~~^ | | | unsigned int | %04lx ntreg.c:720:16: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] 720 | printf("%04x %3d Offset: 0x%0x\n", | ~~~^ | | | unsigned int | %04lx ntreg.c: In function 'parse_db': ntreg.c:739:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] 739 | printf("%04x number of parts = %d\n", D_OFFS(no_part), key->no_part ); | ~~~^ | | | unsigned int | %04lx ntreg.c:741:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] 741 | printf("%04x Data list at offset: 0x%0x\n", | ~~~^ | | | unsigned int | %04lx ntreg.c: In function 'alloc_val_data': ntreg.c:2155:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 2155 | datablk = vkofs + (int32_t)&(vkkey->ofs_data) - (int32_t)vkkey; | ^ ntreg.c:2155:53: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 2155 | datablk = vkofs + (int32_t)&(vkkey->ofs_data) - (int32_t)vkkey; | ^ ntreg.c: In function 'openHive': ntreg.c:4260:63: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=] 4260 | "file is too small; got %d bytes while expecting %d or more\n", | ~^ | | | int | %ld 4261 | r, sizeof (*hdesc)); | ~~~~~~~~~~~~~~~ | | | long unsigned int ntreg.c: In function 'fmyinput': ntreg.c:233:4: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 233 | fgets(ibuf,maxlen+1,stdin); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ntreg.c: In function 'free_block': ntreg.c:1236:14: warning: 'prev' may be used uninitialized [-Wmaybe-uninitialized] 1236 | prevsz = get_int(hdesc->buffer+prev); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ntreg.c:1176:24: note: 'prev' was declared here 1176 | int pofs,vofs,seglen,prev,next,nextsz,prevsz,size; | ^~~~ ntreg.c: In function 'trav_path': ntreg.c:1734:58: warning: 'adjust' may be used uninitialized [-Wmaybe-uninitialized] 1734 | return(trav_path(hdesc, newnkofs, path+plen+adjust, type)); | ^ ntreg.c:1597:43: note: 'adjust' was declared here 1597 | int newnkofs, plen, i, lfofs, vlistofs, adjust, r, ricnt, subs; | ^~~~~~ ntreg.c: In function 'import_reg': ntreg.c:3946:18: warning: 'valstr' may be used uninitialized [-Wmaybe-uninitialized] 3946 | valstr = realloc(valstr, strlen(valstr) + l + 3); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ntreg.c:3891:11: note: 'valstr' was declared here 3891 | char *valstr, *key, *walstr = NULL; | ^~~~~~ ntreg.c: In function 'openHive': ntreg.c:4356:29: warning: 'p' may be used uninitialized [-Wmaybe-uninitialized] 4356 | hdesc->lastbin = pofs - p->ofs_next; /* Compensate for loop that added at end above */ | ~^~~~~~~~~~ ntreg.c:4185:21: note: 'p' was declared here 4185 | struct hbin_page *p; | ^ gcc -c -DUSELIBGCRYPT -g -I. -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full edlib.c gcc -c -DUSELIBGCRYPT -g -I. -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full libsam.c libsam.c: In function 'sam_put_grp_members_sid': libsam.c:514:28: error: passing argument 1 of 'hexdump' from incompatible pointer type [-Wincompatible-pointer-types] 514 | if (gverbose) hexdump(&c->data, 0, c->len, 1); | ^~~~~~~~ | | | int * In file included from libsam.c:47: ntreg.h:394:20: note: expected 'char *' but argument is of type 'int *' 394 | void hexdump(char *hbuf, int start, int stop, int ascii); | ~~~~~~^~~~ libsam.c:531:56: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'void *' [-Wformat=] 531 | if (gverbose) printf(" copying : %d len %x, at %x\n",i,sarray[i].len, sidptr); | ~^ ~~~~~~ | | | | unsigned int void * | %p libsam.c:542:27: error: passing argument 1 of 'hexdump' from incompatible pointer type [-Wincompatible-pointer-types] 542 | if (gverbose) hexdump(&c->data, 0, c->len, 1); | ^~~~~~~~ | | | int * ntreg.h:394:20: note: expected 'char *' but argument is of type 'int *' 394 | void hexdump(char *hbuf, int start, int stop, int ascii); | ~~~~~~^~~~ make: *** [Makefile:55: libsam.o] Error 1 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.vsxmOP (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.vsxmOP (%build) I: [iurt_root_command] ERROR: chroot