From owner-freebsd-ports@FreeBSD.ORG Sun Sep 14 15:12:10 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4A9681065671 for ; Sun, 14 Sep 2008 15:12:10 +0000 (UTC) (envelope-from dokalanyi@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.183]) by mx1.freebsd.org (Postfix) with ESMTP id F255D8FC29 for ; Sun, 14 Sep 2008 15:12:09 +0000 (UTC) (envelope-from dokalanyi@gmail.com) Received: by py-out-1112.google.com with SMTP id p76so1213228pyb.10 for ; Sun, 14 Sep 2008 08:12:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=8R9H/5Gt3nmR2Q/1xS0J2/UDTr8AOA4y+vAO5psMadg=; b=tw5VB6eeRZBiMGNqld8PhaasLozUEJWMbPpbMBHbTZF+1qeNnVgczY08zRNjIvSqpe 9EJAtjmt//99dAHieYIObSwa9y9ZFyCFcbKNRiDL6GH9q6P6aJ4+VG+DfPlZtsabf8bI r80WchDLdJow8jCM7Wk6GPzsFThZ8i+GkqOLI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=pgviQuss1W6oNHLai5xXhq8MdwlfwYB8iUyMuGeRgjNeTvMwtHiblnl3o4Wr4LjSsy +FPSH+mMBYzFraLd+F3e/7x4qzMPRG/vgwCi0s2Et+0hxHL6zOrS3n4Zr0vT1Hto2dvl 4KIZ1GSY/7CcHdCpq1s+pjEpSuTuLYFBK0J/I= Received: by 10.142.226.3 with SMTP id y3mr2294284wfg.96.1221405128363; Sun, 14 Sep 2008 08:12:08 -0700 (PDT) Received: by 10.142.217.2 with HTTP; Sun, 14 Sep 2008 08:12:08 -0700 (PDT) Message-ID: <28f643d90809140812w4f05fafaxcdb9f88efbe8cd94@mail.gmail.com> Date: Sun, 14 Sep 2008 18:12:08 +0300 From: "Okalany Daniel" To: "Jeremy Chadwick" In-Reply-To: <20080912140325.GA57733@icarus.home.lan> MIME-Version: 1.0 References: <28f643d90809120600rd8998bcya2999f32cefe7a19@mail.gmail.com> <20080912140325.GA57733@icarus.home.lan> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-ports@freebsd.org Subject: Re: Balance - Port X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Sep 2008 15:12:10 -0000 On Fri, Sep 12, 2008 at 5:03 PM, Jeremy Chadwick wrote: > On Fri, Sep 12, 2008 at 04:00:06PM +0300, Okalany Daniel wrote: > > Im on freebsd current with ports current. > > FreeBSD down.one2net.co.ug 8.0-CURRENT FreeBSD 8.0-CURRENT #7: Wed Sep > 10 > > 19:31:10 EAT 2008 root@down.one2net.co.ug: > /usr/obj/usr/src/sys/IPFWKERNEL > > i386 > > > > [root@down /usr/home/oka]# /usr/local/etc/rc.d/balance start > > setsockopt(IPV6_V6ONLY=0): Invalid argument > > > > Is this a problem with balancer or my options? > > It appears you've removed IPv6 support from your kernel, which is fine. > > The bug in with the IPv6 detection method used by balancer. The logic > in balancer is "if IPV6_V6ONLY is defined, call setsockopt() with > IPV6_V6ONLY". The definition is pulled in from one of many #include > files in /usr/include. > > balancer assumes that if IPV6_V6ONLY is defined, that it should make > the setsockopt() call. This won't work for systems with IPv6 removed > from the kernel -- because the system #include files still define > IPV6_V6ONLY as an available bit. > > Can you apply the following hackfix against ports/net/balancer/Makefile > and tell me if it works for you? Please note you'll need to build the > port either with "make WITHOUT_IPV6=true" or place WITHOUT_IPV6=true > in /etc/make.conf. > > --- Makefile.orig 2008-07-09 00:15:46.000000000 -0700 > +++ Makefile 2008-09-12 07:00:44.000000000 -0700 > @@ -20,6 +20,10 @@ > > MAN1= balance.1 > > +.if defined(WITHOUT_IPV6) > +CFLAGS+= -UIPV6_V6ONLY > +.endif > + > pre-build: > @${REINPLACE_CMD} -e 's|^CFLAGS|CFLAGS?|' \ > -e 's|^CC|CC?|' ${WRKSRC}/Makefile > > -- > | Jeremy Chadwick jdc at parodius.com | > | Parodius Networking http://www.parodius.com/ | > | UNIX Systems Administrator Mountain View, CA, USA | > | Making life hard for others since 1977. PGP: 4BD6C0CB | > > Thanks for the quick response, but that hasnt solved the issue, it stays the same. -- OKALANY DANIEL P.O BOX 26150 KAMPALA. http://okaman.one2net.co.ug -- Youth is a wonderful thing. What a crime to waste it on children. The Word was spoken before it was written, and it was written so it could be spoken! Words can move mountais because mountains are created by words!