D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/imspector-0.9-29.mga7.src.rpm Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.fdtUxF + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf imspector + /usr/bin/gzip -dc /home/pterjan/rpmbuild/SOURCES/imspector-20101229.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd imspector + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (imspector-make.patch):' Patch #0 (imspector-make.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .make --fuzz=0 patching file Makefile + echo 'Patch #1 (imspector-main.patch):' Patch #1 (imspector-main.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .notusr --fuzz=0 patching file main.cpp + echo 'Patch #2 (imspector-conf.patch):' Patch #2 (imspector-conf.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .config --fuzz=0 patching file imspector.conf + echo 'Patch #3 (multiple-lines.patch):' Patch #3 (multiple-lines.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .multiple_lines_at_config --fuzz=0 patching file aclfilterplugin.cpp Hunk #1 succeeded at 150 (offset 1 line). Hunk #2 succeeded at 176 (offset 1 line). + echo 'Patch #4 (imspector-0.9-openssl-1.0.patch):' Patch #4 (imspector-0.9-openssl-1.0.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .ssl --fuzz=0 patching file sslstate.cpp Hunk #1 succeeded at 51 (offset 23 lines). + echo 'Patch #5 (imspector-0.9-link.patch):' Patch #5 (imspector-0.9-link.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .link --fuzz=0 patching file Makefile + cat imspector.conf + sed -r 's|/usr/lib|/usr/lib64|' + rm -f imspector.conf + mv imspector.conf.1 imspector.conf + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.TJX2JH + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd imspector + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + echo 'warning: %make is deprecated, try %make_build instead' warning: %make is deprecated, try %make_build instead + /usr/bin/make -O -j8 'CXX=g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags' g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -Wall -O2 -fPIC -I/usr/include -DHAVE_SSL protocolplugin.cpp -c g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -Wall -O2 -fPIC -I/usr/include -DHAVE_SSL loggingplugin.cpp -c g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -Wall -O2 -fPIC -I/usr/include -DHAVE_SSL responderplugin.cpp -c g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -Wall -O2 -fPIC -I/usr/include -DHAVE_SSL filterplugin.cpp -c g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -Wall -O2 -fPIC -I/usr/include -DHAVE_SSL socket.cpp -c socket.cpp: In member function 'std::__cxx11::string Socket::getpeercommonname()': socket.cpp:454:77: warning: 'unsigned char* ASN1_STRING_data(ASN1_STRING*)' is deprecated [-Wdeprecated-declarations] char *commonname = (char *)ASN1_STRING_data(X509_NAME_ENTRY_get_data(entry)); ^ In file included from /usr/include/multiarch-dispatch.h:72:0, from /usr/include/openssl/opensslconf.h:2, from /usr/include/openssl/bn.h:31, from /usr/include/openssl/asn1.h:24, from /usr/include/openssl/objects.h:916, from /usr/include/openssl/evp.h:27, from /usr/include/openssl/x509.h:23, from /usr/include/openssl/ssl.h:50, from imspector.h:50, from socket.cpp:19: /usr/include/openssl/asn1.h:553:1: note: declared here DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x)) ^ g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -Wall -O2 -fPIC -I/usr/include -DHAVE_SSL sslstate.cpp -c g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -Wall -O2 -fPIC -I/usr/include -DHAVE_SSL options.cpp -c g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -Wall -O2 -fPIC -I/usr/include -DHAVE_SSL icqprotocolplugin.cpp -c icqprotocolplugin.cpp: In function 'int loginpacket(char**, char*, int, bool, bool, std::__cxx11::string&)': icqprotocolplugin.cpp:234:2: error: narrowing conversion of '243' from 'int' to 'char' inside { } [-Wnarrowing] }; ^ icqprotocolplugin.cpp:234:2: error: narrowing conversion of '129' from 'int' to 'char' inside { } [-Wnarrowing] icqprotocolplugin.cpp:234:2: error: narrowing conversion of '196' from 'int' to 'char' inside { } [-Wnarrowing] icqprotocolplugin.cpp:234:2: error: narrowing conversion of '134' from 'int' to 'char' inside { } [-Wnarrowing] icqprotocolplugin.cpp:234:2: error: narrowing conversion of '219' from 'int' to 'char' inside { } [-Wnarrowing] icqprotocolplugin.cpp:234:2: error: narrowing conversion of '146' from 'int' to 'char' inside { } [-Wnarrowing] icqprotocolplugin.cpp:234:2: error: narrowing conversion of '163' from 'int' to 'char' inside { } [-Wnarrowing] icqprotocolplugin.cpp:234:2: error: narrowing conversion of '185' from 'int' to 'char' inside { } [-Wnarrowing] icqprotocolplugin.cpp:234:2: error: narrowing conversion of '230' from 'int' to 'char' inside { } [-Wnarrowing] icqprotocolplugin.cpp:234:2: error: narrowing conversion of '149' from 'int' to 'char' inside { } [-Wnarrowing] icqprotocolplugin.cpp: In function 'int snacpacket(char**, char*, int, bool, std::vector&, std::__cxx11::string&)': icqprotocolplugin.cpp:514:8: error: narrowing conversion of '209' from 'int' to 'char' inside { } [-Wnarrowing] }; ^ icqprotocolplugin.cpp:514:8: error: narrowing conversion of '130' from 'int' to 'char' inside { } [-Wnarrowing] icqprotocolplugin.cpp: In function 'int loginpacket(char**, char*, int, bool, bool, std::__cxx11::string&)': icqprotocolplugin.cpp:265:11: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result [-Wunused-result] write(fd, cookie, mylength); ~~~~~^~~~~~~~~~~~~~~~~~~~~~ icqprotocolplugin.cpp: In function 'int servercookiepacket(char**, char*, int, bool, std::__cxx11::string&)': icqprotocolplugin.cpp:328:11: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result [-Wunused-result] write(fd, cookie, mylength); ~~~~~^~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:121: icqprotocolplugin.o] Error 1 make: *** Waiting for unfinished jobs.... g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -Wall -O2 -fPIC -I/usr/include -DHAVE_SSL tools.cpp -c tools.cpp: In function 'void tracepacket(const char*, int, char*, int)': tools.cpp:247:8: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result [-Wunused-result] write(fd, buffer, bufferlength); ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -Wall -O2 -fPIC -I/usr/include -DHAVE_SSL ggprotocolplugin.cpp -c g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -Wall -O2 -fPIC -I/usr/include -DHAVE_SSL ircprotocolplugin.cpp -c ircprotocolplugin.cpp: In function 'int processpacket(bool, Socket&, char*, int*, std::vector&, std::__cxx11::string&)': ircprotocolplugin.cpp:70:8: warning: variable 's' set but not used [-Wunused-but-set-variable] char *s; ^ g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -Wall -O2 -fPIC -I/usr/include -DHAVE_SSL main.cpp -c main.cpp: In function 'bool doproxy(Options&, bool, Socket&, std::__cxx11::string&, SSLState&, bool)': main.cpp:572:9: warning: variable 's' set but not used [-Wunused-but-set-variable] char *s; ^ g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -Wall -O2 -fPIC -I/usr/include -DHAVE_SSL msnprotocolplugin.cpp -c msnprotocolplugin.cpp: In function 'int processpacket(bool, Socket&, char*, int*, std::vector&, std::__cxx11::string&)': msnprotocolplugin.cpp:120:8: warning: variable 's' set but not used [-Wunused-but-set-variable] char *s; ^ msnprotocolplugin.cpp: In function 'int generatemessagepacket(response&, char*, int*)': msnprotocolplugin.cpp:265:38: warning: format '%d' expects argument of type 'int', but argument 4 has type 'std::__cxx11::basic_string::size_type {aka long unsigned int}' [-Wformat=] "%s", body.length(), body.c_str()); ~~~~~~~~~~~~~ ^ msnprotocolplugin.cpp:271:74: warning: format '%d' expects argument of type 'int', but argument 6 has type 'std::__cxx11::basic_string::size_type {aka long unsigned int}' [-Wformat=] "%s", remoteid.c_str(), remoteid.c_str(), body.length(), body.c_str()); ~~~~~~~~~~~~~ ^ msnprotocolplugin.cpp:300:37: warning: format '%d' expects argument of type 'int', but argument 4 has type 'std::__cxx11::basic_string::size_type {aka long unsigned int}' [-Wformat=] "%s", body.length(), body.c_str()); ~~~~~~~~~~~~~ ^ g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -Wall -O2 -fPIC -I/usr/include -DHAVE_SSL jabberprotocolplugin.cpp -c jabberprotocolplugin.cpp: In function 'int recvuntil(Socket&, char*, int, char)': jabberprotocolplugin.cpp:349:60: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses] if (!(receved = sock.recvdata(&string[totalreceved], 1)) > 0) return -1; ^ jabberprotocolplugin.cpp:349:7: note: add parentheses around left hand side expression to silence this warning if (!(receved = sock.recvdata(&string[totalreceved], 1)) > 0) return -1; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ( ) g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -Wall -O2 -fPIC -I/usr/include -DHAVE_SSL yahooprotocolplugin.cpp -c yahooprotocolplugin.cpp: In function 'int generatemessagepacket(response&, char*, int*)': yahooprotocolplugin.cpp:382:98: warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t {aka long unsigned int}' [-Wformat=] snprintf(contentlengthbuffer, BUFFER_SIZE - 1, "content-length: %d\r\n\r\n", strlen(xmlbuffer)); ~~~~~~~~~~~~~~~~~^ yahooprotocolplugin.cpp: In function 'int recvuntil(Socket&, char*, int, char)': yahooprotocolplugin.cpp:488:60: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses] if (!(receved = sock.recvdata(&string[totalreceved], 1)) > 0) return -1; ^ yahooprotocolplugin.cpp:488:7: note: add parentheses around left hand side expression to silence this warning if (!(receved = sock.recvdata(&string[totalreceved], 1)) > 0) return -1; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ( ) error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.TJX2JH (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.TJX2JH (%build) I: [iurt_root_command] ERROR: chroot