+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/xpa.spec --define "debug_package %{nil}" --undefine _annotated_build --define "_missing_doc_files_terminate_build %{nil}" --define "_emacs_sitestartdir /usr/share/emacs/site-lisp/site-start.d" --define "_emacs_sitelispdir /usr/share/emacs/site-lisp" --nocheck ' mockbuild Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.qiQtTb + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf xpa-2.1.18 + /usr/bin/gzip -dc /builddir/build/SOURCES/v2.1.18.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd xpa-2.1.18 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (xpa-makefile.patch):' Patch #0 (xpa-makefile.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Makefile.in Hunk #4 succeeded at 198 (offset 2 lines). Hunk #5 succeeded at 214 (offset 2 lines). Hunk #6 succeeded at 234 (offset 2 lines). Hunk #7 succeeded at 287 (offset 2 lines). Hunk #8 succeeded at 296 (offset 2 lines). Hunk #9 succeeded at 304 (offset 2 lines). Hunk #10 succeeded at 318 (offset 2 lines). + rm -rf /builddir/build/BUILD/xpa-2.1.18/doc/xpa.ps + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.erkVfv + umask 022 + cd /builddir/build/BUILD + cd xpa-2.1.18 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config.sub ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub '/usr/lib/rpm/redhat/config.sub' -> './config.sub' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config.guess ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess '/usr/lib/rpm/redhat/config.guess' -> './config.guess' + '[' 1 = 1 ']' + '[' x '!=' x-specs=/usr/lib/rpm/redhat/redhat-hardened-ld ']' ++ find . -name ltmain.sh + ./configure --build=riscv64-redhat-linux-gnu --host=riscv64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --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 --includedir=/usr/include/xpa --datadir=/usr/share/xpa --enable-shared --with-tcl=/usr/lib64 --with-x --enable-threaded-xpans checking build system type... riscv64-redhat-linux-gnu checking host system type... riscv64-redhat-linux-gnu checking for riscv64-redhat-linux-gnu-gcc... no checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... 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 ANSI C... none needed checking how to run the C preprocessor... gcc -E checking for egrep... 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 for long... yes checking size of long... 8 checking for riscv64-redhat-linux-gnu-ranlib... no checking for ranlib... ranlib checking for ANSI C header files... (cached) yes checking malloc.h usability... yes checking malloc.h presence... yes checking for malloc.h... yes checking getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking pwd.h usability... yes checking pwd.h presence... yes checking for pwd.h... yes checking values.h usability... yes checking values.h presence... yes checking for values.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking setjmp.h usability... yes checking setjmp.h presence... yes checking for setjmp.h... yes checking sys/un.h usability... yes checking sys/un.h presence... yes checking for sys/un.h... yes checking sys/shm.h usability... yes checking sys/shm.h presence... yes checking for sys/shm.h... yes checking sys/mman.h usability... yes checking sys/mman.h presence... yes checking for sys/mman.h... yes checking sys/ipc.h usability... yes checking sys/ipc.h presence... yes checking for sys/ipc.h... yes checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking for socklen_t... yes checking for an ANSI C-conforming const... yes checking for strchr... yes checking for memcpy... yes checking for snprintf... yes checking for atexit... yes checking for setenv... yes checking for connect... yes checking for gethostbyname... yes checking for threaded xpans... yes checking for pthread_create in -lpthread... yes checking for shared library build... yes checking for request to use posix_spawn... no checking for X... libraries , headers checking for gethostbyname... (cached) yes checking for connect... (cached) yes checking for remove... yes checking for shmat... yes checking for IceConnectionNumber in -lICE... yes checking for Tcl configuration... found /usr/lib64/tclConfig.sh checking for existence of /usr/lib64/tclConfig.sh... loading Tcl support will utilize stubs library: -L/usr/lib64 -ltclstub8.6 checking for incorporation of thread support... no checking for gtk... no checking linux-gnu configuration... adding -fPIC to gcc configure: creating ./config.status config.status: creating Makefile config.status: creating xpa.pc config.status: creating conf.h + make gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fPIC -DHAVE_CONFIG_H xpa.c gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fPIC -DHAVE_CONFIG_H xpaio.c gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fPIC -DHAVE_CONFIG_H command.c gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fPIC -DHAVE_CONFIG_H acl.c gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fPIC -DHAVE_CONFIG_H remote.c gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fPIC -DHAVE_CONFIG_H clipboard.c gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fPIC -DHAVE_CONFIG_H port.c gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fPIC -DHAVE_CONFIG_H tcp.c gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fPIC -DHAVE_CONFIG_H client.c client.c: In function 'XPAClientGet': client.c:1064:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(client->fd, tbuf, strlen(tbuf)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ client.c:1066:7: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(client->fd, *(client->bufptr), *(client->lenptr)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ client.c:1070:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(client->fd, tbuf, strlen(tbuf)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ client.c:1099:7: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(client->fd, *(client->bufptr), *(client->lenptr)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ client.c: In function 'XPAClientLoopFork': client.c:1535:5: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fd[1], &active, 1); ^~~~~~~~~~~~~~~~~~~~~~~~ client.c:1555:5: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read(fd[0], &active, 1); ^~~~~~~~~~~~~~~~~~~~~~~ In file included from ./xpap.h:62:0, from client.c:5: client.c: In function 'XPASetFd': ./xport.h:78:24: warning: 'flags' may be used uninitialized in this function [-Wmaybe-uninitialized] #define xfcntl(a,b,c) fcntl(a,b,c) ^~~~~ client.c:2676:7: note: 'flags' was declared here int flags; ^~~~~ gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fPIC -DHAVE_CONFIG_H word.c gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fPIC -DHAVE_CONFIG_H xalloc.c xalloc.c: In function '_xalloc_error': xalloc.c:43:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(1, XALLOC_ERROR, strlen(XALLOC_ERROR)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fPIC -DHAVE_CONFIG_H find.c find.c: In function 'ResolvePath': find.c:191:5: warning: ignoring return value of 'getcwd', declared with attribute warn_unused_result [-Wunused-result] getcwd(path, MAXBUFSIZE); ^~~~~~~~~~~~~~~~~~~~~~~~ gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fPIC -DHAVE_CONFIG_H xlaunch.c xlaunch.c: In function 'launch_fork_exec': xlaunch.c:223:8: warning: ignoring return value of 'dup', declared with attribute warn_unused_result [-Wunused-result] dup(1); ^~~~~~ xlaunch.c:282:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fd[1], &status, 4); ^~~~~~~~~~~~~~~~~~~~~~~~ gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fPIC -DHAVE_CONFIG_H timedconn.c gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fPIC -DHAVE_CONFIG_H -I/usr/include -DUSE_TCL_STUBS=1 tclloop.c gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fPIC -DHAVE_CONFIG_H -I/usr/include -DUSE_TCL_STUBS=1 tcl.c tcl.c: In function 'XPARec_Tcl': tcl.c:974:58: error: 'uintptr_t' undeclared (first use in this function); did you mean 'intptr_t'? if( !(chan = Tcl_MakeTcpClientChannel((ClientData)(uintptr_t)xpa_cmdfd(xpa))) ){ ^~~~~~~~~ intptr_t tcl.c:974:58: note: each undeclared identifier is reported only once for each function it appears in make: *** [Makefile:412: tcl.o] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.erkVfv (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.erkVfv (%build) ++ cleanup ++ set +e ++ sync ++ sleep 5 ++ sync ++ poweroff Terminated +++ cleanup +++ set +e +++ sync Terminated ++++ cleanup ++++ set +e ++++ sync ++++ sleep 5 ++++ sync ++++ poweroff