D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/libnet1.0.2-1.0.2a-20.mga6.src.rpm Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.xJehrG + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf Libnet-1.0.2a + /usr/bin/bzip2 -dc /home/pterjan/rpmbuild/SOURCES/libnet-1.0.2a.tar.bz2 + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd Libnet-1.0.2a + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (Libnet-1.0.2a-1.0.2a.diff):' Patch #0 (Libnet-1.0.2a-1.0.2a.diff): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Makefile.in + echo 'Patch #1 (libnet-1.0.2a-strings.patch):' Patch #1 (libnet-1.0.2a-strings.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .strings --fuzz=0 patching file include/libnet.h + chmod 644 README doc/CHANGELOG doc/CHANGELOG-NEWFUNCTIONS + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.ut7FvV + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd Libnet-1.0.2a + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4' + 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 --with-pf_packet=yes creating cache ./config.cache Beginning autoconfiguration process for libnet-1.0.2a... checking host system type... Invalid configuration `x86_64-pc-linux-gnuoldld': machine `x86_64-pc' not recognized checking target system type... Invalid configuration `x86_64-pc-linux-gnuoldld': machine `x86_64-pc' not recognized checking build system type... Invalid configuration `x86_64-mageia-linux-gnu': machine `x86_64-mageia' not recognized checking for gcc... gcc checking whether the C compiler (gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags) works... yes checking whether the C compiler (gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for working const... yes checking for a BSD compatible install... /usr/bin/install -c checking whether make sets ${MAKE}... yes checking for ranlib... ranlib checking for ar... ar checking for ln... ln checking for strerror... yes checking for pcap_open_live in -lpcap... yes checking low-level packet interface type... found SOCK_PACKET checking for PF_PACKET... test program choked... assuming no configure: warning: apparently your OS is not officially supported yet configure: warning: this may not work you'll have to edit the makefile by hand please send diffs to mike@infonexus.com checking for libnet_build_ip in -lnet... no checking machine endianess... lil checking if unaligned accesses fail... no checking for sys/sockio.h... no updating cache ./config.cache creating ./config.status creating Makefile creating test/Makefile creating test/TCP/Makefile creating test/Ethernet/Makefile creating test/UDP/Makefile creating test/ICMP/Makefile creating test/Random/Makefile creating test/OSPF/Makefile creating util/Makefile creating util/Get-mac/Makefile creating example/Makefile creating libnet-config creating include/config.h + echo 'warning: %make is deprecated, try %make_build instead' warning: %make is deprecated, try %make_build instead + /usr/bin/make -O -j8 'CFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fPIC -Wall' sed -e 's/.*/#define VERSION "&"/' ./VERSION > version.h gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fPIC -Wall -DHAVE_CONFIG_H -c src/libnet_version.c -o src/libnet_version.o src/libnet_version.c:34:24: fatal error: ../version.h: No such file or directory compilation terminated. Makefile:102: recipe for target 'src/libnet_version.o' failed make: *** [src/libnet_version.o] Error 1 make: *** Waiting for unfinished jobs.... gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fPIC -Wall -DHAVE_CONFIG_H -c src/libnet_socket.c -o src/libnet_socket.o src/libnet_socket.c: In function 'libnet_open_raw_sock': src/libnet_socket.c:39:1: warning: type of 'prot' defaults to 'int' [-Wimplicit-int] libnet_open_raw_sock(prot) ^ gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fPIC -Wall -DHAVE_CONFIG_H -c src/libnet_prand.c -o src/libnet_prand.o gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fPIC -Wall -DHAVE_CONFIG_H -c src/libnet_write_ip.c -o src/libnet_write_ip.o gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fPIC -Wall -DHAVE_CONFIG_H -c src/libnet_insert_ipo.c -o src/libnet_insert_ipo.o gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fPIC -Wall -DHAVE_CONFIG_H -c src/libnet_resolve.c -o src/libnet_resolve.o src/libnet_resolve.c: In function 'libnet_host_lookup': src/libnet_resolve.c:66:17: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] sprintf(((which % 2) ? hostname : hostname2), "%d.%d.%d.%d", ^ In file included from /usr/include/features.h:365:0, from /usr/include/stdio.h:27, from src/../include/libnet.h:35, from src/libnet_resolve.c:36: /usr/include/bits/stdio2.h:31:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) ^ src/libnet_resolve.c:71:17: warning: pointer targets in passing argument 1 of 'strncpy' differ in signedness [-Wpointer-sign] strncpy(((which % 2) ? hostname : hostname2), host_ent->h_name, ^ In file included from /usr/include/features.h:365:0, from /usr/include/stdio.h:27, from src/../include/libnet.h:35, from src/libnet_resolve.c:36: /usr/include/bits/string3.h:123:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ src/libnet_resolve.c: In function 'libnet_host_lookup_r': src/libnet_resolve.c:94:17: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] sprintf(hostname, "%d.%d.%d.%d", ^ In file included from /usr/include/features.h:365:0, from /usr/include/stdio.h:27, from src/../include/libnet.h:35, from src/libnet_resolve.c:36: /usr/include/bits/stdio2.h:31:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) ^ src/libnet_resolve.c:100:51: warning: argument to 'sizeof' in 'strncpy' call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess] strncpy(hostname, host_ent->h_name, sizeof(hostname)); ^ src/libnet_resolve.c:100:17: warning: pointer targets in passing argument 1 of 'strncpy' differ in signedness [-Wpointer-sign] strncpy(hostname, host_ent->h_name, sizeof(hostname)); ^ In file included from /usr/include/features.h:365:0, from /usr/include/stdio.h:27, from src/../include/libnet.h:35, from src/libnet_resolve.c:36: /usr/include/bits/string3.h:123:1: note: expected 'char * restrict' but argument is of type 'u_char * {aka unsigned char *}' __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^ src/libnet_resolve.c: In function 'libnet_name_resolve': src/libnet_resolve.c:116:38: warning: pointer targets in passing argument 1 of 'inet_addr' differ in signedness [-Wpointer-sign] if ((addr.s_addr = inet_addr(host_name)) == -1) ^ In file included from src/../include/libnet.h:71:0, from src/libnet_resolve.c:36: /usr/include/arpa/inet.h:34:18: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern in_addr_t inet_addr (const char *__cp) __THROW; ^ src/libnet_resolve.c:118:44: warning: pointer targets in passing argument 1 of 'gethostbyname' differ in signedness [-Wpointer-sign] if (!(host_ent = gethostbyname(host_name))) ^ In file included from src/../include/libnet.h:73:0, from src/libnet_resolve.c:36: /usr/include/netdb.h:144:24: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}' extern struct hostent *gethostbyname (const char *__name); ^ gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fPIC -Wall -DHAVE_CONFIG_H -c src/libnet_checksum.c -o src/libnet_checksum.o error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.ut7FvV (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.ut7FvV (%build) I: [iurt_root_command] ERROR: chroot