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
Must Have Coffee
NetBSD 4.0 NetBSD 4.0 (GENERIC.MP) #0: Fri Dec 28 
12:11:18 NZDT 2007
When building with "./ -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/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). 
Build with MKINET6=no.
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
diff -u -r1.21.2.1 sys_defs.h
--- sys_defs.h  16 Jun 2007 17:02:09 -0000
+++ sys_defs.h  27 Oct 2007 09:07:31 -0000
@@ -1235,10 +1235,6 @@
 #ifndef HAS_IPV6
-extern const char *inet_ntop(int, const void *, char *, size_t);
-extern int inet_pton(int, const char *, void *);

Home | Main Index | Thread Index | Old Index