From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Apr 10 14:00:07 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1C3E4106566B for ; Tue, 10 Apr 2012 14:00:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id DC4FD8FC1D for ; Tue, 10 Apr 2012 14:00:06 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q3AE06QM090952 for ; Tue, 10 Apr 2012 14:00:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q3AE06oa090942; Tue, 10 Apr 2012 14:00:06 GMT (envelope-from gnats) Resent-Date: Tue, 10 Apr 2012 14:00:06 GMT Resent-Message-Id: <201204101400.q3AE06oa090942@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Martin Kraft Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3A4E2106566B for ; Tue, 10 Apr 2012 13:51:42 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 0C4C28FC1A for ; Tue, 10 Apr 2012 13:51:42 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q3ADpfMi099068 for ; Tue, 10 Apr 2012 13:51:41 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q3ADpfnh099067; Tue, 10 Apr 2012 13:51:41 GMT (envelope-from nobody) Message-Id: <201204101351.q3ADpfnh099067@red.freebsd.org> Date: Tue, 10 Apr 2012 13:51:41 GMT From: Martin Kraft To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/166819: postfix-2.9.1 install problem (gethostbyname and INET6) X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Apr 2012 14:00:07 -0000 >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..de 8.3-PRERELEASE FreeBSD 8.3-PRERELEASE #4: Tue Apr 10 13:26:15 CEST 2012 martin@eiche.:/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@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@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: