NetBSD Problem Report #38114

From martin@duskware.de  Wed Feb 27 23:10:28 2008
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 1F53363B90D
	for <gnats-bugs@gnats.netbsd.org>; Wed, 27 Feb 2008 23:10:28 +0000 (UTC)
Message-Id: <20080227225421.7CAF663B90D@narn.NetBSD.org>
Date: Wed, 27 Feb 2008 22:54:21 +0000 (UTC)
From: lloyd@must-have-coffee.gen.nz
Reply-To: lloyd@must-have-coffee.gen.nz
To: netbsd-bugs-owner@NetBSD.org
Subject: postfix fails to build when MKINET6=no
X-Send-Pr-Version: www-1.0

>Number:         38114
>Category:       bin
>Synopsis:       postfix fails to build when MKINET6=no
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lukem
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 27 23:15:00 +0000 2008
>Closed-Date:    Thu May 18 13:16:40 +0000 2023
>Last-Modified:  Sat May 20 08:35:07 +0000 2023
>Originator:     Lloyd Parkes
>Release:        NetBSD 4.0
>Organization:
Must Have Coffee
>Environment:
NetBSD maro.must-have-coffee.gen.nz 4.0 NetBSD 4.0 (GENERIC.MP) #0: Fri Dec 28 12:11:18 NZDT 2007  lloyd@maro.must-have-coffee.gen.nz:/vol/scratch/obj/amd64/sys/arch/amd64/compile/GENERIC.MP amd64
>Description:
When building with "./build.sh -N 0 -j 2 -O /vol/scratch/obj/karm-options -U 
-m evbarm -V MKINET6=no release", the build fails with

    In file included from /vol/build/karm-options/gnu/dist/postfix/src/util/cidr_match.c:55:
    /vol/scratch/obj/karm-options/destdir/usr/include/arpa/inet.h:89: error: conflicting types for 'inet_ntop'
    /vol/build/karm-options/gnu/dist/postfix/src/util/sys_defs.h:1240: error: previous declaration of 'inet_ntop' was here

Postfix assumes that only IPv6 systems have inet_ntop(3) and inet_pton(3). 
>How-To-Repeat:
Build with MKINET6=no.
>Fix:
I just removed the offending lines from sys_defs.h. I left EMULATE_IPV4_ADDRINFO in place because I don't know what it does.

blaze-4.0$ cvs diff -u  sys_defs.h 
Index: sys_defs.h
===================================================================
RCS file: /vol/src/rsync-src/src/gnu/dist/postfix/src/util/sys_defs.h,v
retrieving revision 1.21.2.1
diff -u -r1.21.2.1 sys_defs.h
--- sys_defs.h  16 Jun 2007 17:02:09 -0000      1.21.2.1
+++ sys_defs.h  27 Oct 2007 09:07:31 -0000
@@ -1235,10 +1235,6 @@
   */
 #ifndef HAS_IPV6
 #define EMULATE_IPV4_ADDRINFO
-#define MISSING_INET_PTON
-#define MISSING_INET_NTOP
-extern const char *inet_ntop(int, const void *, char *, size_t);
-extern int inet_pton(int, const char *, void *);

 #endif



>Release-Note:

>Audit-Trail:
From: Lloyd Parkes <lloyd@must-have-coffee.gen.nz>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: bin/38114: postfix fails to build when MKINET6=no
Date: Thu, 28 Feb 2008 12:41:40 +1300

 I have reported this problem to postfix-devel@... so that they can  
 put in a permanent fix for everyone.

 Cheers,
 Lloyd

State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Mon, 23 Jun 2008 04:39:13 +0000
State-Changed-Why:
Does the new postfix in -current work?


From: Lloyd Parkes <lloyd@must-have-coffee.gen.nz>
To: gnats-bugs@NetBSD.org
Cc: netbsd-bugs@netbsd.org,
 dholland@NetBSD.org
Subject: Re: bin/38114 (postfix fails to build when MKINET6=no)
Date: Mon, 23 Jun 2008 19:29:45 +1200

 On 23/06/2008, at 4:39 PM, dholland@NetBSD.org wrote:

 > Synopsis: postfix fails to build when MKINET6=no
 >
 > State-Changed-From-To: open->feedback
 > State-Changed-By: dholland@NetBSD.org
 > State-Changed-When: Mon, 23 Jun 2008 04:39:13 +0000
 > State-Changed-Why:
 > Does the new postfix in -current work?

 Discussions with Wietse Venema have been sufficiently fruitless that  
 we can safely assume that the Postfix source will never be fixed. We  
 should stick to applying the patch when importing the source code  
 into the NetBSD tree or whenever is is we patch things like that.

 Cheers,
 Lloyd

State-Changed-From-To: feedback->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 29 Jun 2008 20:32:01 +0000
State-Changed-Why:
feedback received.


State-Changed-From-To: open->closed
State-Changed-By: lukem@NetBSD.org
State-Changed-When: Thu, 18 May 2023 13:16:40 +0000
State-Changed-Why:
We've been maintaining a local fix for over a decade,
and given that upstream won't take the fix, there's
no point keeping this PR open


Responsible-Changed-From-To: bin-bug-people->lukem
Responsible-Changed-By: lukem@NetBSD.org
Responsible-Changed-When: Sat, 20 May 2023 08:35:07 +0000
Responsible-Changed-Why:


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: gnats-precook-prs,v 1.4 2018/12/21 14:20:20 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.