D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/cw-1.0.16-9.mga8.src.rpm Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.ScApOB + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf cw-1.0.16 + /usr/bin/bzip2 -dc /home/pterjan/rpmbuild/SOURCES/cw-1.0.16.tar.bz2 + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd cw-1.0.16 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /home/pterjan/rpmbuild/SOURCES/cw-1.0.16-cflags.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /home/pterjan/rpmbuild/SOURCES/cw-1.0.16-format.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/perl -pi -e 's/ -o 0 -g 0//g' Makefile.in + /usr/bin/perl -pi -e 's|/usr/local/lib|/usr/share|g' README + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.BkeMLC + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd cw-1.0.16 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + autoreconf -fi aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + 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 + '[' -f ./configure.in -o -f ./configure.ac ']' + CONFIGURE_XPATH='--x-includes=/usr/include --x-libraries=/usr/lib64' + ./configure --build=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 checking for gcc... 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 gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for a BSD-compatible install... /usr/bin/install -c checking whether make sets $(MAKE)... yes checking for -pedantic (gcc) compiler flag... yes checking for -Wall (gcc) compiler flag... yes checking for openpty in -lutil... yes checking for "/dev/ptmx"... yes checking for getpt... yes checking for isatty... yes checking for isxdigit... yes checking for openpty... yes checking for putenv... yes checking for regcomp... yes checking for setenv... yes checking for setproctitle... no checking for setsid... yes checking for sigaction... yes checking for sscanf... yes checking for uname... yes checking for unsetenv... yes checking for vsnprintf... yes checking for waitpid... yes checking how to run the C preprocessor... 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 ctype.h usability... yes checking ctype.h presence... yes checking for ctype.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking libgen.h usability... yes checking libgen.h presence... yes checking for libgen.h... yes checking libutil.h usability... no checking libutil.h presence... no checking for libutil.h... no checking pty.h usability... yes checking pty.h presence... yes checking for pty.h... yes checking regex.h usability... yes checking regex.h presence... yes checking for regex.h... yes checking signal.h usability... yes checking signal.h presence... yes checking for signal.h... yes checking for string.h... (cached) yes checking for strings.h... (cached) yes checking stropts.h usability... no checking stropts.h presence... no checking for stropts.h... no checking unix.h usability... no checking unix.h presence... no checking for unix.h... no checking util.h usability... no checking util.h presence... no checking for util.h... no checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking for sys/stat.h... (cached) yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for sys/types.h... (cached) yes checking sys/utsname.h usability... yes checking sys/utsname.h presence... yes checking for sys/utsname.h... yes checking sys/wait.h usability... yes checking sys/wait.h presence... yes checking for sys/wait.h... yes configure: creating ./config.status config.status: creating Makefile config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting 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 LIBDIR=/usr/share * Type "make local" to just compile local binaries. * Type "make installlocal" to compile/install in your home directory. * Type "make install" to compile/install globally. + exit 0 Executing(%install): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.dt9z4D + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' /home/pterjan/rpmbuild/BUILDROOT/cw-1.0.16-9.mga8.x86_64 '!=' / ']' + rm -rf /home/pterjan/rpmbuild/BUILDROOT/cw-1.0.16-9.mga8.x86_64 ++ dirname /home/pterjan/rpmbuild/BUILDROOT/cw-1.0.16-9.mga8.x86_64 + mkdir -p /home/pterjan/rpmbuild/BUILDROOT + mkdir /home/pterjan/rpmbuild/BUILDROOT/cw-1.0.16-9.mga8.x86_64 + cd cw-1.0.16 + '[' 1 -eq 1 ']' + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILDROOT/cw-1.0.16-9.mga8.x86_64/usr/bin + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILDROOT/cw-1.0.16-9.mga8.x86_64/usr/share + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILDROOT/cw-1.0.16-9.mga8.x86_64/usr/share/man/man1 + echo 'warning: %make is deprecated, try %make_build instead' warning: %make is deprecated, try %make_build instead + /usr/bin/make -O -j8 install PREFIX=/home/pterjan/rpmbuild/BUILDROOT/cw-1.0.16-9.mga8.x86_64/usr LIBDIR=/home/pterjan/rpmbuild/BUILDROOT/cw-1.0.16-9.mga8.x86_64/usr/share MANDIR=/home/pterjan/rpmbuild/BUILDROOT/cw-1.0.16-9.mga8.x86_64/usr/share/man * Cleaning cw and cwu binaries, and definitions... * Compiling cwu(color wrapper directive updater)... src/cwu.c: In function 'modify_directive': src/cwu.c:117:2: warning: 'fsw' may be used uninitialized in this function [-Wmaybe-uninitialized] fclose(fsw); ^~~~~~~~~~~ * Compiling cw(color wrapper)... src/cw.c: In function 'make_ptypair': src/cw.c:1164:5: warning: implicit declaration of function 'grantpt'; did you mean 'getpt'? [-Wimplicit-function-declaration] if(grantpt(master)<0||unlockpt(master)<0){ ^~~~~~~ getpt src/cw.c:1164:24: warning: implicit declaration of function 'unlockpt'; did you mean 'unlinkat'? [-Wimplicit-function-declaration] if(grantpt(master)<0||unlockpt(master)<0){ ^~~~~~~~ unlinkat src/cw.c:1168:12: warning: implicit declaration of function 'ptsname'; did you mean 'ttyname'? [-Wimplicit-function-declaration] if(!(name=ptsname(master))){ ^~~~~~~ ttyname src/cw.c:1168:11: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] if(!(name=ptsname(master))){ ^ src/cw.c:1176:5: warning: implicit declaration of function 'isastream'; did you mean 'system'? [-Wimplicit-function-declaration] if(isastream(slave)){ ^~~~~~~~~ system src/cw.c: In function 'cwprintf': src/cw.c:1281:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] &&(p=(unsigned int)strchr(str+i+4,']'))){ ^ src/cw.c:1282:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] p-=((unsigned int)str+i+3); ^ src/cw.c: In function 'is_cwfile': src/cw.c:1334:2: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets(buf,BUFSIZE,fs); ^~~~~~~~~~~~~~~~~~~~~ /usr/bin/ld: /tmp/cchU9S1K.o: in function `make_ptypair': /home/pterjan/rpmbuild/BUILD/cw-1.0.16/src/cw.c:1176: undefined reference to `isastream' collect2: error: ld returned 1 exit status make: *** [Makefile:22: cw] Error 1 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.dt9z4D (%install) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.dt9z4D (%install) I: [iurt_root_command] ERROR: chroot