D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/telegram-cli-1.0.2-0.20140908git8c2069.5.mga7.src.rpm Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.ujUxc6 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf tg-8c2069528446b5a23079a72db74897bfaba8ed33 + /usr/bin/unzip -qq /home/pterjan/rpmbuild/SOURCES/tg-8c2069528446b5a23079a72db74897bfaba8ed33.zip + STATUS=0 + '[' 0 -ne 0 ']' + cd tg-8c2069528446b5a23079a72db74897bfaba8ed33 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (telegram-cli-compilerflags.patch):' Patch #0 (telegram-cli-compilerflags.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 --fuzz=0 patching file configure Hunk #1 succeeded at 3326 (offset 154 lines). + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.mlNF01 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd tg-8c2069528446b5a23079a72db74897bfaba8ed33 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4' + export FFLAGS + LDFLAGS=' -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags' + export LDFLAGS + CONFIGURE_TOP=. + /usr/lib/rpm/mageia/force-as-needed-for-shared-lib-in-libtool Forcing -Wl,--as-needed in configure/libtool to workaround libtool bug (cf http://lists.gnu.org/archive/html/libtool-patches/2004-06/msg00002.html) + /usr/lib/rpm/mageia/drop-ld-no-undefined-for-shared-lib-modules-in-libtool + /usr/lib/rpm/mageia/fix-libtool-ltmain-from-overlinking + /usr/lib/rpm/mageia/fix-libtool-from-moving-options-after-libs . + /usr/lib/rpm/mageia/fix-dlsearch-path-in-libtool-for-multilib . lib64 + cd . + '[' '!' -f configure.in -a '!' -f configure.ac ']' + libtoolize --copy --force libtoolize: putting auxiliary files in '.'. libtoolize: copying file './ltmain.sh' libtoolize: You should add the contents of the following files to 'aclocal.m4': libtoolize: '/usr/share/aclocal/libtool.m4' libtoolize: '/usr/share/aclocal/ltoptions.m4' libtoolize: '/usr/share/aclocal/ltsugar.m4' libtoolize: '/usr/share/aclocal/ltversion.m4' libtoolize: '/usr/share/aclocal/lt~obsolete.m4' libtoolize: Remember to add 'LT_INIT' to configure.ac. libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac, libtoolize: and rerunning libtoolize and aclocal. libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am. + '[' -f ./configure.in -o -f ./configure.ac ']' + CONFIGURE_XPATH='--x-includes=/usr/include --x-libraries=/usr/lib64' + ./configure x86_64-mageia-linux-gnu --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --x-includes=/usr/include --x-libraries=/usr/lib64 --enable-libconfig --enable-liblua configure: WARNING: you should use --build, --host, --target checking for x86_64-mageia-linux-gnu-gcc... x86_64-mageia-linux-gnu-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether x86_64-mageia-linux-gnu-gcc accepts -g... yes checking for x86_64-mageia-linux-gnu-gcc option to accept ISO C89... none needed checking for sqrt in -lm... yes checking for library containing clock_gettime... none required checking for library containing backtrace... none required checking for event_base_new in -levent... yes checking how to run the C preprocessor... x86_64-mageia-linux-gnu-gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking event2/event.h usability... yes checking event2/event.h presence... yes checking for event2/event.h... yes checking for pkg-config... /usr/bin/pkg-config checking whether compiling and linking against OpenSSL works... yes checking if zlib is wanted... yes checking for inflateEnd in -lz... yes checking zlib.h usability... yes checking zlib.h presence... yes checking for zlib.h... yes checking for rl_save_prompt in -lreadline... yes checking for libconfig... enabled checking for config_init in -lconfig... yes checking for liblua... enabled checking for lua... /usr/bin/lua checking if /usr/bin/lua is a Lua interpreter... yes checking for lua version... 5.2 checking for lua platform... unknown checking for lua script directory... ${prefix}/share/lua/5.2 checking for lua module directory... ${exec_prefix}/lib/lua/5.2 checking if LUA_VERSION is defined... yes checking lua.h usability... yes checking lua.h presence... yes checking for lua.h... yes checking lualib.h usability... yes checking lualib.h presence... yes checking for lualib.h... yes checking lauxlib.h usability... yes checking lauxlib.h presence... yes checking for lauxlib.h... yes checking luaconf.h usability... yes checking luaconf.h presence... yes checking for luaconf.h... yes checking for Lua header version... 5.2 checking if Lua header version matches 5.2... yes checking if LUA_VERSION is defined... yes checking for library containing exp... none required checking for library containing dlopen... -ldl checking for library containing lua_load... -llua default checking execinfo.h usability... yes checking execinfo.h presence... yes checking for execinfo.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking malloc.h usability... yes checking malloc.h presence... yes checking for malloc.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for unistd.h... (cached) yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking mach/mach.h usability... no checking mach/mach.h presence... no checking for mach/mach.h... no checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking sys/file.h usability... yes checking sys/file.h presence... yes checking for sys/file.h... yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking termios.h usability... yes checking termios.h presence... yes checking for termios.h... yes checking for size_t... yes checking for uid_t in sys/types.h... yes checking for inline... inline checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible realloc... yes checking for alarm... yes checking for endpwent... yes checking for memset... yes checking for memmove... yes checking for mkdir... yes checking for select... yes checking for socket... yes checking for strdup... yes checking for strndup... yes checking for uname... yes configure: creating ./config.status config.status: creating Makefile config.status: creating config.h + echo 'warning: %make is deprecated, try %make_build instead' warning: %make is deprecated, try %make_build instead + /usr/bin/make -O -j8 cat scheme.tl encrypted_scheme.tl binlog.tl append.tl > auto/scheme.tl x86_64-mageia-linux-gnu-gcc -I. -I. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -I/usr/include -I/usr/include -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -c -MP -MD -MF ./dep/tlc.d -MQ ./objs/tlc.o -o objs/tlc.o tlc.c x86_64-mageia-linux-gnu-gcc -I. -I. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -I/usr/include -I/usr/include -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -c -MP -MD -MF ./dep/tools.d -MQ ./objs/tools.o -o objs/tools.o tools.c x86_64-mageia-linux-gnu-gcc -I. -I. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -I/usr/include -I/usr/include -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -c -MP -MD -MF ./dep/crc32.d -MQ ./objs/crc32.o -o objs/crc32.o crc32.c x86_64-mageia-linux-gnu-gcc -I. -I. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -I/usr/include -I/usr/include -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -c -MP -MD -MF ./dep/generate.d -MQ ./objs/generate.o -o objs/generate.o generate.c x86_64-mageia-linux-gnu-gcc ./objs/generate.o ./objs/tools.o -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -L/usr/lib -L/usr/lib -rdynamic -ggdb -levent -lconfig -lz -levent -lm -lreadline -llua -ldl -lssl -lcrypto -o bin/generate /usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm /usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm /usr/bin/ld: skipping incompatible /usr/lib/libdl.so when searching for -ldl /usr/bin/ld: skipping incompatible /usr/lib/libdl.so when searching for -ldl /usr/bin/ld: skipping incompatible /usr/lib/libgcc_s.so when searching for -lgcc_s /usr/bin/ld: skipping incompatible /usr/lib/libgcc_s.so when searching for -lgcc_s /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc /usr/bin/ld: skipping incompatible /usr/lib/libgcc_s.so when searching for -lgcc_s /usr/bin/ld: skipping incompatible /usr/lib/libgcc_s.so when searching for -lgcc_s x86_64-mageia-linux-gnu-gcc -I. -I. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -I/usr/include -I/usr/include -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -c -MP -MD -MF ./dep/tl-parser.d -MQ ./objs/tl-parser.o -o objs/tl-parser.o tl-parser.c x86_64-mageia-linux-gnu-gcc ./objs/tlc.o ./objs/tl-parser.o ./objs/crc32.o ./objs/tools.o -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -L/usr/lib -L/usr/lib -rdynamic -ggdb -levent -lconfig -lz -levent -lm -lreadline -llua -ldl -lssl -lcrypto -o bin/tlc /usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm /usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm /usr/bin/ld: skipping incompatible /usr/lib/libdl.so when searching for -ldl /usr/bin/ld: skipping incompatible /usr/lib/libdl.so when searching for -ldl /usr/bin/ld: skipping incompatible /usr/lib/libgcc_s.so when searching for -lgcc_s /usr/bin/ld: skipping incompatible /usr/lib/libgcc_s.so when searching for -lgcc_s /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc /usr/bin/ld: skipping incompatible /usr/lib/libgcc_s.so when searching for -lgcc_s /usr/bin/ld: skipping incompatible /usr/lib/libgcc_s.so when searching for -lgcc_s ./bin/tlc -E ./auto/scheme.tl 2> auto/scheme2.tl || ( cat auto/scheme2.tl && rm auto/scheme2.tl && false ) ./bin/tlc -e auto/scheme.tlo ./auto/scheme.tl awk -f ./gen_constants_h.awk < auto/scheme2.tl > auto/constants.h ./bin/generate -H ./auto/scheme.tlo > auto/auto-header.h ./bin/generate ./auto/scheme.tlo > auto/auto.c x86_64-mageia-linux-gnu-gcc -I. -I. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -I/usr/include -I/usr/include -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -c -MP -MD -MF ./dep/tgl.d -MQ ./objs/tgl.o -o objs/tgl.o tgl.c x86_64-mageia-linux-gnu-gcc -I. -I. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -I/usr/include -I/usr/include -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -c -MP -MD -MF ./dep/mtproto-common.d -MQ ./objs/mtproto-common.o -o objs/mtproto-common.o mtproto-common.c In file included from tools.h:24:0, from mtproto-common.h:32, from mtproto-common.c:42: mtproto-common.c: In function 'tgl_do_compute_rsa_key_fingerprint': mtproto-common.c:182:14: error: dereferencing pointer to incomplete type 'RSA {aka struct rsa_st}' assert (key->n && key->e); ^ mtproto-common.c: In function 'tgl_pad_rsa_encrypt': mtproto-common.c:262:10: error: storage size of 'x' isn't known BIGNUM x, y; ^ mtproto-common.c:262:13: error: storage size of 'y' isn't known BIGNUM x, y; ^ mtproto-common.c:263:3: error: implicit declaration of function 'BN_init' [-Werror=implicit-function-declaration] BN_init (&x); ^ mtproto-common.c:262:13: error: unused variable 'y' [-Werror=unused-variable] BIGNUM x, y; ^ mtproto-common.c:262:10: error: unused variable 'x' [-Werror=unused-variable] BIGNUM x, y; ^ mtproto-common.c: In function 'tgl_pad_rsa_decrypt': mtproto-common.c:289:10: error: storage size of 'x' isn't known BIGNUM x, y; ^ mtproto-common.c:289:13: error: storage size of 'y' isn't known BIGNUM x, y; ^ mtproto-common.c:289:13: error: unused variable 'y' [-Werror=unused-variable] mtproto-common.c:289:10: error: unused variable 'x' [-Werror=unused-variable] BIGNUM x, y; ^ cc1: all warnings being treated as errors Makefile:56: recipe for target 'objs/mtproto-common.o' failed make: *** [objs/mtproto-common.o] Error 1 make: *** Waiting for unfinished jobs.... x86_64-mageia-linux-gnu-gcc -I. -I. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -I/usr/include -I/usr/include -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -c -MP -MD -MF ./dep/mtproto-client.d -MQ ./objs/mtproto-client.o -o objs/mtproto-client.o mtproto-client.c mtproto-client.c: In function 'encrypt_packet_buffer': mtproto-client.c:177:145: error: dereferencing pointer to incomplete type 'RSA {aka struct rsa_st}' return tgl_pad_rsa_encrypt ((char *) packet_buffer, (packet_ptr - packet_buffer) * 4, (char *) encrypt_buffer, ENCRYPT_BUFFER_INTS * 4, pubKey->n, pubKey->e); ^ mtproto-client.c: In function 'tglmp_check_DH_params': mtproto-client.c:451:10: error: storage size of 't' isn't known BIGNUM t; ^ mtproto-client.c:452:3: error: implicit declaration of function 'BN_init' [-Werror=implicit-function-declaration] BN_init (&t); ^ mtproto-client.c:485:10: error: storage size of 'b' isn't known BIGNUM b; ^ mtproto-client.c:485:10: error: unused variable 'b' [-Werror=unused-variable] mtproto-client.c:451:10: error: unused variable 't' [-Werror=unused-variable] BIGNUM t; ^ mtproto-client.c: In function 'encrypt_packet_buffer': mtproto-client.c:178:1: error: control reaches end of non-void function [-Werror=return-type] } ^ cc1: all warnings being treated as errors Makefile:56: recipe for target 'objs/mtproto-client.o' failed make: *** [objs/mtproto-client.o] Error 1 x86_64-mageia-linux-gnu-gcc -I. -I. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -I/usr/include -I/usr/include -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -c -MP -MD -MF ./dep/net.d -MQ ./objs/net.o -o objs/net.o net.c x86_64-mageia-linux-gnu-gcc -I. -I. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -I/usr/include -I/usr/include -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -c -MP -MD -MF ./dep/updates.d -MQ ./objs/updates.o -o objs/updates.o updates.c x86_64-mageia-linux-gnu-gcc -I. -I. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -I/usr/include -I/usr/include -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -c -MP -MD -MF ./dep/binlog.d -MQ ./objs/binlog.o -o objs/binlog.o binlog.c x86_64-mageia-linux-gnu-gcc -I. -I. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -I/usr/include -I/usr/include -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -c -MP -MD -MF ./dep/queries.d -MQ ./objs/queries.o -o objs/queries.o queries.c x86_64-mageia-linux-gnu-gcc -I. -I. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -I/usr/include -I/usr/include -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -c -MP -MD -MF ./dep/structures.d -MQ ./objs/structures.o -o objs/structures.o structures.c x86_64-mageia-linux-gnu-gcc -I. -I. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -I/usr/include -I/usr/include -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -c -MP -MD -MF ./dep/auto/auto.d -MQ ./objs/auto/auto.o -o objs/auto/auto.o auto/auto.c error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.mlNF01 (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.mlNF01 (%build) I: [iurt_root_command] ERROR: chroot