NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/38114: postfix fails to build when MKINET6=no



>Number:         38114
>Category:       bin
>Synopsis:       postfix fails to build when MKINET6=no
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 27 23:15:00 +0000 2008
>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@localhost:/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
 




Home | Main Index | Thread Index | Old Index