Bug 53824 - manual/bind binding description for v4-mapped on FreeBSD platform is only valid for FreeBSD-5x
Summary: manual/bind binding description for v4-mapped on FreeBSD platform is only val...
Status: RESOLVED FIXED
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Build (show other bugs)
Version: 2.4-HEAD
Hardware: All FreeBSD
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords: FixedInTrunk
Depends on:
Blocks:
 
Reported: 2012-09-03 20:18 UTC by ohauer
Modified: 2015-05-25 08:45 UTC (History)
2 users (show)



Attachments
fix reg expr. FreeBSD version v4mapped (701 bytes, patch)
2014-11-30 18:01 UTC, ohauer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ohauer 2012-09-03 20:18:58 UTC
In the bind manual the following sentence is wrong (only valid for FreeBSD5)

--enable-v4-mapped is the default on all platforms except FreeBSD, NetBSD, and OpenBSD, ...

If your platform supports it and you want Apache to handle IPv4 and IPv6 ...
--disable-v4-mapped is the default on FreeBSD, NetBSD, and OpenBSD.

This is text is only valid for FreeBSD-5.x.

From the configure script:

# Check whether --enable-v4-mapped was given.
if test "${enable_v4_mapped+set}" = set; then :
  enableval=$enable_v4_mapped;
  v4mapped=$enableval
else
    case $host in
    *freebsd5*|*netbsd*|*openbsd*)
        v4mapped=no
        ;;
    *mingw*)
                        v4mapped=no
        ;;
    *)
        v4mapped=yes
        ;;
esac
fi
Comment 1 ohauer 2012-09-04 20:15:51 UTC
I suspect this is more a config then a documentation issue so change to config.

Fix will be trivial s/freebsd5/freebsd/ config config.in
This fix is also valid fir httpd-2.4.x
Comment 2 Jeff Trawick 2013-12-17 20:26:05 UTC
trunk: r1551685
Comment 3 Christophe JAILLET 2014-08-18 10:24:14 UTC
Fixed and released in 2.4.8.
Left opened because this PR was against 2.2.x
Comment 4 ohauer 2014-11-30 18:01:30 UTC
Created attachment 32240 [details]
fix reg expr. FreeBSD version v4mapped

The first fix for configure.in (already in SVN) has an issue since the '[]' are removed from the resulting configure script.
The fix is trivial just replace foo[1234] with foo[[1234]]
Comment 5 Yann Ylavic 2015-01-19 10:59:33 UTC
Thanks, committed to trunk in r1652929, proposed for 2.4.x (r1652934).
Comment 6 Yann Ylavic 2015-01-23 08:02:29 UTC
Backported to 2.4.12 in r1653962.
Comment 7 Yann Ylavic 2015-05-25 08:45:36 UTC
Backported to 2.2.30.