From owner-freebsd-ports@FreeBSD.ORG Wed Sep 5 05:52:25 2012 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 8DB0C1065674; Wed, 5 Sep 2012 05:52:25 +0000 (UTC) (envelope-from ohauer@FreeBSD.org) Received: from p578be941.dip0.t-ipconnect.de (p578be941.dip0.t-ipconnect.de [87.139.233.65]) by mx1.freebsd.org (Postfix) with ESMTP id 43F8F8FC14; Wed, 5 Sep 2012 05:52:25 +0000 (UTC) Received: from [192.168.0.100] (cde1100.uni.vrs [192.168.0.100]) (Authenticated sender: ohauer) by p578be941.dip0.t-ipconnect.de (Postfix) with ESMTPSA id 1D9DA208AB; Wed, 5 Sep 2012 07:52:21 +0200 (CEST) Message-ID: <5046E897.90201@FreeBSD.org> Date: Wed, 05 Sep 2012 07:52:23 +0200 From: Olli Hauer User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:15.0) Gecko/20120824 Thunderbird/15.0 MIME-Version: 1.0 To: John Marshall References: <20120905044640.GC43255@rwpc15.mby.riverwillow.net.au> <5046E2A7.2000204@FreeBSD.org> <20120905054123.GD43255@rwpc15.mby.riverwillow.net.au> In-Reply-To: <20120905054123.GD43255@rwpc15.mby.riverwillow.net.au> X-Enigmail-Version: 1.4.4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Olli Hauer , apache@freebsd.org, freebsd-ports@freebsd.org Subject: Re: www/apache22 2.2.22_8 broken on IPv4-only system X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ohauer@FreeBSD.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Sep 2012 05:52:25 -0000 On 2012-09-05 07:41, John Marshall wrote: > On Wed, 05 Sep 2012, 07:27 +0200, Olli Hauer wrote: >> On 2012-09-05 06:46, John Marshall wrote: >>> The new options provided with 2.2.22_8 blow away existing IPv4/IPv6 >>> knobs and the port tries to build with IPv6 on a system which is IPv4 >>> only. The ending is not happy. >>> >>> config.c: In function 'init_server_config': >>> config.c:1984: error: 'APR_INET6' undeclared (first use in this function) >>> config.c:1984: error: (Each undeclared identifier is reported only once >>> config.c:1984: error: for each function it appears in.) > >> >> Please enable IPV4_MAPPED. >> >> The IPv6 parameter had no effect for apache since it was a APR (devele/apr) parameter. >> >> Unluckily there is no way for the Makefiles to check if APR was build without IPv6 support >> and do the change automatically. > > Thanks Olli, > > I hadn't considered that option because its description says, "Allow > IPv6 socket to handle IPv4", and the system doesn't have IPv6. However, > because you suggested it, I tried anyway. Still no joy. > > config.c: In function 'init_server_config': > config.c:1984: error: 'APR_INET6' undeclared (first use in this function) > config.c:1984: error: (Each undeclared identifier is reported only once > config.c:1984: error: for each function it appears in.) > *** [config.lo] Error code 1 > 1 error > *** [all-recursive] Error code 1 > 1 error > *** [all-recursive] Error code 1 > 1 error > *** [do-build] Error code 1 > > Stop in /build/ports/www/apache22. > *** [build] Error code 1 > > Stop in /build/ports/www/apache22. > > rwsrv08# make showconfig | grep v6 > IPV4_MAPPED=on: Allow IPv6 socket to handle IPv4 > Do you have IPv6 in the devel/apr1 port enabled? The apache buildfiles are checking if APR_HAVE_IPV6 is present in the apr.h file (only the case if APR was build with IPV6) make showconfig -C /usr/ports/devel/apr1 | grep IPV6 IPV6=on: IPv6 protocol support Disable it there.