Mock Version: 1.4.9 Mock Version: 1.4.9 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/clamsmtp.spec'], chrootPath='/var/lib/mock/f29-build-12860-5846/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=345600uid=998gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/clamsmtp.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False BUILDSTDERR: warning: bogus date in %changelog: Fri May 31 2012 Nathanael Noblet - 1.10-9 Building target platforms: riscv64 Building for target riscv64 Wrote: /builddir/build/SRPMS/clamsmtp-1.10-19.fc29.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/clamsmtp.spec'], chrootPath='/var/lib/mock/f29-build-12860-5846/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=345600uid=998gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/clamsmtp.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False BUILDSTDERR: warning: bogus date in %changelog: Fri May 31 2012 Nathanael Noblet - 1.10-9 Building target platforms: riscv64 Building for target riscv64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.nG4Jre + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf clamsmtp-1.10 + /usr/bin/gzip -dc /builddir/build/SOURCES/clamsmtp-1.10.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd clamsmtp-1.10 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #0 (clamsmtp-man.patch): + echo 'Patch #0 (clamsmtp-man.patch):' + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .man --fuzz=0 patching file doc/clamsmtpd.8 Patch #1 (clamsmtp-readme.patch): + echo 'Patch #1 (clamsmtp-readme.patch):' + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .readme --fuzz=0 patching file README + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.61iIER + umask 022 + cd /builddir/build/BUILD + cd clamsmtp-1.10 + 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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + 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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + 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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + '[' 1 = 1 ']' BUILDSTDERR: +++ dirname ./configure BUILDSTDERR: ++ find . -name config.guess -o -name config.sub + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) BUILDSTDERR: ++ basename ./config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config.sub BUILDSTDERR: ++ 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) BUILDSTDERR: ++ basename ./config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config.guess BUILDSTDERR: ++ 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-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ']' BUILDSTDERR: ++ find . -name ltmain.sh + ./configure --build=riscv64-koji-linux-gnu --host=riscv64-koji-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 checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for riscv64-koji-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 ISO C89... none needed checking for style of include used by make... GNU checking dependency style of gcc... none checking for a BSD-compatible install... /usr/bin/install -c checking whether ln -s works... yes checking whether make sets $(MAKE)... (cached) yes checking build system type... riscv64-koji-linux-gnu checking host system type... riscv64-koji-linux-gnu checking for the pthreads library -lpthreads... no checking whether pthreads work without any flags... no checking whether pthreads work with -Kthread... no checking whether pthreads work with -kthread... no checking for the pthreads library -llthread... no checking whether pthreads work with -pthread... yes checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE checking if more special flags are required for pthreads... no checking for cc_r... gcc checking for getsockname in -lsocket... no checking for getaddrinfo in -lnsl... no 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 limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking err.h usability... yes checking err.h presence... yes checking for err.h... yes checking paths.h usability... yes checking paths.h presence... yes checking for paths.h... yes checking for unistd.h... (cached) yes checking stdio.h usability... yes checking stdio.h presence... yes checking for stdio.h... yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking for stdlib.h... (cached) yes checking assert.h usability... yes checking assert.h presence... yes checking for assert.h... yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking stdarg.h usability... yes checking stdarg.h presence... yes checking for stdarg.h... yes checking for string.h... (cached) yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking for linux/netfilter_ipv4.h... yes checking for an ANSI C-conforming const... yes checking for size_t... yes checking whether PTHREAD_MUTEX_ERRORCHECK_NP is declared... yes checking for struct tm.tm_gmtoff... yes checking for global variable __argv... no checking for memset... yes checking for strerror... yes checking for malloc... yes checking for realloc... yes checking for getopt... yes checking for strchr... yes checking for tolower... yes checking for getaddrinfo... yes checking for strlwr... no checking for strlcat... no checking for strlcpy... no checking for strncat... yes checking for strncpy... yes checking for strcasestr... yes checking for setenv... yes checking for daemon... yes checking for getline... yes checking for getdelim... yes checking for flockfile... yes configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating doc/Makefile config.status: creating config.h config.status: executing depfiles commands + make -j4 make all-recursive make[1]: Entering directory '/builddir/build/BUILD/clamsmtp-1.10' Making all in src make[2]: Entering directory '/builddir/build/BUILD/clamsmtp-1.10/src' gcc -DHAVE_CONFIG_H -I. -I.. -I../common/ -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/local/include -pthread -D_POSIX_PTHREAD_SEMANTICS -c -o clamsmtpd-clamsmtpd.o `test -f 'clamsmtpd.c' || echo './'`clamsmtpd.c gcc -DHAVE_CONFIG_H -I. -I.. -I../common/ -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/local/include -pthread -D_POSIX_PTHREAD_SEMANTICS -c -o clamsmtpd-spio.o `test -f '../common/spio.c' || echo './'`../common/spio.c gcc -DHAVE_CONFIG_H -I. -I.. -I../common/ -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/local/include -pthread -D_POSIX_PTHREAD_SEMANTICS -c -o clamsmtpd-smtppass.o `test -f '../common/smtppass.c' || echo './'`../common/smtppass.c gcc -DHAVE_CONFIG_H -I. -I.. -I../common/ -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/local/include -pthread -D_POSIX_PTHREAD_SEMANTICS -c -o clamsmtpd-stringx.o `test -f '../common/stringx.c' || echo './'`../common/stringx.c BUILDSTDERR: ../common/spio.c: In function 'spio_attach': BUILDSTDERR: ../common/spio.c:124:45: warning: passing argument 3 of 'getsockname' from incompatible pointer type [-Wincompatible-pointer-types] BUILDSTDERR: if(getsockname(fd, &SANY_ADDR(locaddr), &SANY_LEN(locaddr)) == -1 || BUILDSTDERR: In file included from ../common/spio.c:46: BUILDSTDERR: /usr/include/sys/socket.h:117:26: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'size_t *' {aka 'long unsigned int *'} BUILDSTDERR: socklen_t *__restrict __len) __THROW; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~^~~~~ BUILDSTDERR: ../common/spio.c:139:43: warning: passing argument 3 of 'getpeername' from incompatible pointer type [-Wincompatible-pointer-types] BUILDSTDERR: if(getpeername(fd, &SANY_ADDR(*peer), &SANY_LEN(*peer)) == -1 || BUILDSTDERR: In file included from ../common/spio.c:46: BUILDSTDERR: /usr/include/sys/socket.h:131:26: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'size_t *' {aka 'long unsigned int *'} BUILDSTDERR: socklen_t *__restrict __len) __THROW; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~^~~~~ BUILDSTDERR: In file included from ../common/sock_any.h:44, BUILDSTDERR: from ../common/smtppass.c:68: BUILDSTDERR: /usr/include/netinet/in.h:31:8: error: redefinition of 'struct in_addr' BUILDSTDERR: struct in_addr BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from /usr/include/linux/netfilter.h:7, BUILDSTDERR: from /usr/include/linux/netfilter_ipv4.h:9, BUILDSTDERR: from ../common/smtppass.c:64: BUILDSTDERR: /usr/include/linux/in.h:85:8: note: originally defined here BUILDSTDERR: struct in_addr { BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from /usr/include/netinet/in.h:37, BUILDSTDERR: from ../common/sock_any.h:44, BUILDSTDERR: from ../common/smtppass.c:68: BUILDSTDERR: /usr/include/bits/in.h:149:8: error: redefinition of 'struct ip_mreqn' BUILDSTDERR: struct ip_mreqn BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: In file included from /usr/include/linux/netfilter.h:7, BUILDSTDERR: from /usr/include/linux/netfilter_ipv4.h:9, BUILDSTDERR: from ../common/smtppass.c:64: BUILDSTDERR: /usr/include/linux/in.h:173:8: note: originally defined here BUILDSTDERR: struct ip_mreqn { BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: In file included from /usr/include/netinet/in.h:37, BUILDSTDERR: from ../common/sock_any.h:44, BUILDSTDERR: from ../common/smtppass.c:68: BUILDSTDERR: /usr/include/bits/in.h:157:8: error: redefinition of 'struct in_pktinfo' BUILDSTDERR: struct in_pktinfo BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/linux/netfilter.h:7, BUILDSTDERR: from /usr/include/linux/netfilter_ipv4.h:9, BUILDSTDERR: from ../common/smtppass.c:64: BUILDSTDERR: /usr/include/linux/in.h:222:8: note: originally defined here BUILDSTDERR: struct in_pktinfo { BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: /usr/include/netinet/in.h:42:5: error: redeclaration of enumerator 'IPPROTO_IP' BUILDSTDERR: IPPROTO_IP = 0, /* Dummy protocol for TCP. */ BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: /usr/include/linux/in.h:29:3: note: previous definition of 'IPPROTO_IP' was here BUILDSTDERR: IPPROTO_IP = 0, /* Dummy protocol for TCP */ BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: /usr/include/netinet/in.h:44:5: error: redeclaration of enumerator 'IPPROTO_ICMP' BUILDSTDERR: IPPROTO_ICMP = 1, /* Internet Control Message Protocol. */ BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: /usr/include/linux/in.h:31:3: note: previous definition of 'IPPROTO_ICMP' was here BUILDSTDERR: IPPROTO_ICMP = 1, /* Internet Control Message Protocol */ BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: /usr/include/netinet/in.h:46:5: error: redeclaration of enumerator 'IPPROTO_IGMP' BUILDSTDERR: IPPROTO_IGMP = 2, /* Internet Group Management Protocol. */ BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: /usr/include/linux/in.h:33:3: note: previous definition of 'IPPROTO_IGMP' was here BUILDSTDERR: IPPROTO_IGMP = 2, /* Internet Group Management Protocol */ BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: /usr/include/netinet/in.h:48:5: error: redeclaration of enumerator 'IPPROTO_IPIP' BUILDSTDERR: IPPROTO_IPIP = 4, /* IPIP tunnels (older KA9Q tunnels use 94). */ BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: /usr/include/linux/in.h:35:3: note: previous definition of 'IPPROTO_IPIP' was here BUILDSTDERR: IPPROTO_IPIP = 4, /* IPIP tunnels (older KA9Q tunnels use 94) */ BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: /usr/include/netinet/in.h:50:5: error: redeclaration of enumerator 'IPPROTO_TCP' BUILDSTDERR: IPPROTO_TCP = 6, /* Transmission Control Protocol. */ BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: /usr/include/linux/in.h:37:3: note: previous definition of 'IPPROTO_TCP' was here BUILDSTDERR: IPPROTO_TCP = 6, /* Transmission Control Protocol */ BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: /usr/include/netinet/in.h:52:5: error: redeclaration of enumerator 'IPPROTO_EGP' BUILDSTDERR: IPPROTO_EGP = 8, /* Exterior Gateway Protocol. */ BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: /usr/include/linux/in.h:39:3: note: previous definition of 'IPPROTO_EGP' was here BUILDSTDERR: IPPROTO_EGP = 8, /* Exterior Gateway Protocol */ BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: /usr/include/netinet/in.h:54:5: error: redeclaration of enumerator 'IPPROTO_PUP' BUILDSTDERR: IPPROTO_PUP = 12, /* PUP protocol. */ BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: /usr/include/linux/in.h:41:3: note: previous definition of 'IPPROTO_PUP' was here BUILDSTDERR: IPPROTO_PUP = 12, /* PUP protocol */ BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: /usr/include/netinet/in.h:56:5: error: redeclaration of enumerator 'IPPROTO_UDP' BUILDSTDERR: IPPROTO_UDP = 17, /* User Datagram Protocol. */ BUILDSTDERR: ^~~~~~~~~~~ gcc -DHAVE_CONFIG_H -I. -I.. -I../common/ -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/local/include -pthread -D_POSIX_PTHREAD_SEMANTICS -c -o clamsmtpd-sock_any.o `test -f '../common/sock_any.c' || echo './'`../common/sock_any.c BUILDSTDERR: /usr/include/linux/in.h:43:3: note: previous definition of 'IPPROTO_UDP' was here BUILDSTDERR: IPPROTO_UDP = 17, /* User Datagram Protocol */ BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: /usr/include/netinet/in.h:58:5: error: redeclaration of enumerator 'IPPROTO_IDP' BUILDSTDERR: IPPROTO_IDP = 22, /* XNS IDP protocol. */ BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: /usr/include/linux/in.h:45:3: note: previous definition of 'IPPROTO_IDP' was here BUILDSTDERR: IPPROTO_IDP = 22, /* XNS IDP protocol */ BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: /usr/include/netinet/in.h:60:5: error: redeclaration of enumerator 'IPPROTO_TP' BUILDSTDERR: IPPROTO_TP = 29, /* SO Transport Protocol Class 4. */ BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: /usr/include/linux/in.h:47:3: note: previous definition of 'IPPROTO_TP' was here BUILDSTDERR: IPPROTO_TP = 29, /* SO Transport Protocol Class 4 */ BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: /usr/include/netinet/in.h:62:5: error: redeclaration of enumerator 'IPPROTO_DCCP' BUILDSTDERR: IPPROTO_DCCP = 33, /* Datagram Congestion Control Protocol. */ BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: /usr/include/linux/in.h:49:3: note: previous definition of 'IPPROTO_DCCP' was here BUILDSTDERR: IPPROTO_DCCP = 33, /* Datagram Congestion Control Protocol */ BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: /usr/include/netinet/in.h:64:5: error: redeclaration of enumerator 'IPPROTO_IPV6' BUILDSTDERR: IPPROTO_IPV6 = 41, /* IPv6 header. */ BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: /usr/include/linux/in.h:51:3: note: previous definition of 'IPPROTO_IPV6' was here BUILDSTDERR: IPPROTO_IPV6 = 41, /* IPv6-in-IPv4 tunnelling */ BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: /usr/include/netinet/in.h:66:5: error: redeclaration of enumerator 'IPPROTO_RSVP' BUILDSTDERR: IPPROTO_RSVP = 46, /* Reservation Protocol. */ BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: /usr/include/linux/in.h:53:3: note: previous definition of 'IPPROTO_RSVP' was here BUILDSTDERR: IPPROTO_RSVP = 46, /* RSVP Protocol */ BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: /usr/include/netinet/in.h:68:5: error: redeclaration of enumerator 'IPPROTO_GRE' BUILDSTDERR: IPPROTO_GRE = 47, /* General Routing Encapsulation. */ BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: /usr/include/linux/in.h:55:3: note: previous definition of 'IPPROTO_GRE' was here BUILDSTDERR: IPPROTO_GRE = 47, /* Cisco GRE tunnels (rfc 1701,1702) */ BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: /usr/include/netinet/in.h:70:5: error: redeclaration of enumerator 'IPPROTO_ESP' BUILDSTDERR: IPPROTO_ESP = 50, /* encapsulating security payload. */ BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: /usr/include/linux/in.h:57:3: note: previous definition of 'IPPROTO_ESP' was here BUILDSTDERR: IPPROTO_ESP = 50, /* Encapsulation Security Payload protocol */ BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: /usr/include/netinet/in.h:72:5: error: redeclaration of enumerator 'IPPROTO_AH' BUILDSTDERR: IPPROTO_AH = 51, /* authentication header. */ BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: /usr/include/linux/in.h:59:3: note: previous definition of 'IPPROTO_AH' was here BUILDSTDERR: IPPROTO_AH = 51, /* Authentication Header protocol */ BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: /usr/include/netinet/in.h:74:5: error: redeclaration of enumerator 'IPPROTO_MTP' BUILDSTDERR: IPPROTO_MTP = 92, /* Multicast Transport Protocol. */ BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: /usr/include/linux/in.h:61:3: note: previous definition of 'IPPROTO_MTP' was here BUILDSTDERR: IPPROTO_MTP = 92, /* Multicast Transport Protocol */ BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: /usr/include/netinet/in.h:76:5: error: redeclaration of enumerator 'IPPROTO_BEETPH' BUILDSTDERR: IPPROTO_BEETPH = 94, /* IP option pseudo header for BEET. */ BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: /usr/include/linux/in.h:63:3: note: previous definition of 'IPPROTO_BEETPH' was here BUILDSTDERR: IPPROTO_BEETPH = 94, /* IP option pseudo header for BEET */ BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: /usr/include/netinet/in.h:78:5: error: redeclaration of enumerator 'IPPROTO_ENCAP' BUILDSTDERR: IPPROTO_ENCAP = 98, /* Encapsulation Header. */ BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: /usr/include/linux/in.h:65:3: note: previous definition of 'IPPROTO_ENCAP' was here BUILDSTDERR: IPPROTO_ENCAP = 98, /* Encapsulation Header */ BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: /usr/include/netinet/in.h:80:5: error: redeclaration of enumerator 'IPPROTO_PIM' BUILDSTDERR: IPPROTO_PIM = 103, /* Protocol Independent Multicast. */ BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: /usr/include/linux/in.h:67:3: note: previous definition of 'IPPROTO_PIM' was here BUILDSTDERR: IPPROTO_PIM = 103, /* Protocol Independent Multicast */ BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: /usr/include/netinet/in.h:82:5: error: redeclaration of enumerator 'IPPROTO_COMP' BUILDSTDERR: IPPROTO_COMP = 108, /* Compression Header Protocol. */ BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: /usr/include/linux/in.h:69:3: note: previous definition of 'IPPROTO_COMP' was here BUILDSTDERR: IPPROTO_COMP = 108, /* Compression Header Protocol */ BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: /usr/include/netinet/in.h:84:5: error: redeclaration of enumerator 'IPPROTO_SCTP' BUILDSTDERR: IPPROTO_SCTP = 132, /* Stream Control Transmission Protocol. */ BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: /usr/include/linux/in.h:71:3: note: previous definition of 'IPPROTO_SCTP' was here BUILDSTDERR: IPPROTO_SCTP = 132, /* Stream Control Transport Protocol */ BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: /usr/include/netinet/in.h:86:5: error: redeclaration of enumerator 'IPPROTO_UDPLITE' BUILDSTDERR: IPPROTO_UDPLITE = 136, /* UDP-Lite protocol. */ BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: /usr/include/linux/in.h:73:3: note: previous definition of 'IPPROTO_UDPLITE' was here BUILDSTDERR: IPPROTO_UDPLITE = 136, /* UDP-Lite (RFC 3828) */ BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: /usr/include/netinet/in.h:88:5: error: redeclaration of enumerator 'IPPROTO_MPLS' BUILDSTDERR: IPPROTO_MPLS = 137, /* MPLS in IP. */ BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: /usr/include/linux/in.h:75:3: note: previous definition of 'IPPROTO_MPLS' was here BUILDSTDERR: IPPROTO_MPLS = 137, /* MPLS in IP (RFC 4023) */ BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: /usr/include/netinet/in.h:90:5: error: redeclaration of enumerator 'IPPROTO_RAW' BUILDSTDERR: IPPROTO_RAW = 255, /* Raw IP packets. */ BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: /usr/include/linux/in.h:77:3: note: previous definition of 'IPPROTO_RAW' was here BUILDSTDERR: IPPROTO_RAW = 255, /* Raw IP packets */ BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from ../common/sock_any.h:44, BUILDSTDERR: from ../common/smtppass.c:68: BUILDSTDERR: /usr/include/netinet/in.h:92:5: error: redeclaration of enumerator 'IPPROTO_MAX' BUILDSTDERR: IPPROTO_MAX BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/linux/netfilter.h:7, BUILDSTDERR: from /usr/include/linux/netfilter_ipv4.h:9, BUILDSTDERR: from ../common/smtppass.c:64: BUILDSTDERR: /usr/include/linux/in.h:79:3: note: previous definition of 'IPPROTO_MAX' was here BUILDSTDERR: IPPROTO_MAX BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from ../common/sock_any.h:44, BUILDSTDERR: from ../common/smtppass.c:68: BUILDSTDERR: /usr/include/netinet/in.h:237:8: error: redefinition of 'struct sockaddr_in' BUILDSTDERR: struct sockaddr_in BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/linux/netfilter.h:7, BUILDSTDERR: from /usr/include/linux/netfilter_ipv4.h:9, BUILDSTDERR: from ../common/smtppass.c:64: BUILDSTDERR: /usr/include/linux/in.h:232:8: note: originally defined here BUILDSTDERR: struct sockaddr_in { BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from ../common/sock_any.h:44, BUILDSTDERR: from ../common/smtppass.c:68: BUILDSTDERR: /usr/include/netinet/in.h:264:8: error: redefinition of 'struct ip_mreq' BUILDSTDERR: struct ip_mreq BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from /usr/include/linux/netfilter.h:7, BUILDSTDERR: from /usr/include/linux/netfilter_ipv4.h:9, BUILDSTDERR: from ../common/smtppass.c:64: BUILDSTDERR: /usr/include/linux/in.h:168:8: note: originally defined here BUILDSTDERR: struct ip_mreq { BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from ../common/sock_any.h:44, BUILDSTDERR: from ../common/smtppass.c:68: BUILDSTDERR: /usr/include/netinet/in.h:273:8: error: redefinition of 'struct ip_mreq_source' BUILDSTDERR: struct ip_mreq_source BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/linux/netfilter.h:7, BUILDSTDERR: from /usr/include/linux/netfilter_ipv4.h:9, BUILDSTDERR: from ../common/smtppass.c:64: BUILDSTDERR: /usr/include/linux/in.h:179:8: note: originally defined here BUILDSTDERR: struct ip_mreq_source { BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../common/sock_any.h:44, BUILDSTDERR: from ../common/smtppass.c:68: BUILDSTDERR: /usr/include/netinet/in.h:300:8: error: redefinition of 'struct group_req' BUILDSTDERR: struct group_req BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: In file included from /usr/include/linux/netfilter.h:7, BUILDSTDERR: from /usr/include/linux/netfilter_ipv4.h:9, BUILDSTDERR: from ../common/smtppass.c:64: BUILDSTDERR: /usr/include/linux/in.h:197:8: note: originally defined here BUILDSTDERR: struct group_req { BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: In file included from ../common/sock_any.h:44, BUILDSTDERR: from ../common/smtppass.c:68: BUILDSTDERR: /usr/include/netinet/in.h:309:8: error: redefinition of 'struct group_source_req' BUILDSTDERR: struct group_source_req BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/linux/netfilter.h:7, BUILDSTDERR: from /usr/include/linux/netfilter_ipv4.h:9, BUILDSTDERR: from ../common/smtppass.c:64: BUILDSTDERR: /usr/include/linux/in.h:202:8: note: originally defined here BUILDSTDERR: struct group_source_req { BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../common/sock_any.h:44, BUILDSTDERR: from ../common/smtppass.c:68: BUILDSTDERR: /usr/include/netinet/in.h:323:8: error: redefinition of 'struct ip_msfilter' BUILDSTDERR: struct ip_msfilter BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/linux/netfilter.h:7, BUILDSTDERR: from /usr/include/linux/netfilter_ipv4.h:9, BUILDSTDERR: from ../common/smtppass.c:64: BUILDSTDERR: /usr/include/linux/in.h:185:8: note: originally defined here BUILDSTDERR: struct ip_msfilter { BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from ../common/sock_any.h:44, BUILDSTDERR: from ../common/smtppass.c:68: BUILDSTDERR: /usr/include/netinet/in.h:344:8: error: redefinition of 'struct group_filter' BUILDSTDERR: struct group_filter BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/linux/netfilter.h:7, BUILDSTDERR: from /usr/include/linux/netfilter_ipv4.h:9, BUILDSTDERR: from ../common/smtppass.c:64: BUILDSTDERR: /usr/include/linux/in.h:208:8: note: originally defined here BUILDSTDERR: struct group_filter { BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: ../common/smtppass.c: In function 'sp_init': BUILDSTDERR: ../common/smtppass.c:219:9: warning: variable 'r' set but not used [-Wunused-but-set-variable] BUILDSTDERR: int r; BUILDSTDERR: ^ BUILDSTDERR: ../common/smtppass.c: In function 'thread_main': BUILDSTDERR: ../common/smtppass.c:730:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] BUILDSTDERR: return (void*)(ret == 0 ? 0 : 1); BUILDSTDERR: ^ BUILDSTDERR: ../common/smtppass.c: In function 'make_connections': BUILDSTDERR: ../common/smtppass.c:758:82: warning: passing argument 5 of 'getsockopt' from incompatible pointer type [-Wincompatible-pointer-types] BUILDSTDERR: if(getsockopt(ctx->client.fd, SOL_IP, SO_ORIGINAL_DST, &SANY_ADDR(addr), &SANY_LEN(addr)) == -1) BUILDSTDERR: In file included from ../common/smtppass.c:45: BUILDSTDERR: /usr/include/sys/socket.h:210:32: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'size_t *' {aka 'long unsigned int *'} BUILDSTDERR: socklen_t *__restrict __optlen) __THROW; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ BUILDSTDERR: ../common/smtppass.c: In function 'connection_loop': BUILDSTDERR: ../common/smtppass.c:540:21: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: write(fd, SMTP_STARTFAILED, KL(SMTP_STARTFAILED)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: ../common/smtppass.c:557:13: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: write(fd, SMTP_STARTBUSY, KL(SMTP_STARTBUSY)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: make[2]: *** [Makefile:291: clamsmtpd-smtppass.o] Error 1 BUILDSTDERR: make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory '/builddir/build/BUILD/clamsmtp-1.10/src' BUILDSTDERR: make[1]: *** [Makefile:234: all-recursive] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/clamsmtp-1.10' BUILDSTDERR: make: *** [Makefile:173: all] Error 2 BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.61iIER (%build) RPM build errors: BUILDSTDERR: bogus date in %changelog: Fri May 31 2012 Nathanael Noblet - 1.10-9 BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.61iIER (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 626, in do raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/clamsmtp.spec