Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.fD8v7G + umask 022 + cd /home/zsun/rpmbuild/BUILD + cd /home/zsun/rpmbuild/BUILD + rm -rf isatapd-0.9.7 + /usr/bin/gzip -dc /home/zsun/rpmbuild/SOURCES/isatapd-0.9.7.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd isatapd-0.9.7 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.8PZrez + umask 022 + cd /home/zsun/rpmbuild/BUILD + cd isatapd-0.9.7 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -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 + '[' 1 = 1 ']' + '[' x '!=' x-specs=/usr/lib/rpm/redhat/redhat-hardened-ld ']' ++ find . -name ltmain.sh + ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-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 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 style of include used by make... GNU checking for x86_64-redhat-linux-gnu-gcc... no 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 dependency style of gcc... none 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 net/if.h usability... yes checking net/if.h presence... yes checking for net/if.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking netinet/ip.h usability... yes checking netinet/ip.h presence... yes checking for netinet/ip.h... yes checking netinet/icmp6.h usability... yes checking netinet/icmp6.h presence... yes checking for netinet/icmp6.h... yes checking linux/socket.h usability... yes checking linux/socket.h presence... yes checking for linux/socket.h... yes checking sys/utsname.h usability... yes checking sys/utsname.h presence... yes checking for sys/utsname.h... yes checking getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking for pid_t... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking for ioctl... yes checking for getopt_long... yes checking for syslog... yes checking for fcntl... yes checking if 1=2... no configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating man/Makefile config.status: creating config.h config.status: executing depfiles commands + /usr/bin/make -O -j2 /usr/bin/make all-recursive Making all in . Making all in src make[2]: Entering directory '/home/zsun/rpmbuild/BUILD/isatapd-0.9.7/src' gcc -DHAVE_CONFIG_H -I. -I.. -Wall -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -c isatap.c make[2]: Leaving directory '/home/zsun/rpmbuild/BUILD/isatapd-0.9.7/src' make[2]: Entering directory '/home/zsun/rpmbuild/BUILD/isatapd-0.9.7/src' gcc -DHAVE_CONFIG_H -I. -I.. -Wall -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -c main.c make[2]: Leaving directory '/home/zsun/rpmbuild/BUILD/isatapd-0.9.7/src' make[2]: Entering directory '/home/zsun/rpmbuild/BUILD/isatapd-0.9.7/src' gcc -DHAVE_CONFIG_H -I. -I.. -Wall -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -c tunnel.c In file included from /usr/include/linux/if_tunnel.h:6:0, from tunnel.c:23: /usr/include/linux/ip.h:85:8: error: redefinition of 'struct iphdr' struct iphdr { ^~~~~ In file included from tunnel.c:21:0: /usr/include/netinet/ip.h:44:8: note: originally defined here struct iphdr ^~~~~ make[2]: *** [Makefile:274: tunnel.o] Error 1 make[2]: Leaving directory '/home/zsun/rpmbuild/BUILD/isatapd-0.9.7/src' make[2]: *** Waiting for unfinished jobs.... make[2]: Entering directory '/home/zsun/rpmbuild/BUILD/isatapd-0.9.7/src' gcc -DHAVE_CONFIG_H -I. -I.. -Wall -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -c rdisc.c make[2]: Leaving directory '/home/zsun/rpmbuild/BUILD/isatapd-0.9.7/src' make[1]: *** [Makefile:279: all-recursive] Error 1 make: *** [Makefile:219: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.8PZrez (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.8PZrez (%build)