Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 05 Sep 2012 07:27:03 +0200
From:      Olli Hauer <ohauer@FreeBSD.org>
To:        John Marshall <john.marshall@riverwillow.com.au>
Cc:        apache@freebsd.org, freebsd-ports@freebsd.org
Subject:   Re: www/apache22 2.2.22_8 broken on IPv4-only system
Message-ID:  <5046E2A7.2000204@FreeBSD.org>
In-Reply-To: <20120905044640.GC43255@rwpc15.mby.riverwillow.net.au>
References:  <20120905044640.GC43255@rwpc15.mby.riverwillow.net.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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.)
> /usr/local/share/apr/build-1/libtool --silent --mode=compile cc -g -O2 -I/usr/local/include  -O -pipe -march=core2 -I/usr/include      -I. -I/build/ports/www/apache22/work/httpd-2.2.22/os/unix -I/build/ports/www/apache22/work/httpd-2.2.22/server/mpm/prefork -I/build/ports/www/apache22/work/httpd-2.2.22/modules/http -I/build/ports/www/apache22/work/httpd-2.2.22/modules/filters -I/build/ports/www/apache22/work/httpd-2.2.22/modules/proxy -I/build/ports/www/apache22/work/httpd-2.2.22/include -I/build/ports/www/apache22/work/httpd-2.2.22/modules/generators -I/build/ports/www/apache22/work/httpd-2.2.22/modules/mappers -I/build/ports/www/apache22/work/httpd-2.2.22/modules/database -I/usr/local/include/apr-1 -I/usr/local/include -I/build/ports/www/apache22/work/httpd-2.2.22/modules/proxy/../generators -I/usr/include -I/build/ports/www/apache22/work/httpd-2.2.22/modules/ssl -I/build/ports/www/apache22/work/httpd-2.2.22/modules/dav/main -prefer-non-pic -static -c listen.c && touch li
 sten.lo

> *** [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.
> 
> I tried being creative and inserting --disable=ipv6 in a couple of
> different places but to no avail.  Reverting to 2.2.22_7, where I could
> select IPv4 only, got me out of trouble.
> 

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.

--Regards,
olli



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5046E2A7.2000204>