[Solved]Cannot build net-tools

Problems with packages? Post here, using [tags] of the package name.

[Solved]Cannot build net-tools

Postby SeBO » Fri Mar 06, 2015 7:52 pm

Hi
I cant build net-tools neither net-tools-1.60.20110819cvs.tar.bz2 nor net-tools-1.60.20120804git.tar.xz in both cases i get following error


$this->bbcode_second_pass_code('', '
cc -march=armv7ve -mfloat-abi=hard -mfpu=neon-vfpv4 -mcpu=cortex-a7 -mtune=cortex-a7 -fomit-frame-pointer -ffast-math -funroll-loops -funsafe-loop-optimizations -funsafe-math-optimizations -O3 -Wall -fno-strict-aliasing -I.. -I../include -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I. -I/home/h3x0r/arch_rebuild_dir/net-tools/src/net-tools-1.60.20120804git/include -Ilib -c -o strip.o strip.c
strip.c:24:28: fatal error: linux/if_strip.h: No such file or directory
#include <linux/if_strip.h>
^
compilation terminated.
distcc[4599] ERROR: compile strip.c on markone.dom failed
distcc[4599] (dcc_build_somewhere) Warning: remote compilation of 'strip.c' failed, retrying locally
distcc[4599] Warning: failed to distribute strip.c to markone.dom, running locally instead
strip.c:24:28: fatal error: linux/if_strip.h: No such file or directory
#include <linux/if_strip.h>
^
compilation terminated.
distcc[4599] ERROR: compile strip.c on localhost failed
<builtin>: recipe for target 'strip.o' failed
make[1]: *** [strip.o] Error 1
make[1]: Leaving directory '/home/h3x0r/arch_rebuild_dir/net-tools/src/net-tools-1.60.20120804git/lib'
Makefile:187: recipe for target 'libdir' failed
make: *** [libdir] Error 2
==> ERROR: A failure occurred in build().
Aborting...

')


PKGBUILD
$this->bbcode_second_pass_code('', '
# $Id: PKGBUILD 142383 2011-11-08 22:05:27Z ronald $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: judd <jvinet@zeroflux.org>
#net-tools-1.60.20120804git.tar.xz
pkgname=net-tools
pkgver=1.60.20120804git
pkgrel=3
pkgdesc="Configuration tools for Linux networking"
arch=(i686 x86_64)
license=('GPL2')
url="http://www.tazenda.demon.co.uk/phil/net-tools"
depends=('glibc')

# http://www.tazenda.demon.co.uk/phil/$pkgname/$pkgname-$pkgver.tar.bz2
# use cvs checkout instead
source=(ftp://ftp.u-tx.net/archlinux/other/net-tools/net-tools-${pkgver}.tar.xz
net-tools-1.60-miiioctl.patch
net-tools-1.60-nameif_strncpy.patch)
options=(!makeflags)
install=net-tools.install
sha1sums=('SKIP'
'654a96bc6575efb4a2e04b49de45d448d240eb6e'
'7888000d8fe867e58b5b00fe2bcf6c3041d716b4')

build() {
cd $srcdir/$pkgname-$pkgver
#patch -Np1 -i ../net-tools-1.60-miiioctl.patch
#patch -Np1 -i ${srcdir}/net-tools-1.60-nameif_strncpy.patch
yes "" | make
}

package() {
cd $srcdir/$pkgname-$pkgver
make BASEDIR=$pkgdir update

# the following is provided by yp-tools
rm "${pkgdir}"/bin/{nis,yp}domainname
rm "${pkgdir}"/usr/share/man/man1/{nis,yp}domainname.1

# hostname is provided by inetutils
rm "${pkgdir}"/bin/{hostname,dnsdomainname,domainname}
rm -rf "${pkgdir}"/usr/share/man/man1
}

')
Last edited by SeBO on Sat Mar 07, 2015 11:53 am, edited 1 time in total.
SeBO
 
Posts: 36
Joined: Tue Jan 27, 2015 6:18 pm

Re: Cannot build net-tools

Postby SeBO » Fri Mar 06, 2015 8:21 pm

Patched net-tools (patch from ubuntu) attached.
Attachments
net-tools.tar.gz
(3.5 KiB) Downloaded 1022 times
SeBO
 
Posts: 36
Joined: Tue Jan 27, 2015 6:18 pm


Return to Packages

Who is online

Users browsing this forum: No registered users and 7 guests