ports/166819: postfix-2.9.1 install problem (gethostbyname and INET6)
Martin Kraft
a0516 at marimga.de
Tue Apr 10 14:00:07 UTC 2012
>Number: 166819
>Category: ports
>Synopsis: postfix-2.9.1 install problem (gethostbyname and INET6)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Apr 10 14:00:06 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Martin Kraft
>Release: 8.3-Prerelease
>Organization:
>Environment:
FreeBSD eiche.<mydomain>.de 8.3-PRERELEASE FreeBSD 8.3-PRERELEASE #4: Tue Apr 10 13:26:15 CEST 2012 martin at eiche.<mydomain>:/usr/obj/usr/src/sys/EICHE i386
>Description:
Unable to install postfix-2.9.1 from the port, upgrading from postfix 2.8.5.
root at eiche# make reinstall
===> Installing for postfix-2.9.1,1
===> postfix-2.9.1,1 depends on shared library: pcre - found
===> postfix-2.9.1,1 depends on shared library: sasl2.2 - found
===> Generating temporary packing list
===> Checking if mail/postfix already installed
===> Creating users and/or groups.
Using existing group `mail'.
Using existing group `maildrop'.
Using existing group `postfix'.
Using existing user `postfix'.
bin/postconf: fatal: sockaddr_to_hostaddr: ai_family not supported
bin/postconf: fatal: sockaddr_to_hostaddr: ai_family not supported
bin/postconf: fatal: sockaddr_to_hostaddr: ai_family not supported
bin/postconf: fatal: sockaddr_to_hostaddr: ai_family not supported
bin/postconf: fatal: sockaddr_to_hostaddr: ai_family not supported
Skipping /usr/local/libexec/postfix/anvil...
Skipping /usr/local/libexec/postfix/bounce...
Skipping /usr/local/libexec/postfix/cleanup...
Skipping /usr/local/libexec/postfix/discard...
[..]
Skipping /usr/local/share/doc/postfix/scache.8.html...
Skipping /usr/local/share/doc/postfix/tlsmgr.8.html...
postfix: fatal: sockaddr_to_hostaddr: ai_family not supported
*** Error code 1
Stop in /usr/ports/mail/postfix.
*** Error code 1
Stop in /usr/ports/mail/postfix.
*** Error code 1
Stop in /usr/ports/mail/postfix.
*** Error code 1
Stop in /usr/ports/mail/postfix.
root at eiche#
>How-To-Repeat:
cd /usr/port/mail/postfix
make deinstall reinstall
Here follows my interpretation of the problem: The aborting error
occurs in work/postfix-2.9.1/src/util/myaddrinfo.c, function
sockaddr_to_hostaddr. The function is called with an AF_INET6 address
and reaches the getnameinfo call at the end. getnameinfo
returns EAI_FAMILY. (getnameinfo should be able to process AF_INET6
addresses. No idea why it refuses to do so.)
The kernel is compiled including INET6 but IPv6 is not used on the
machine (/etc/make.conf: WITHOUT_IPV6=yes). Some lines from the kernel
configuration:
> cpu I686_CPU
> ident EICHE
> options SCHED_ULE # ULE scheduler
> options PREEMPTION # Enable kernel thread preemption
> options INET # InterNETworking
> options INET6 # IPv6 communications protocols
> options FFS # Berkeley Fast Filesystem
> options SOFTUPDATES # Enable FFS soft updates
[..]
>Fix:
I was able to compile and install the port for my non-IPv6 machine after
changing the port Makefile, adding -DNO_IPV6 to the
POSTFIX_CCARGS.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list