D: [iurt_root_command] chroot warning: %patchN is deprecated (5 usages found), use %patch N (or %patch -P N) Installing /home/pterjan/rpmbuild/SRPMS/mtink-1.0.16-24.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.FvM1sy + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf mtink-1.0.16 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/mtink-1.0.16.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd mtink-1.0.16 + rm -rf /home/pterjan/rpmbuild/BUILD/mtink-1.0.16-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/mtink-1.0.16-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (mtink-1.0.14-ru_font.patch):' Patch #0 (mtink-1.0.14-ru_font.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file mainSrc/resource.c Hunk #1 succeeded at 2815 (offset 6 lines). patching file utils/Mtink.Ru + echo 'Patch #1 (mtink-fhs_fixes.diff):' Patch #1 (mtink-fhs_fixes.diff): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file etc/mtink-cups patching file html/mtink.De.html patching file html/mtinkd.html patching file html/mtinkd.Hu.html patching file html/mtink.html patching file html/mtink.Hu.html patching file html/OLVASS_EL patching file html/README patching file html/ttink.html patching file html/ttink.Hu.html patching file mainSrc/cfg1.c patching file mainSrc/usbHlp.h patching file pyink/pyinkHTTPHandler.py patching file server/mtinkd.c + echo 'Patch #2 (mtink-path_to_printer.desc.diff):' Patch #2 (mtink-path_to_printer.desc.diff): + /usr/bin/patch --no-backup-if-mismatch -f -p0 --fuzz=0 patching file mainSrc/rdPrtDesc.c Hunk #1 succeeded at 432 (offset -3 lines). + echo 'Patch #3 (mtink-1.0.16-link.patch):' Patch #3 (mtink-1.0.16-link.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p0 --fuzz=0 patching file Makefile.ORG + echo 'Patch #4 (mtink-1.0.16-mga-www-browser.patch):' Patch #4 (mtink-1.0.16-mga-www-browser.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file mainSrc/mtink.c + cp /home/pterjan/rpmbuild/SOURCES/mtinkd.init mtinkd.init + cp /home/pterjan/rpmbuild/SOURCES/mtinkd.sysconfig mtinkd.sysconfig + cp /home/pterjan/rpmbuild/SOURCES/printutils.png printutils.png + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.DIrcnE + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd mtink-1.0.16 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + export 'CFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fcommon -fstack-protector-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fcommon -fstack-protector-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export 'CXXFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fcommon -fstack-protector-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fcommon -fstack-protector-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export 'RPM_OPT_FLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fcommon -fstack-protector-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + RPM_OPT_FLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fcommon -fstack-protector-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + perl -p -i -e 's|(/usr/X11R6)/lib\b|\1/lib64|g' Makefile.ORG + perl -p -i -e 's|(/usr)/lib\b|\1/lib64|g' Makefile.ORG + perl -p -i -e 's|(/usr)/lib$|\1/lib64|g' Configure + perl -p -i -e 's|(/usr/)lib()|$1lib64$2|g' checkMotifVersion.sh + perl -pi -e 's|^DBG = .*|DBG = -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fcommon -fstack-protector-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full|g' Makefile.ORG + ./Configure --no-suid --prefix /usr ./checkMotifVersion.sh: line 178: /dev/tty: No such device or address ./checkMotifVersion.sh: line 178: /dev/tty: No such device or address Gimp development package not installed. Plugins will not be compiled Please install the gimp package if you want the gimp plugins. Binary path: /usr/bin The documentation files will be installed under: /usr/mtink + /usr/bin/make -O -j8 V=1 VERBOSE=1 'LDFLAGS= -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags' Compile rw.c mainSrc/rw.c: In function 'readLine': mainSrc/rw.c:51:16: error: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] 51 | if ( strncmp(buf, "Recv:",5) == 0 ) | ^~~~~~~ mainSrc/rw.c:27:1: note: include '' or provide a declaration of 'strncmp' 26 | #include +++ |+#include 27 | mainSrc/rw.c:51:37: warning: 'strncmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 51 | if ( strncmp(buf, "Recv:",5) == 0 ) | ^ : note: built-in 'strncmp' declared here mainSrc/rw.c: In function 'convertBuf': mainSrc/rw.c:80:31: error: implicit declaration of function 'strtol' [-Wimplicit-function-declaration] 80 | buf[i] = (unsigned char)strtol(buffer, &buffer, 16)&0xff; | ^~~~~~ make: *** [Makefile:158: mainSrc/rw.o] Error 1 make: *** Waiting for unfinished jobs.... Compile d4lib.c Compile fsb.c Compile alignbt.c mainSrc/alignbt.c: In function 'createAlignButtons': mainSrc/alignbt.c:172:74: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 172 | XtAddCallback(align_PB[(i*5)+j], XmNactivateCallback, align_CB, (XtPointer) (i*5)+j); | ^ mainSrc/alignbt.c: In function 'align_CB': mainSrc/alignbt.c:265:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 265 | int where = (int)clientData; | ^ mainSrc/alignbt.c: In function 'popupAlignNextWindow': mainSrc/alignbt.c:355:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 355 | align_CB(NULL,(XtPointer)(data->choices/2), NULL); | ^ Compile cfg1.c Compile rdPrtDesc.c mainSrc/rdPrtDesc.c:45:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 45 | #define OFFSET(a) ((int)(&((configData_t*)0)->a)) | ^ mainSrc/rdPrtDesc.c:57:41: note: in expansion of macro 'OFFSET' 57 | { ".name:", A_STR, OFFSET(name) }, | ^~~~~~ mainSrc/rdPrtDesc.c:45:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 45 | #define OFFSET(a) ((int)(&((configData_t*)0)->a)) | ^ mainSrc/rdPrtDesc.c:58:41: note: in expansion of macro 'OFFSET' 58 | { ".colorsNb:", A_NB, OFFSET(colors) }, | ^~~~~~ mainSrc/rdPrtDesc.c:45:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 45 | #define OFFSET(a) ((int)(&((configData_t*)0)->a)) | ^ mainSrc/rdPrtDesc.c:59:41: note: in expansion of macro 'OFFSET' 59 | { ".mainProt:", A_PROT, OFFSET(prot) }, | ^~~~~~ mainSrc/rdPrtDesc.c:45:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 45 | #define OFFSET(a) ((int)(&((configData_t*)0)->a)) | ^ mainSrc/rdPrtDesc.c:60:41: note: in expansion of macro 'OFFSET' 60 | { ".stateFlg:", A_FLAG, OFFSET(state) }, | ^~~~~~ mainSrc/rdPrtDesc.c:45:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 45 | #define OFFSET(a) ((int)(&((configData_t*)0)->a)) | ^ mainSrc/rdPrtDesc.c:61:41: note: in expansion of macro 'OFFSET' 61 | { ".exchangeFlg:", A_FLAG, OFFSET(exchange) }, | ^~~~~~ mainSrc/rdPrtDesc.c:45:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 45 | #define OFFSET(a) ((int)(&((configData_t*)0)->a)) | ^ mainSrc/rdPrtDesc.c:62:41: note: in expansion of macro 'OFFSET' 62 | { ".exchangeSeparateFlg:", A_FLAG, OFFSET(exchangeSeparate) }, | ^~~~~~ mainSrc/rdPrtDesc.c:45:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 45 | #define OFFSET(a) ((int)(&((configData_t*)0)->a)) | ^ mainSrc/rdPrtDesc.c:63:41: note: in expansion of macro 'OFFSET' 63 | { ".cleanSeparateFlg:", A_FLAG, OFFSET(cleanSeparate) }, | ^~~~~~ mainSrc/rdPrtDesc.c:45:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 45 | #define OFFSET(a) ((int)(&((configData_t*)0)->a)) | ^ mainSrc/rdPrtDesc.c:64:41: note: in expansion of macro 'OFFSET' 64 | { ".resetProt:", A_PROT, OFFSET(reset) }, | ^~~~~~ mainSrc/rdPrtDesc.c:45:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 45 | #define OFFSET(a) ((int)(&((configData_t*)0)->a)) | ^ mainSrc/rdPrtDesc.c:65:41: note: in expansion of macro 'OFFSET' 65 | { ".alignProt:", A_PROT, OFFSET(align) }, | ^~~~~~ mainSrc/rdPrtDesc.c:45:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 45 | #define OFFSET(a) ((int)(&((configData_t*)0)->a)) | ^ mainSrc/rdPrtDesc.c:66:41: note: in expansion of macro 'OFFSET' 66 | { ".idFlg:", A_FLAG, OFFSET(id) }, | ^~~~~~ mainSrc/rdPrtDesc.c:45:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 45 | #define OFFSET(a) ((int)(&((configData_t*)0)->a)) | ^ mainSrc/rdPrtDesc.c:67:41: note: in expansion of macro 'OFFSET' 67 | { ".passesNb:", A_NB, OFFSET(passes) }, | ^~~~~~ mainSrc/rdPrtDesc.c:45:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 45 | #define OFFSET(a) ((int)(&((configData_t*)0)->a)) | ^ mainSrc/rdPrtDesc.c:68:41: note: in expansion of macro 'OFFSET' 68 | { ".choicesNb:", A_NB, OFFSET(choices) }, | ^~~~~~ mainSrc/rdPrtDesc.c:45:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 45 | #define OFFSET(a) ((int)(&((configData_t*)0)->a)) | ^ mainSrc/rdPrtDesc.c:69:41: note: in expansion of macro 'OFFSET' 69 | { ".colorPassesNb:", A_NB, OFFSET(color_passes) }, | ^~~~~~ mainSrc/rdPrtDesc.c:45:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 45 | #define OFFSET(a) ((int)(&((configData_t*)0)->a)) | ^ mainSrc/rdPrtDesc.c:70:41: note: in expansion of macro 'OFFSET' 70 | { ".colorChoicesNb:", A_NB, OFFSET(color_choices) }, | ^~~~~~ mainSrc/rdPrtDesc.c:45:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 45 | #define OFFSET(a) ((int)(&((configData_t*)0)->a)) | ^ mainSrc/rdPrtDesc.c:71:41: note: in expansion of macro 'OFFSET' 71 | { ".checkNozzleNeedReset:",A_FLAG, OFFSET(checkNeedReset) }, | ^~~~~~ mainSrc/rdPrtDesc.c:45:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 45 | #define OFFSET(a) ((int)(&((configData_t*)0)->a)) | ^ mainSrc/rdPrtDesc.c:72:41: note: in expansion of macro 'OFFSET' 72 | { ".alignFunctionName:", A_FNAME, OFFSET(alignFunction) }, | ^~~~~~ Compile cfg2.c Compile mtink.c mainSrc/mtink.c: In function 'deleteWindow_CB': mainSrc/mtink.c:477:14: warning: ignoring return value of 'seteuid' declared with attribute 'warn_unused_result' [-Wunused-result] 477 | seteuid(getuid()); | ^~~~~~~~~~~~~~~~~ mainSrc/mtink.c: In function 'help_CB': mainSrc/mtink.c:2917:5: warning: ignoring return value of 'getcwd' declared with attribute 'warn_unused_result' [-Wunused-result] 2917 | getcwd(localDir, sizeof(localDir)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mainSrc/mtink.c: In function 'callBrowser': mainSrc/mtink.c:2871:10: warning: ignoring return value of 'seteuid' declared with attribute 'warn_unused_result' [-Wunused-result] 2871 | seteuid(getuid()); | ^~~~~~~~~~~~~~~~~ mainSrc/mtink.c:2872:10: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 2872 | system(command); | ^~~~~~~~~~~~~~~ mainSrc/mtink.c: In function 'help_CB': mainSrc/mtink.c:2925:24: warning: '/mtink.' directive writing 7 bytes into a region of size between 1 and 1024 [-Wformat-overflow=] 2925 | sprintf(file,"%s/mtink.%s.html", dir[0],guiLanguage ); | ^~~~~~~ In file included from /usr/include/stdio.h:980, from mainSrc/mtink.c:24: In function 'sprintf', inlined from 'help_CB' at mainSrc/mtink.c:2925:8: /usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 13 and 1045 bytes into a destination of size 1024 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ mainSrc/mtink.c: In function 'help_CB': mainSrc/mtink.c:2933:27: warning: '/mtink.html' directive writing 11 bytes into a region of size between 1 and 1024 [-Wformat-overflow=] 2933 | sprintf(file,"%s/mtink.html", dir[0]); | ^~~~~~~~~~~ In function 'sprintf', inlined from 'help_CB' at mainSrc/mtink.c:2933:11: /usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 12 and 1035 bytes into a destination of size 1024 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.DIrcnE (%build) RPM build warnings: %patchN is deprecated (5 usages found), use %patch N (or %patch -P N) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.DIrcnE (%build) I: [iurt_root_command] ERROR: chroot