+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/tsocks.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.OQC2kZ + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf tsocks-1.8 + /usr/bin/gzip -dc /builddir/build/SOURCES/tsocks-1.8beta5.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd tsocks-1.8 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (tsocks_remove_static_lib.patch):' Patch #0 (tsocks_remove_static_lib.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Makefile.in + echo 'Patch #1 (tsocks_fix_lib_path.patch):' Patch #1 (tsocks_fix_lib_path.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file tsocks + echo 'Patch #2 (tsocks_script_validation_error.patch):' Patch #2 (tsocks_script_validation_error.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file tsocks + echo 'Patch #3 (tsocks_documentation_update.patch):' Patch #3 (tsocks_documentation_update.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file tsocks.8 + echo 'Patch #4 (tsocks-1.8-soname.patch):' Patch #4 (tsocks-1.8-soname.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Makefile.in + echo 'Patch #5 (tsocks_fix_man_typo.patch):' Patch #5 (tsocks_fix_man_typo.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file tsocks.8 + echo 'Patch #6 (tsocks_include_missing_tools.patch):' Patch #6 (tsocks_include_missing_tools.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Makefile.in Hunk #1 succeeded at 66 (offset 2 lines). + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.K3HuxB + umask 022 + cd /builddir/build/BUILD + cd tsocks-1.8 + 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 creating cache ./config.cache checking host system type... riscv64-redhat-linux-gnu checking for gcc... gcc checking whether the C compiler (gcc -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 -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld) works... yes checking whether the C compiler (gcc -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 -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for a BSD compatible install... /usr/bin/install -c checking whether ln -s works... yes checking if the C compiler accepts -Wall... yes checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for dlfcn.h... yes checking for sys/socket.h... yes checking for arpa/inet.h... yes checking for fcntl.h... yes checking for sys/poll.h... yes checking for unistd.h... yes checking for strcspn... yes checking for strdup... yes checking for strerror... yes checking for strspn... yes checking for strtol... yes checking for connect in -lc... yes checking for socket... yes checking for inet_aton... yes checking for gethostbyname... yes checking for dlsym in -ldl... yes checking for RTLD_NEXT from dlfcn.h... no checking for RTLD_NEXT from dlfcn.h with _GNU_SOURCE... yes checking for correct select prototype... select(int n, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout) checking for correct connect prototype... connect(int __fd, const struct sockaddr * __addr, socklen_t __len) checking for correct close prototype... close(int fd) checking for correct poll prototype... poll(struct pollfd *ufds, unsigned long nfds, int timeout) updating cache ./config.cache creating ./config.status creating Makefile creating config.h + make -j4 gcc -fPIC -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 -Wall -I. -c tsocks.c -o tsocks.o gcc -fPIC -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 -Wall -I. -c common.c -o common.o gcc -fPIC -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 -Wall -I. -c parser.c -o parser.o gcc -fPIC -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 -Wall -I. -o saveme saveme.c parser.c: In function 'handle_path': parser.c:210:8: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] if (((int) (newserver = (struct serverent *) malloc(sizeof(struct serverent)))) == -1) ^ tsocks.c: In function 'connect': tsocks.c:215:27: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness [-Wpointer-sign] (void *) &sock_type, &sock_type_len); ^ In file included from tsocks.c:39:0: /usr/include/sys/socket.h:208:12: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' extern int getsockopt (int __fd, int __level, int __optname, ^~~~~~~~~~ tsocks.c:271:62: warning: pointer targets in passing argument 3 of 'getpeername' differ in signedness [-Wpointer-sign] if (!getpeername(__fd, (struct sockaddr *) &peer_address, &namelen)) { ^ In file included from tsocks.c:39:0: /usr/include/sys/socket.h:130:12: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' extern int getpeername (int __fd, __SOCKADDR_ARG __addr, ^~~~~~~~~~~ tsocks.c: In function 'select': tsocks.c:343:8: warning: variable 'rc' set but not used [-Wunused-but-set-variable] int rc = 0; ^~ tsocks.c: In function 'poll': tsocks.c:526:8: warning: variable 'rc' set but not used [-Wunused-but-set-variable] int rc = 0, i; ^~ gcc -fPIC -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 -Wall -I. -o inspectsocks inspectsocks.c common.o -lc gcc -fPIC -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 -Wall -I. -o validateconf validateconf.c common.o parser.o -lc gcc -fPIC -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 -Wall -I. -nostdlib -shared -o libtsocks.so.1.8 -Wl,-soname=libtsocks.so.1 tsocks.o common.o parser.o -ldl -lc ln -sf libtsocks.so.1.8 libtsocks.so.1 ln -sf libtsocks.so.1 libtsocks.so + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.rNIUK1 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/tsocks-1.8-0.16.beta5.fc28.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/tsocks-1.8-0.16.beta5.fc28.riscv64 ++ dirname /builddir/build/BUILDROOT/tsocks-1.8-0.16.beta5.fc28.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/tsocks-1.8-0.16.beta5.fc28.riscv64 + cd tsocks-1.8 + rm -rf /builddir/build/BUILDROOT/tsocks-1.8-0.16.beta5.fc28.riscv64 + make install DESTDIR=/builddir/build/BUILDROOT/tsocks-1.8-0.16.beta5.fc28.riscv64 /bin/sh mkinstalldirs "/builddir/build/BUILDROOT/tsocks-1.8-0.16.beta5.fc28.riscv64/usr/bin" mkdir /builddir/build/BUILDROOT/tsocks-1.8-0.16.beta5.fc28.riscv64 mkdir /builddir/build/BUILDROOT/tsocks-1.8-0.16.beta5.fc28.riscv64/usr mkdir /builddir/build/BUILDROOT/tsocks-1.8-0.16.beta5.fc28.riscv64/usr/bin /usr/bin/install -c tsocks /builddir/build/BUILDROOT/tsocks-1.8-0.16.beta5.fc28.riscv64/usr/bin /usr/bin/install -c inspectsocks /builddir/build/BUILDROOT/tsocks-1.8-0.16.beta5.fc28.riscv64/usr/bin /usr/bin/install -c validateconf /builddir/build/BUILDROOT/tsocks-1.8-0.16.beta5.fc28.riscv64/usr/bin /bin/sh mkinstalldirs "/builddir/build/BUILDROOT/tsocks-1.8-0.16.beta5.fc28.riscv64/usr/lib64" mkdir /builddir/build/BUILDROOT/tsocks-1.8-0.16.beta5.fc28.riscv64/usr/lib64 /usr/bin/install -c libtsocks.so.1.8 /builddir/build/BUILDROOT/tsocks-1.8-0.16.beta5.fc28.riscv64/usr/lib64 ln -sf libtsocks.so.1.8 /builddir/build/BUILDROOT/tsocks-1.8-0.16.beta5.fc28.riscv64/usr/lib64/libtsocks.so.1 ln -sf libtsocks.so.1 /builddir/build/BUILDROOT/tsocks-1.8-0.16.beta5.fc28.riscv64/usr/lib64/libtsocks.so /bin/sh mkinstalldirs "/builddir/build/BUILDROOT/tsocks-1.8-0.16.beta5.fc28.riscv64/usr/share/man/man1" mkdir /builddir/build/BUILDROOT/tsocks-1.8-0.16.beta5.fc28.riscv64/usr/share mkdir /builddir/build/BUILDROOT/tsocks-1.8-0.16.beta5.fc28.riscv64/usr/share/man mkdir /builddir/build/BUILDROOT/tsocks-1.8-0.16.beta5.fc28.riscv64/usr/share/man/man1 /usr/bin/install -c -m 644 tsocks.1 /builddir/build/BUILDROOT/tsocks-1.8-0.16.beta5.fc28.riscv64/usr/share/man/man1/ /bin/sh mkinstalldirs "/builddir/build/BUILDROOT/tsocks-1.8-0.16.beta5.fc28.riscv64/usr/share/man/man8" mkdir /builddir/build/BUILDROOT/tsocks-1.8-0.16.beta5.fc28.riscv64/usr/share/man/man8 /usr/bin/install -c -m 644 tsocks.8 /builddir/build/BUILDROOT/tsocks-1.8-0.16.beta5.fc28.riscv64/usr/share/man/man8/ /bin/sh mkinstalldirs "/builddir/build/BUILDROOT/tsocks-1.8-0.16.beta5.fc28.riscv64/usr/share/man/man5" mkdir /builddir/build/BUILDROOT/tsocks-1.8-0.16.beta5.fc28.riscv64/usr/share/man/man5 /usr/bin/install -c -m 644 tsocks.conf.5 /builddir/build/BUILDROOT/tsocks-1.8-0.16.beta5.fc28.riscv64/usr/share/man/man5/ + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Processing files: tsocks-1.8-0.16.beta5.fc28.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.vAsGrx + umask 022 + cd /builddir/build/BUILD + cd tsocks-1.8 + DOCDIR=/builddir/build/BUILDROOT/tsocks-1.8-0.16.beta5.fc28.riscv64/usr/share/doc/tsocks + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/tsocks-1.8-0.16.beta5.fc28.riscv64/usr/share/doc/tsocks + cp -pr ChangeLog /builddir/build/BUILDROOT/tsocks-1.8-0.16.beta5.fc28.riscv64/usr/share/doc/tsocks + cp -pr COPYING /builddir/build/BUILDROOT/tsocks-1.8-0.16.beta5.fc28.riscv64/usr/share/doc/tsocks + cp -pr FAQ /builddir/build/BUILDROOT/tsocks-1.8-0.16.beta5.fc28.riscv64/usr/share/doc/tsocks + cp -pr TODO /builddir/build/BUILDROOT/tsocks-1.8-0.16.beta5.fc28.riscv64/usr/share/doc/tsocks + cp -pr tsocks.conf.simple.example /builddir/build/BUILDROOT/tsocks-1.8-0.16.beta5.fc28.riscv64/usr/share/doc/tsocks + cp -pr tsocks.conf.complex.example /builddir/build/BUILDROOT/tsocks-1.8-0.16.beta5.fc28.riscv64/usr/share/doc/tsocks + exit 0 Provides: libtsocks.so.1()(64bit) tsocks = 1.8-0.16.beta5.fc28 tsocks(riscv-64) = 1.8-0.16.beta5.fc28 Requires(interp): /sbin/ldconfig /sbin/ldconfig Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig Requires: /bin/sh ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) libdl.so.2()(64bit) libdl.so.2(GLIBC_2.27)(64bit) libtsocks.so.1()(64bit) rtld(GNU_HASH) Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/tsocks-1.8-0.16.beta5.fc28.riscv64 Wrote: /builddir/build/SRPMS/tsocks-1.8-0.16.beta5.fc28.src.rpm Wrote: /builddir/build/RPMS/riscv64/tsocks-1.8-0.16.beta5.fc28.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.Cdq9lC + umask 022 + cd /builddir/build/BUILD + cd tsocks-1.8 + rm -rf /builddir/build/BUILDROOT/tsocks-1.8-0.16.beta5.fc28.riscv64 + exit 0 + touch /buildok + cleanup + set +e + sync + sleep 5 + sync + poweroff Terminated ++ cleanup ++ set +e ++ sync Terminated +++ cleanup +++ set +e +++ sync +++ sleep 5 +++ sync +++ poweroff